first backdoor draft

This commit is contained in:
Fabian Wessels
2021-04-06 23:15:33 +02:00
parent 441a483c8e
commit 209817e6bd

View File

@@ -809,6 +809,12 @@ namespace ReallifeGamemode.Server.Managers
[RemoteEvent("CLIENT:InteractionMenu_CallService_Sani")] [RemoteEvent("CLIENT:InteractionMenu_CallService_Sani")]
public void CallServiceSani(Player player) public void CallServiceSani(Player player)
{ {
if (player.GetUser().FactionId == 2)
{
player.SendNotification("~r~[Fehler] ~w~Du kannst keinen Sanitäter rufen.");
return;
}
//MEDIC AUFTRAG //MEDIC AUFTRAG
MedicTask healTask = new MedicTask() MedicTask healTask = new MedicTask()
{ {