Advertisement
KingOfVC

Anti spawnkill =D

Jul 31st, 2015
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. /*
  2.  
  3. anti spawn kill by kiki -..-
  4.  
  5. */
  6.  
  7. class AN
  8. {
  9. Time = 0
  10. IsProtected = false
  11. }
  12.  
  13. function onScriptLoad()
  14. {
  15. AP <- array( GetMaxPlayers(), null );
  16. print("\r [Load] Anti spawnkill by kiki loaded.")
  17. }
  18.  
  19. function onPlayerJoin(player)
  20. {
  21. AP[player.ID] = AN
  22. }
  23.  
  24. function onPlayerSpawn(player)
  25. {
  26. AP[player.ID].Time = Time()
  27. }
  28.  
  29. function onPlayerKill(killer,player,bodypart,reason)
  30. {
  31. if (( Time() - AP[player.ID].Time ) < 5 )
  32. {
  33. Message("[Server] Auto drowned " + killer.Name + " For spawn killing.")
  34. killer.Pos(9999,9999,999)
  35. }
  36. }
  37.  
  38. function onPlayerTeamKill(killer,player,bodypart,reason)
  39. {
  40. if (( Time() - AP[player.ID].Time ) < 5 )
  41. {
  42. Message("[Server] Auto drowned " + killer.Name + " For spawn killing.")
  43. killer.Pos(9999,9999,999)
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement