herro1

HelpForAdmin v. 2.0

Aug 18th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. # Version: 2.0 #
  2. # Author: HerrosPL #
  3.  
  4. variables:
  5. {admin.%player%} = false
  6.  
  7. command /admin:
  8. description: Tryb Administratora daje najpotrzebniejsze przedmioty do sprawdzania.
  9. permission: skript.admin
  10. permission message: &cNie posiadasz uprawnien do trybu administratora! &8(&6skript.admin&8)
  11. trigger:
  12. if {admin.%player%} is false:
  13. set {admin.%player%} to true
  14. set player's fly mode to true
  15. hide player from all players
  16. add wood sword of knockback 2 named "&3&lKNOCKBACK II" with lore "&2TRYB ADMINISTRATORA" to player
  17. stop
  18. else:
  19. set {admin.%player%} to false
  20. set player's fly mode to false
  21. reveal player from all players
  22. remove wood sword of knockback 2 named "&3&lKNOCKBACK II" with lore "&2TRYB ADMINISTRATORA" from player
  23. stop
  24. on drop:
  25. if {admin.%player%} is true:
  26. cancel event
  27.  
  28. on pick up:
  29. if {admin.%player%} is true:
  30. cancel event
  31.  
  32. on damage:
  33. if {admin.%victim%} is true:
  34. cancel event
  35.  
  36. on quit:
  37. if {admin.%player%} is true:
  38. execute player command "admin"
  39.  
  40. on join:
  41. loop all players:
  42. if {admin.%loop-player%} is true:
  43. hide loop-player from all players
Advertisement
Add Comment
Please, Sign In to add comment