Advertisement
Guest User

Finished Skript

a guest
May 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. command /clan [<text>] [<text>] [<offline player>]:
  2. aliases: c, cl
  3. trigger:
  4. if arg-1 isn't set:
  5. send "&fHeres A List Of Clan Command's."
  6. send ""
  7. send "/C Create (Clan Name) <Creates A Clan>"
  8. send "/C Leave (Clan Name) <Disband's The Clan If You Are Clan Owner>"
  9. send "/C Invite Player (Player Name) <Invites A Player Allowing Them To Join<Clan Owner Only>"
  10. send "/C Join (Clan Name) <Join A Clan With An Invitation>"
  11. send "/C Kick (Clan Player) <Kick's A Player From Your Clan <Clan Owner Only>"
  12. else:
  13. if arg-1 is "create":
  14. if arg-2 is set:
  15. if arg-3 isn't set:
  16. if {clanowner.%player%} is not 1:
  17. if {inclan.%player%} is not 1:
  18. broadcast "&b%player% &3Created The Clan &b%arg-2%"
  19. set {clangroup.%player%} to arg-2
  20. set {clanowner.%player%} to 1
  21. set {inclan.%player%} to 1
  22. else:
  23. send "&cYou Are Already In A Clan < /C Leave (Name) > To Create A New One"
  24. else:
  25. send "&cIncorrect Input"
  26. send ""
  27. send "&fTry Adding A Name Example /C Create (Name)"
  28. if arg-1 is "leave":
  29. if arg-2 is {clangroup.%player%}:
  30. if {clanowner.%player%} is 1:
  31. set {clanowner.%player%} to 0
  32. loop all players:
  33. if {clangroup.%loop-player%} is arg-2:
  34. set {clangroup.%loop-player%} to "NONE"
  35. set {inclan.%player%} to 0
  36. broadcast "&3The Clan &b%arg-2% &3Has Been Disbanded"
  37. else:
  38. if {clanowner.%player%} is 0:
  39. set {clangroup.%player%} to "NONE"
  40. set {inclan.%player%} to 0
  41. if arg-1 is "kick":
  42. if arg-3 is set:
  43. if the player is not "%player%":
  44. if {clanowner.%player%} is 1:
  45. set {clangroup.%arg-3%} to "NONE"
  46. set {clanowner.%arg-3%} to 0
  47. send "&3You Kicked &b%arg-3% &3From The Clan "
  48. else:
  49. send "&cYou Are Not The Clan Owner"
  50. if arg-1 is "invite":
  51. if {clanowner.%player%} is 1:
  52. if arg-2 is "player":
  53. send "&b%player% &3Invited You To Their Clan" to arg-3
  54. send "/C Join (Name)" to arg-3
  55. set {joinname.%arg-3%} to "%{clangroup.%player%}%"
  56. set {joinyesno.%arg-3%} to "yes"
  57. send "&3You Invited &b%arg-3%"
  58. else:
  59. send "&cYou Are Not The Clan Owner"
  60. if arg-1 is "join":
  61. if {inclan.%player%} is 0:
  62. if arg-2 is set:
  63. if {joinyesno.%player%} is "yes":
  64. set {clangroup.%player%} to "%{joinname.%player%}%"
  65. send "&3You Joined A Clan." to player
  66. set {joinname.%player%} to "123456789"
  67. else:
  68. send "&cYou Have No Inventations"
  69. on chat:
  70. cancel event
  71. broadcast "&b%{clangroup.%player%}% &7| &b%{rank.%player%}% &7| &b%player% &7| &f%message%"
  72. every 1 ticks:
  73. loop all players:
  74. if the loop-player is "AliTheBoss1":
  75. set {rank.%loop-player%} to "Developer"
  76. if {rank.%loop-player%} is not above 0:
  77. if the loop-player is not "AliTheBoss1":
  78. set {rank.%loop-player%} to "Default"
  79. first join:
  80. set {clangroup.%player%} to "NONE"
  81. on damage of player:
  82. if {clangroup.%victim%} is {clangroup.%attacker%}:
  83. cancel event
  84. send "&aYou May Not Hurt Your Clan Member"
  85. else:
  86. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement