fix NoClip
This commit is contained in:
@@ -3654,11 +3654,12 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
[RemoteEvent("Noclip")]
|
[RemoteEvent("Noclip")]
|
||||||
public void Noclip(Player player)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
player.TriggerEvent("ADMIN:NoClip");
|
if(player.HasData("Adminduty") && player.GetData<bool>("Adminduty"))
|
||||||
|
player.TriggerEvent("ADMIN:NoClip");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user