Fix Respawnposition while Dead
This commit is contained in:
@@ -132,6 +132,8 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
|
||||
player.TriggerEvent("draw", player.Name, player.Handle.Value);
|
||||
NAPI.Task.Run(() =>
|
||||
{
|
||||
if (user.Dead == true)
|
||||
{
|
||||
if (user.IsAdmin(AdminLevel.ADMIN) == true)
|
||||
@@ -149,6 +151,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
player.SetData("isDead", false);
|
||||
}
|
||||
}, delayTime: 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user