Advertisement
Guest User

Untitled

a guest
Sep 29th, 2018
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. void OnClientRespawnEvent(PlayerIdentity identity, PlayerBase player)
  2. {
  3. // note: player is now killed in db right after the actual kill happens
  4. /*if (GetHive() && player)
  5. {
  6. GetHive().CharacterKill(player);
  7. }*/
  8. if(player)
  9. {
  10. if (player.IsUnconscious() || player.IsRestrained())
  11. {
  12. // kill character
  13. player.SetHealth("", "", 0.0);
  14. }
  15. GetGame().ObjectDelete( player )
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement