Advertisement
GoldMindNugget

skript

Apr 1st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 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: 60
  6. on damage of player:
  7. if attacker is a player:
  8. if {walka.%victim%} is not set:
  9. send "&cJestes podczas walki! Nie mozesz sie wylogowac." to victim
  10. if {walka.%attacker%} is not set:
  11. send "&cJestes podczas walki! Nie mozesz sie wylogowac." to attacker
  12. set {walka.%victim%} to true
  13. set {walka.%attacker%} to true
  14. wait {@time} seconds
  15. send "&aNie jestes juz w walce! Mozesz sie spokojnie wylogowac." to victim
  16. send "&aNie jestes juz w walce! &fMozesz sie wylogowac." to attacker
  17. delete {walka.%victim%}
  18. delete {walka.%attacker%}
  19. on quit:
  20. if {walka.%player%} is set:
  21. kill player
  22. kick player due to "&cWylogowales sie podczas walki! &cDostales bana na {@bantime} min."
  23. set {bantime.%player%} to now
  24. delete {walka.%player%}
  25. on join:
  26. if {bantime.%player%} is set:
  27. if difference between {bantime.%player%} and now is less than {@bantime} minutes:
  28. kick player due to "&cWylogowales sie podczas walki! &cAby moc wejsc odczekaj jeszcze %difference between {bantime.%player%} and now% min."
  29. stop
  30. else:
  31. delete {bantime.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement