Fix Online Medics

This commit is contained in:
VegaZ
2021-02-17 18:45:40 +01:00
parent c73bc7a481
commit b86254a5ed
3 changed files with 37 additions and 6 deletions

View File

@@ -139,6 +139,11 @@ namespace ReallifeGamemode.Server.Events
player.TriggerEvent("CLIENT:DestroyPed", 4);
Medic.delHealTask(player);
Medic.delReviveTask(player);
if (player.GetData<bool>("duty") == true)
{
player.SetData<bool>("duty", false);
Medic.UpdateDutyMedics(-1);
}
}
}
}