Guest User

Untitled

a guest
Feb 13th, 2014
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #============================#
  2. #Autor skryptu: RaiZeN #
  3. #Drugi nick autora: Hardcor23#
  4. #Wersja skryptu: 0.2 #
  5. #============================#
  6.  
  7.  
  8. variables:
  9. {walka.%player%} = false
  10. {ban.%player%} = false
  11.  
  12. options:
  13. #Tag skryptu, ktory bedzie wyswietlal sie przed wiadomosciami
  14. tag: &8[&4Anti&6Relog&8]&6
  15. #Czas w sekundach po ktorych gracz bedzie mogl sie bezpiecznie wylogowac
  16. czas_walki: 30
  17.  
  18. on damage of player:
  19. if {walka.%victim%} is false:
  20. set {walka.%attacker%} to true
  21. set {walka.%victim%} to true
  22. send "{@tag} Jestes w walce! Lepiej sie nie wylogowywuj!" to attacker
  23. send "{@tag} Jestes w walce! Lepiej sie nie wylogowywuj!" to victim
  24. wait {@czas_walki} seconds
  25. set {walka.%attacker%} to false
  26. set {walka.%victim%} to false
  27. send "{@tag} Juz nie jestes w walce. Mozesz sie wylogowac." to attacker
  28. send "{@tag} Juz nie jestes w walce. Mozesz sie wylogowac." to victim
  29.  
  30. on quit:
  31. if {walka.%player%} is true:
  32. clear the player's inventory
  33. set {walka.%player%} to false
  34. kill player
  35.  
  36.  
  37. on command:
  38. if {walka.%player%} is true:
  39. cancel event
  40. send "{@tag} Nie mozesz uzywac komend podczas walki!"
Advertisement
Add Comment
Please, Sign In to add comment