sanitaeter koennen onduty keine sanitaeter rufen
This commit is contained in:
@@ -51,6 +51,9 @@ export default function (globalData: IGlobalData): void {
|
||||
});
|
||||
|
||||
mp.events.add('CEF:Login_RegisterRequest', (password: string) => {
|
||||
if (password.length < 6) {
|
||||
return;
|
||||
}
|
||||
mp.events.callRemote('CLIENT:Login_RegisterRequest', password);
|
||||
});
|
||||
|
||||
|
||||
@@ -809,7 +809,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
[RemoteEvent("CLIENT:InteractionMenu_CallService_Sani")]
|
||||
public void CallServiceSani(Player player)
|
||||
{
|
||||
if (player.GetUser().FactionId == 2)
|
||||
if (player.GetUser().FactionId == 2 && player.IsDuty())
|
||||
{
|
||||
player.SendNotification("~r~[Fehler] ~w~Du kannst keinen Sanitäter rufen.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user