Advertisement
Winter__

Untitled

Aug 9th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1.  
  2. options:
  3. n: &8[&6&lPickedTeams&8]&c
  4.  
  5. command /pickedteams <integer> <player>:
  6. permission: skript.captains
  7. usage: /pickedteams <teamnumber> <player>
  8. trigger:
  9. if arg 1 < 1:
  10. message "{@n} Must be 1-8!"
  11. if arg 1 > 8:
  12. message "{@n} Must be 1-8!"
  13. else if arg 1 is 1:
  14. {pt1} is "notfull":
  15. execute console command "warp pteam1 %player-argument%"
  16. execute console command "team join 1 %player-argument%"
  17. execute console command "jointeam UHC3 %player-argument%"
  18. broadcast "&3%player-argument% has joined the Cyan Team!"
  19. else if arg 1 is 2:
  20. {pt2} is "notfull":
  21. execute console command "warp pteam2 %player-argument%"
  22. execute console command "team join 2 %player-argument%"
  23. execute console command "jointeam UHC6 %player-argument%"
  24. broadcast "&6%player-argument% has joined the Orange Team!"
  25. else if arg 1 is 3:
  26. {pt3} is "notfull":
  27. execute console command "warp pteam3 %player-argument%"
  28. execute console command "team join 3 %player-argument%"
  29. execute console command "jointeam UHC5 %player-argument%"
  30. broadcast "&5%player-argument% has joined the Purple Team!"
  31. else if arg 1 is 4:
  32. {pt4} is "notfull":
  33. execute console command "warp pteam4 %player-argument%"
  34. execute console command "team join 4 %player-argument%"
  35. execute console command "jointeam UHC4 %player-argument%"
  36. broadcast "&4%player-argument% has joined the Red Team!"
  37. else if arg 1 is 5:
  38. {pt5} is "notfull":
  39. execute console command "warp pteam5 %player-argument%"
  40. execute console command "team join 5 %player-argument%"
  41. execute console command "jointeam UHC1 %player-argument%"
  42. broadcast "&9%player-argument% has joined the Blue Team!"
  43. else if arg 1 is 6:
  44. {pt6} is "notfull":
  45. execute console command "warp pteam6 %player-argument%"
  46. execute console command "team join 6 %player-argument%"
  47. execute console command "jointeam UHC14 %player-argument%"
  48. broadcast "&e%player-argument% has joined the Yellow Team!"
  49. else if arg 1 is 7:
  50. {pt7} is "notfull":
  51. execute console command "warp pteam7 %player-argument%"
  52. execute console command "team join 7 %player-argument%"
  53. execute console command "jointeam UHC13 %player-argument%"
  54. broadcast "&d%player-argument% has joined the Pink Team!"
  55. else if arg 1 is 8:
  56. {pt8} is "notfull":
  57. execute console command "warp pteam8 %player-argument%"
  58. execute console command "team join 8 %player-argument%"
  59. execute console command "jointeam UHC10 %player-argument%"
  60. broadcast "&a%player-argument% has joined the Light Green Team!"
  61.  
  62. command /resetpickedteams:
  63. permission: skript.pickedteams
  64. trigger:
  65. delete {picked::*}
  66. loop all players:
  67. add loop-player to {picked::*}
  68. set {pt1} to "notfull"
  69. set {pt2} to "notfull"
  70. set {pt3} to "notfull"
  71. set {pt4} to "notfull"
  72. set {pt5} to "notfull"
  73. set {pt6} to "notfull"
  74. set {pt7} to "notfull"
  75. set {pt8} to "notfull"
  76. broadcast "{@n} Picked Teams reset!"
  77.  
  78. command /ptteamfull <integer>:
  79. permission: skript.pickedteams
  80. trigger:
  81. set {pt%arg 1%} to "full"
  82.  
  83. command /removeptplayer <player>:
  84. permission: skript.pickedteams
  85. trigger:
  86. remove player-argument from {picked::*}
  87.  
  88. command /ptplayer:
  89. permission: skript.pickedteams
  90. trigger:
  91. loop {picked::*}:
  92. set {_picker} to (random element out of {picked::*})
  93. remove {_picker} from {picked::*}
  94. execute console command "warp pickedteams %{_picker}%"
  95. broadcast "{@n} %{_picker}% is picking!"
  96.  
  97. command /rigptplayer <player>:
  98. permission: skript.pickedteams
  99. trigger:
  100. set {_picker} to player-argument
  101. remove {_picker} from {picked::*}
  102. execute console command "warp pickedteams %{_picker}%"
  103. broadcast "{@n} %{_picker}% is picking!"
  104.  
  105. command /whsess <text>:
  106. permission: skript.pickedteams
  107. permission message: &4Or nah?
  108. trigger:
  109. if arg 1 is "enable":
  110. command sender command "/sk reload WHSEssentials"
  111. command sender command "/sk enable WHSEssentials"
  112. broadcast "&8[&3WHS&8]&c is now reloaded and enabled!"
  113. if arg 1 is "disable":
  114. command sender command "/sk disable WHSEssentials"
  115. broadcast "&8[&3WHS&8]&c is now disabled!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement