Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. options:
  2. #czas, po jakim można się wylogować (w sekundach)
  3. time: 10
  4. #czas bana (w minutach)
  5. bantime: 0
  6. #nazwa regionu spawn
  7. region: spawn
  8. #nazwa zmiennej, ktora przechowuje lokacje spawna
  9. variable: {spawn}
  10. on damage of player:
  11. if attacker is a player
  12. if {walka.%victim%} is not set:
  13. send "&cJestes podczas walki! Nie mozesz sie wylogowac." to victim
  14. if {walka.%attacker%} is not set:
  15. send "&cJestes podczas walki! Nie mozesz sie wylogowac." to attacker
  16. set {walka.%victim%} to true
  17. set {walka.%attacker%} to true
  18. wait {@time} seconds
  19. send "&aNie jestes juz w walce! Mozesz sie spokojnie wylogowac." to victim
  20. send "&aNie jestes juz w walce! &fMozesz sie wylogowac." to attacker
  21. delete {walka.%victim%}
  22. delete {walka.%attacker%}
  23. on quit:
  24. if {walka.%player%} is set:
  25. kill player
  26. kick player due to "&cWylogowales sie podczas walki! &cDostales bana na {@bantime} min."
  27. set {bantime.%player%} to now
  28. delete {walka.%player%}
  29. on join:
  30. if {bantime.%player%} is set:
  31. if difference between {bantime.%player%} and now is less than {@bantime} minutes:
  32. kick player due to "&cWylogowales sie podczas walki! &cAby moc wejsc odczekaj jeszcze %difference between {bantime.%player%} and now% min."
  33. stop
  34. else:
  35. delete {bantime.%player%}
  36. on entering of region "{@region}"
  37. if {walka.%player%} is set:
  38. push player from {{@variable}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement