Edit Death System

This commit is contained in:
VegaZ
2018-10-21 15:35:33 +02:00
parent ee767cedec
commit 53adfb86b4
2 changed files with 42 additions and 17 deletions

View File

@@ -62,5 +62,17 @@ namespace reallife_gamemode.Server.Events
userDeath.SaveChanges();
}
}
[RemoteEvent("RespawnPlayerAtHospital")]
public void RespawnPlayerAtHospital(Client player)
{
player.RemoveAllWeapons();
NAPI.Player.SpawnPlayer(player, new Vector3(-495.45, -336.33, 34.5));
}
[RemoteEvent("RespawnPlayerAtDeathpoint")]
public void RespawnPlayerAtDeathpoint(Client player)
{
NAPI.Player.SpawnPlayer(player, player.Position);
}
}
}