niccosaint

ncAnti-Logout 1.0 (Skript)

Dec 1st, 2014
1,250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. variables:
  2. {pvp.%player%.time} = 0
  3. {pvp.%player%.guilty} = false
  4.  
  5. options:
  6. tag: &c[&6ncANTI-LOGOUT&c]
  7.  
  8. on command:
  9. if {pvp.%player%.time} >= 1:
  10. cancel event
  11. send "{@tag} &3Pisanie komend podczas PvP jest &4ZABLOKOWANE" to sender
  12.  
  13. on damage:
  14. if attacker is player:
  15. if victim is player:
  16. set {pvp.%attacker%.time} to 12
  17. set {pvp.%victim%.time} to 12
  18. send "{@tag} &6Zaatakowales %victim%. &4&lZAKAZANE JEST WYCHODZENIE PODCZAS BITWY" to attacker
  19. send "{@tag} &6Zostales zaatakowany przez %attacker%. &4&lZAKAZANE JEST WYCHODZENIE PODCZAS BITWY" to victim
  20.  
  21. on disconnect:
  22. if {pvp.%player%.time} >= 1:
  23. broadcast "{@tag} &b&lLOL CO ZA NOOB! %player% WYSZEDL PODCZAS WALKI"
  24. set {pvp.%player%.guilty} to true
  25.  
  26. on join:
  27. if {pvp.%player%.guilty} is true:
  28. clear player's inventory
  29. broadcast "{@tag} &a&lOOOO, WSZEDL NOOB! %player%"
  30.  
  31. on death:
  32. set {pvp.%victim%.time} to 0
  33.  
  34. every second:
  35. loop all players:
  36. add -1 to {pvp.%loop-player%.time}
  37. if {pvp.%loop-player%.time} > 0:
  38. if {pvp.%loop-player%.time} > 1:
  39. if {pvp.%loop-player%.time} > 2:
  40. if {pvp.%loop-player%.time} > 3:
  41. if {pvp.%loop-player%.time} > 4:
  42. if {pvp.%loop-player%.time} > 5:
  43. if {pvp.%loop-player%.time} > 6:
  44. if {pvp.%loop-player%.time} > 7:
  45. if {pvp.%loop-player%.time} > 8:
  46. if {pvp.%loop-player%.time} > 9:
  47. if {pvp.%loop-player%.time} > 10:
  48. send "&bTIMER: &4&l10s" to loop-player
  49. else:
  50. send "&bTIMER: &4&l9s" to loop-player
  51. else:
  52. send "&bTIMER: &6&l8s" to loop-player
  53. else:
  54. send "&bTIMER: &6&l7s" to loop-player
  55. else:
  56. send "&bTIMER: &e&l6s" to loop-player
  57. else:
  58. send "&bTIMER: &e&l5s" to loop-player
  59. else:
  60. send "&bTIMER: &a&l4s" to loop-player
  61. else:
  62. send "&bTIMER: &a&l3s" to loop-player
  63. else:
  64. send "&bTIMER: &2&l2s" to loop-player
  65. else:
  66. send "&bTIMER: &2&l1s" to loop-player
  67. else:
  68. send "{@tag} &2Bitwa zakonczona. Mozesz sie wylogowac." to loop-player
Advertisement
Add Comment
Please, Sign In to add comment