fix NoClip

This commit is contained in:
kookroach
2021-04-03 22:05:26 +02:00
parent d939b9590b
commit a0570fb0b4

View File

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