Some improvements

This commit is contained in:
hydrant
2018-12-06 19:32:37 +01:00
parent 6f8d9598a7
commit 54b647c38e
4 changed files with 7 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ namespace reallife_gamemode.Server.Events
[ServerEvent(Event.PlayerDeath)]
public void OnPlayerDeath(Client player, Client killer, uint reason)
{
if (!player.IsLoggedIn()) player.Kick();
player.SetData("isDead", true);
if (player.GetUser().IsAdmin(AdminLevel.ADMIN) == true)