Fix Spec4
This commit is contained in:
@@ -1824,7 +1824,11 @@ namespace ReallifeGamemode.Server.Commands
|
||||
|
||||
player.SafeTeleport(target.Position);
|
||||
|
||||
player.TriggerEvent("SERVER:ADMIN_SPECTATE", target);
|
||||
NAPI.Task.Run(() =>
|
||||
{
|
||||
player.TriggerEvent("SERVER:ADMIN_SPECTATE", target);
|
||||
}, 100);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1851,9 +1855,9 @@ namespace ReallifeGamemode.Server.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
bool currentStatus = user.GetData<bool>("adminUnshow");
|
||||
bool currentStatus = player.GetData<bool>("adminUnshow");
|
||||
currentStatus = !currentStatus;
|
||||
user.SetData("adminUnshow", currentStatus);
|
||||
player.SetData("adminUnshow", currentStatus);
|
||||
player.TriggerEvent("toggleAdminUnshowMode", currentStatus);
|
||||
|
||||
user.SetBlipAndNametagColor();
|
||||
|
||||
@@ -356,7 +356,7 @@ namespace ReallifeGamemode.Server.Extensions
|
||||
}
|
||||
|
||||
bool duty = user.GetData<bool>("duty");
|
||||
bool adminUnshow = user.GetData<bool>("adminUnshow");
|
||||
bool adminUnshow = player.GetData<bool>("adminUnshow");
|
||||
|
||||
if (adminUnshow)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user