BloodHead2001

ANTY-LOGOUT 2.0!

Oct 11th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. #Autor: Twaq
  2. #Wersja: 2.0
  3. #Kontakt skype: mateusz.michalski525
  4.  
  5. variables:
  6. {walka.%player%} = false
  7. {ban.%player%} = false
  8. options:
  9. PASEK: ANTY-LOGOUT
  10.  
  11. on damage of player:
  12. if {walka.%victim%} is false:
  13. set {walka.%victim%} to true
  14. display "{@PASEK}" on bossbar with 100 percent by 10 seconds for victim
  15. wait 1 second
  16. display "{@PASEK}" on bossbar with 95 percent by 10 seconds for victim
  17. wait 1 second
  18. display "{@PASEK}" on bossbar with 90 percent by 10 seconds for victim
  19. wait 1 second
  20. display "{@PASEK}" on bossbar with 85 percent by 10 seconds for victim
  21. wait 1 second
  22. display "{@PASEK}" on bossbar with 80 percent by 10 seconds for victim
  23. wait 1 second
  24. display "{@PASEK}" on bossbar with 75 percent by 10 seconds for victim
  25. wait 1 second
  26. display "{@PASEK}" on bossbar with 70 percent by 10 seconds for victim
  27. wait 1 second
  28. display "{@PASEK}" on bossbar with 65 percent by 10 seconds for victim
  29. wait 1 second
  30. display "{@PASEK}" on bossbar with 60 percent by 10 seconds for victim
  31. wait 1 tick
  32. display "{@PASEK}" on bossbar with 55 percent by 10 seconds for victim
  33. wait 1 second
  34. display "{@PASEK}" on bossbar with 50 percent by 10 seconds for victim
  35. wait 1 second
  36. display "{@PASEK}" on bossbar with 45 percent by 10 seconds for victim
  37. wait 1 second
  38. display "{@PASEK}" on bossbar with 40 percent by 10 seconds for victim
  39. wait 1 second
  40. display "{@PASEK}" on bossbar with 35 percent by 10 seconds for victim
  41. wait 1 second
  42. display "{@PASEK}" on bossbar with 30 percent by 10 seconds for victim
  43. wait 1 second
  44. display "{@PASEK}" on bossbar with 25 percent by 10 seconds for victim
  45. wait 1 second
  46. display "{@PASEK}" on bossbar with 20 percent by 10 seconds for victim
  47. wait 1 second
  48. display "{@PASEK}" on bossbar with 15 percent by 10 seconds for victim
  49. wait 1 second
  50. display "{@PASEK}" on bossbar with 10 percent by 10 seconds for victim
  51. wait 1 second
  52. display "{@PASEK}" on bossbar with 5 percent by 10 seconds for victim
  53. wait 1 second
  54. display "{@PASEK}" on bossbar with 5 percent by 1 seconds for victim
  55. set {walka.%victim%} to false
  56. stop
  57. on quit:
  58. if {walka.%player%} is true:
  59. clear the player's inventory
  60. set {walka.%player%} to false
  61. kill player
  62. broadcast "&cGracz &6[%player%] &cWylogowal sie podczas walki!"
  63. stop
  64. command /logout [<player>]:
  65. trigger:
  66. if arg 1 is not set:
  67. if {walka.%player%} is false:
  68. send "&c> CZY MOZESZ LOGNAC: &aTAK"
  69. if {walka.%player%} is true:
  70. send "&c> CZY MOZESZ LOGNAC: &4NIE!"
  71. if arg 1 is set:
  72. if {walka.%player%} is false:
  73. send "&c> CZY &6[%arg 1%] &cMOZE LOGNAC: &aTAK"
  74. if {walka.%player%} is true:
  75. send "&c> CZY &6[%arg 1%] &cMOZE LOGNAC: &4NIE"
Advertisement
Add Comment
Please, Sign In to add comment