Edit Death System
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user