Advertisement
K2Rk1o

RANK SYSTEM

Oct 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.31 KB | None | 0 0
  1. #
  2. #
  3. # SKRIPT MADE BY: MAGICAA
  4. # DISCORD: Magicaa#0827
  5. # DISCORD SERVER: https://discord.gg/fj6kkVF
  6. #
  7. # FEEL FREE TO CHANGE THINGS AND DONT FORGET TO SEND IT TO ME ON DISCORD ;)
  8. #
  9.  
  10.  
  11. command /rank [<text>] [<offline player>] [<text>]:
  12. permission: server.admin
  13. permission message: &cServer &8&l» &7Je moet de rank &4Admin&7 hebben om dit command uit te voeren!
  14. executable by: console and player
  15. trigger:
  16. if arg-1 is "set":
  17. if arg-2 is set:
  18. if arg-3 is "Speler":
  19. if {rank.name.%player%} is "Admin" or "Owner":
  20. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &7Player" to player
  21. send "&cServer &8&l» &7Your rank has been set to: &7Player &7by: %{rank.color.%player%}%%player%" to arg-2
  22. set {rank.name.%arg-2%} to "Player"
  23. set {rank.color.%arg-2%} to "&7"
  24. set {rank.prefix.%arg-2%} to "&8[&7Player&8]"
  25. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  26. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  27. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  28. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  29. else if sender is op:
  30. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &7Player" to player
  31. send "&cServer &8&l» &7Your rank has been set to: &7Player &7by: %{rank.color.%player%}%%player%" to arg-2
  32. set {rank.name.%arg-2%} to "Player"
  33. set {rank.color.%arg-2%} to "&7"
  34. set {rank.prefix.%arg-2%} to "&8[&7Owner&8]"
  35. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  36. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  37. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  38. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  39.  
  40. else:
  41. send "&cServer &8&l» &7Je moet de rank &cAdmin&7 hebben om dit command uit te voeren!"
  42. else:
  43. send "&cServer &8&l» &7Usage: &c/rank [&7Set, Reset&c] [&7Player&c] [&7Rank&c]" to player
  44.  
  45. if arg-1 is "set":
  46. if arg-2 is set:
  47. if arg-3 is "Premium":
  48. if {rank.name.%player%} is "Admin" or "Owner":
  49. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &ePremium" to player
  50. send "&cServer &8&l» &7Your rank has been set to: &ePremium &7by: %{rank.color.%player%}%%player%" to arg-2
  51. set {rank.name.%arg-2%} to "Premium"
  52. set {rank.color.%arg-2%} to "&e"
  53. set {rank.prefix.%arg-2%} to "&8[&ePremium&8]"
  54. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  55. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  56. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  57. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  58. else if sender is op:
  59. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &ePremium" to player
  60. send "&cServer &8&l» &7Your rank has been set to: &ePremium &7by: %{rank.color.%player%}%%player%" to arg-2
  61. set {rank.name.%arg-2%} to "Premium"
  62. set {rank.color.%arg-2%} to "&e"
  63. set {rank.prefix.%arg-2%} to "&8[&ePremium&8]"
  64. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  65. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  66. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  67. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  68.  
  69. else:
  70. send "&cServer &8&l» &7Je moet de rank &cAdmin&7 hebben om dit command uit te voeren!"
  71. else:
  72. send "&cServer &8&l» &7Usage: &c/rank [&7Set, Remove, Reset&c] [&7Player&c] [&7Rank&c]" to player
  73.  
  74. if arg-1 is "set":
  75. if arg-2 is set:
  76. if arg-3 is "Helper":
  77. if {rank.name.%player%} is "Admin" or "Owner":
  78. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &9Helper" to player
  79. send "&cServer &8&l» &7Your rank has been set to: &9Helper &7by: %{rank.color.%player%}%%player%" to arg-2
  80. set {rank.name.%arg-2%} to "Helper"
  81. set {rank.color.%arg-2%} to "&9"
  82. set {rank.prefix.%arg-2%} to "&8[&9Helper&8]"
  83. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  84. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  85. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  86. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  87. else if sender is op:
  88. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &9Helper" to player
  89. send "&cServer &8&l» &7Your rank has been set to: &9Helper &7by: %{rank.color.%player%}%%player%" to arg-2
  90. set {rank.name.%arg-2%} to "Helper"
  91. set {rank.color.%arg-2%} to "&9"
  92. set {rank.prefix.%arg-2%} to "&8[&9Helper&8]"
  93. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  94. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  95. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  96. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  97.  
  98. else:
  99. send "&cServer &8&l» &7Je moet de rank &cAdmin&7 hebben om dit command uit te voeren!"
  100. else:
  101. send "&cServer &8&l» &7Usage: &c/rank [&7Set, Remove, Reset&c] [&7Player&c] [&7Rank&c]" to player
  102.  
  103. if arg-1 is "set":
  104. if arg-2 is set:
  105. if arg-3 is "Moderator":
  106. if {rank.name.%player%} is "Admin" or "Owner":
  107. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &3Moderator" to player
  108. send "&cServer &8&l» &7Your rank has been set to: &3Moderator &7by: %{rank.color.%player%}%%player%" to arg-2
  109. set {rank.name.%arg-2%} to "Moderator"
  110. set {rank.color.%arg-2%} to "&3"
  111. set {rank.prefix.%arg-2%} to "&8[&3Moderator&8]"
  112. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  113. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  114. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  115. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  116. else if sender is op:
  117. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &3Moderator" to player
  118. send "&cServer &8&l» &7Your rank has been set to: &3Moderator &7by: %{rank.color.%player%}%%player%" to arg-2
  119. set {rank.name.%arg-2%} to "Moderator"
  120. set {rank.color.%arg-2%} to "&3"
  121. set {rank.prefix.%arg-2%} to "&8[&3Moderator&8]"
  122. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  123. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  124. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  125. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  126.  
  127. else:
  128. send "&cServer &8&l» &7Je moet de rank &cAdmin&7 hebben om dit command uit te voeren!"
  129. else:
  130. send "&cServer &8&l» &7Usage: &c/rank [&7Set, Remove, Reset&c] [&7Player&c] [&7Rank&c]" to player
  131.  
  132. if arg-1 is "set":
  133. if arg-2 is set:
  134. if arg-3 is "Admin":
  135. if {rank.name.%player%} is "Owner":
  136. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &cAdmin" to player
  137. send "&cServer &8&l» &7Your rank has been set to: &cAdmin &7by: %{rank.color.%player%}%%player%" to arg-2
  138. set {rank.name.%arg-2%} to "Admin"
  139. set {rank.color.%arg-2%} to "&c"
  140. set {rank.prefix.%arg-2%} to "&8[&cAdmin&8]"
  141. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  142. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  143. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  144. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  145. else if sender is op:
  146. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &cAdmin" to player
  147. send "&cServer &8&l» &7Your rank has been set to: &cAdmin &7by: %{rank.color.%player%}%%player%" to arg-2
  148. set {rank.name.%arg-2%} to "Admin"
  149. set {rank.color.%arg-2%} to "&c"
  150. set {rank.prefix.%arg-2%} to "&8[&cAdmin&8]"
  151. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  152. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  153. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  154. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  155.  
  156. else:
  157. send "&cServer &8&l» &7Je moet de rank &cAdmin&7 hebben om dit command uit te voeren!"
  158. else:
  159. send "&cServer &8&l» &7Usage: &c/rank [&7Set, Remove, Reset&c] [&7Player&c] [&7Rank&c]" to player
  160.  
  161. if arg-1 is "set":
  162. if arg-2 is set:
  163. if arg-3 is "Owner":
  164. if {rank.name.%player%} is "Owner":
  165. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &4Owner" to player
  166. send "&cServer &8&l» &7Your rank has been set to: &4Owner &7by: %{rank.color.%player%}%%player%" to arg-2
  167. set {rank.name.%arg-2%} to "Owner"
  168. set {rank.color.%arg-2%} to "&4"
  169. set {rank.prefix.%arg-2%} to "&8[&4Owner&8]"
  170. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  171. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  172. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  173. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  174. else if sender is op:
  175. send "&cServer &8&l» &7The rank of %{rank.color.%player%}%%arg-2% &7has been set to: &4Owner" to player
  176. send "&cServer &8&l» &7Your rank has been set to: &4Owner &7by: %{rank.color.%player%}%%player%" to arg-2
  177. set {rank.name.%arg-2%} to "Owner"
  178. set {rank.color.%arg-2%} to "&4"
  179. set {rank.prefix.%arg-2%} to "&8[&4Owner&8]"
  180. #execute console command "/nte player %arg-2% prefix &4Owner &8&l» &7" < IF YOU USE NAMETAGEDIT!
  181. #execute console command "/nte player %arg-2% priority 1" < IF YOU USE NAMETAGEDIT!
  182. #execute console command "/nte reload" < IF YOU USE NAMETAGEDIT!
  183. #execute console command "/pex user %arg-2% group add %arg-3" < IF YOU USE "PERMISSIONSEX"
  184.  
  185. else:
  186. send "&cServer &8&l» &7Je moet de rank &cAdmin&7 hebben om dit command uit te voeren!"
  187. else:
  188. send "&cServer &8&l» &7Usage: &c/rank [&7Set, Remove, Reset&c] [&7Player&c] [&7Rank&c]" to player
  189.  
  190. on chat:
  191. cancel event
  192. if {rank.name.%player%} is not "Player" or "Premium":
  193. broadcast "%{rank.prefix.%player%}% %{rank.color.%player%}%%displayname of the player% &8&l» &f%message%"
  194. if {rank.name.%player%} is "Player" or "Premium":
  195. broadcast "%{rank.prefix.%player%}% %{rank.color.%player%}%%displayname of the player% &8&l» &7%message%"
  196.  
  197. on first join:
  198. set {rank.name.%player%} to "Player"
  199. set {rank.color.%player%} to "&7"
  200. set {rank.prefix.%player%} to "&7Player &8»"
  201.  
  202. on join:
  203. if {rank.name.%player%} is "Player":
  204. set player tab name to "&7Player &8&l» &7%player's name%"
  205. stop
  206.  
  207. if {rank.name.%player%} is "Premium":
  208. set player tab name to "&ePremium &8&l» &e%player's name%"
  209. stop
  210.  
  211. if {rank.name.%player%} is "Helper":
  212. set player tab name to "&9Helper &8&l» &9%player's name%"
  213. stop
  214.  
  215. if {rank.name.%player%} is "Moderator":
  216. set player tab name to "&3Mod &8&l» &3%player's name%"
  217. stop
  218.  
  219. if {rank.name.%player%} is "Admin":
  220. set player tab name to "&cAdmin &8&l» &c%player's name%"
  221. stop
  222.  
  223. if {rank.name.%player%} is "Owner":
  224. set player tab name to "&4Owner &8&l» &4%player's name%"
  225. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement