Add Admin Noclip , add /skill and fix heal :^)

This commit is contained in:
kookroach
2021-04-03 21:58:02 +02:00
parent 5b7d03fec3
commit d939b9590b
6 changed files with 37 additions and 3 deletions

View File

@@ -3650,5 +3650,16 @@ namespace ReallifeGamemode.Server.Commands
}
#endregion ALevel1338
[RemoteEvent("Noclip")]
public void Noclip(Player player)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true && player.HasData("Adminduty") && !player.GetData<bool>("Adminduty"))
{
return;
}
player.TriggerEvent("ADMIN:NoClip");
}
}
}