schulung von drant
This commit is contained in:
@@ -54,13 +54,15 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
}
|
}
|
||||||
|
|
||||||
TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>();
|
TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>();
|
||||||
TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).First();
|
TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).FirstOrDefault();
|
||||||
|
|
||||||
|
if (taxiContract != null)
|
||||||
|
{
|
||||||
if (taxiJob.TaxiContracts.Contains(taxiContract))
|
if (taxiJob.TaxiContracts.Contains(taxiContract))
|
||||||
{
|
{
|
||||||
taxiJob.TaxiContracts.Remove(taxiContract);
|
taxiJob.TaxiContracts.Remove(taxiContract);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
var listReports = Report.Report.listReports;
|
var listReports = Report.Report.listReports;
|
||||||
ReportManage temp;
|
ReportManage temp;
|
||||||
for (int a = 0; a < listReports.Count; a++)
|
for (int a = 0; a < listReports.Count; a++)
|
||||||
|
|||||||
@@ -85,8 +85,6 @@ namespace ReallifeGamemode.Server.Factions.Medic
|
|||||||
[RemoteEvent("updateMedicTask")]
|
[RemoteEvent("updateMedicTask")]
|
||||||
public void UpdateMedicTasks(Player player, int type, int index, string medicName)
|
public void UpdateMedicTasks(Player player, int type, int index, string medicName)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user