Guest User

[Skrypt] Drake_PL-Relog

a guest
Apr 12th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. #=-=-=-=-=-=-=-=-=-=-=-=-=#
  2. #Autor - Drake_PL
  3. #Wszelkie prawa zastrzezone !
  4. #=-=-=-=-=-=-=-=-=-=-=-=-=#
  5. variables:
  6. {walka.%player%} = false
  7. {ban.%player%} = false
  8.  
  9. options:
  10. #Tag skryptu, ktory bedzie wyswietlal sie przed wiadomosciami
  11. tag: &8[&4Nazwa&8]&6
  12. #Czas w sekundach po ktorych gracz bedzie mogl sie bezpiecznie wylogowac
  13. czas_walki: 20
  14. #Czas w minutach na ile gracz dostanie bana jesli sie wyloguje podczas walki
  15. czas_bana: 30
  16.  
  17. on damage of player:
  18. if {walka.%victim%} is false:
  19. set {walka.%attacker%} to true
  20. set {walka.%victim%} to true
  21. send "{@tag} Jestes w walce! Lepiej sie nie wylogowywuj!" to attacker
  22. send "{@tag} Jestes w walce! Lepiej sie nie wylogowywuj!" to victim
  23. wait {@czas_walki} seconds
  24. set {walka.%attacker%} to false
  25. set {walka.%victim%} to false
  26. send "{@tag} Juz nie jestes w walce. Mozesz sie wylogowac." to attacker
  27. send "{@tag} Juz nie jestes w walce. Mozesz sie wylogowac." to victim
  28.  
  29. on quit:
  30. if {walka.%player%} is true:
  31. clear the player's inventory
  32. set {walka.%player%} to false
  33. kill player
  34. set {ban.%player%} to true
  35. wait {@czas_bana} minutes
  36. set {ban.%player%} to false
  37.  
  38. on join:
  39. if {ban.%player%} is true:
  40. kick player due to "{@tag} Zostales tymczasowo zbanowany za wychodzenie podczas walki!"
  41.  
  42. on command:
  43. if {walka.%player%} is true:
  44. cancel event
  45. send "{@tag} Nie mozesz uzywac komend podczas walki!"
Advertisement
Add Comment
Please, Sign In to add comment