hiturys

eee

Sep 9th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.41 KB | None | 0 0
  1.  
  2. #=====================================================#
  3. #CREATED BY HITURYG| YOU CAN'T REMOVE THIS LINE
  4. #FOR BUG REPORTS, INFORMATIONS AND ANYTHING ELSE ABOUT THIS SKRIPT PLEASE #CONTACT ME ON SKYPE: hituryboli
  5. #=====================================================#
  6. #
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. on skript load:
  15. if folder "plugins/GangSk" doesn't exists:
  16. log "Gang Skript > Creating Folder..."
  17. create folder "plugins/GangSk"
  18. log "Gang Skript > GangSk's Folder created!"
  19. if file "plugins/GangSk/Config.yml" doesn't exists:
  20. log "Gang Skript > Creating Config..."
  21. create file "plugins/GangSk/Config.yml"
  22. set "opencommands" to "true" in yaml file "plugins/GangSk/Config.yml"
  23. set "listcommand" to "true" in yaml file "plugins/GangSk/Config.yml"
  24. set "friendlyfire" to "false" in yaml file "plugins/GangSk/Config.yml"
  25. set "friendlyfiremsg" to "&cYou can't attack your Gang members." in yaml file "plugins/GangSk/Config.yml"
  26. set "Gangchat" to "true" in yaml file "plugins/GangSk/Config.yml"
  27. set "Gangchatspy" to "false" in yaml file "plugins/GangSk/Config.yml"
  28. set "Gangchatformat" to "&bGang &3Chat &9> &b" in yaml file "plugins/GangSk/Config.yml"
  29. set "Gangheadquarters" to "true" in yaml file "plugins/GangSk/Config.yml"
  30. set "Gangprefix" to "&cGang &8» " in yaml file "plugins/GangSk/Config.yml"
  31. log "Gang Skript > GangSk's Config created!"
  32. if file "plugins/GangSk/AutoUpdate.yml" doesn't exists:
  33. create file "plugins/GangSk/AutoUpdate.yml"
  34.  
  35. on skript start:
  36. set {opencommands} to single value "opencommands" get of "plugins/GangSk/Config.yml"
  37. set {listcommand} to single value "listcommand" get of "plugins/GangSk/Config.yml"
  38. set {friendlyfire} to single value "friendlyfire" get of "plugins/GangSk/Config.yml"
  39. set {friendlyfiremsg} to single value "friendlyfiremsg" get of "plugins/GangSk/Config.yml"
  40. set {Gangchat} to single value "Gangchat" get of "plugins/GangSk/Config.yml"
  41. set {Gangchatspy} to single value "Gangchatspy" get of "plugins/GangSk/Config.yml"
  42. set {Gangchatformat} to single value "Gangchatformat" get of "plugins/GangSk/Config.yml"
  43. set {Gangheadquarters} to single value "Gangheadquarters" get of "plugins/GangSk/Config.yml"
  44. set {Gangprefix} to single value "Gangprefix" get of "plugins/GangSk/Config.yml"
  45. log "Gang Skript > Config loaded"
  46. stop
  47.  
  48. command /Gang [<text>] [<text>]:
  49. trigger:
  50. if arg-1 isn't set:
  51. make player execute command "/Gang help"
  52. if arg-1 is "help":
  53. send " &bGang &9Help"
  54. send "&7/&eGang join &6name &7- &eJoin a Gang"
  55. send "&7/&eGang &6leave &7- &eLeave your Gang"
  56. if "%{listcommand}%" is "true":
  57. send "&7/&eGang &6list &7- &eList your Gang members"
  58. send "&7/&eGang &6chat &7- &eTo enable Gang chat"
  59. send "&7/&eGang create &6name &7- &eCreate your Gang"
  60. send "&7/&eGang invite &6name &7- &eInvite a player to your Gang"
  61. send "&7/&eGang deinvite &6name &7- &eCancel a player's invite to your Gang"
  62. send "&7/&eGang kick &6name &7- &eKick a player from your Gang"
  63. if "%{opencommands}%" is "true":
  64. send "&7/&eGang &6open &7- &eAllow anyone to join your Gang without invite"
  65. send "&7/&eGang &6openlist &7- &eList the open Gangs"
  66. if "%{Gangheadquarters}%" is "true":
  67. send "&7/&eGang &6setheadquarters &7- &eIf you want set your Gang's &6headquarters"
  68. send "&7/&eGang &6headquarters &7- &eIf you want go to your Gang's &6headquarters"
  69. send "&7/&eGang &6deleteheadquarters &7- &eIf you want delete your Gang's &6headquarters"
  70. send ""
  71. send "&bPlugin made by &3HituryGameYT4" #YOU CAN'T REMOVE THIS LINE
  72. if arg-1 is "create":
  73. if {isinaGang::%player%} isn't set:
  74. if arg-2 is set:
  75. if {createdGang::%arg-2%} isn't set:
  76. set {createdGang::%arg 2%} to 1
  77. set {creatorGang::%arg-2%} to player
  78. set {isinaGang::%player%} to "%arg-2%"
  79. add "%player%" to {Gang::%{isinaGang::%player%}%::list::*}
  80. add "%arg-2%" to {Gangs::list::*}
  81. send "%{Gangprefix}%&eYou have created your Gang with name: '&3 %arg-2%&e'"
  82. else:
  83. send "%{Gangprefix}%&cA Gang with this (&4%arg-2%&c) name already exists."
  84. else:
  85. set {createdGang::%player%} to 1
  86. set {creatorGang::%player%} to "%player%"
  87. set {isinaGang::%player%} to "%player%"
  88. add "%player%" to {Gangs::list::*}
  89. send "%{Gangprefix}%&eYou have created your Gang with name&8: &3%player%&e"
  90. else:
  91. send "%{Gangprefix}%&cYou are currently part of the Gang &4%{isinaGang::%player%}%"
  92. send "%{Gangprefix}%&cTo create a Gang you must leave your current Gang with the command&8: &7/&eGang &6leave"
  93. if arg-1 is "open":
  94. "%{opencommands}%" is "true"
  95. if {isinaGang::%player%} is set:
  96. if {creatorGang::%{isinaGang::%player%}%} is "%player%":
  97. if {openGang::%{isinaGang::%player%}%} isn't set:
  98. set {openGang::%{isinaGang::%player%}%} to 1
  99. add {isinaGang::%player%} to {Gang::openlist::*}
  100. send "%{Gangprefix}%&eNow your Gang is open, anyone can join it without an invite"
  101. else:
  102. delete {openGang::%{isinaGang::%player%}%}
  103. remove "%{isinaGang::%player%}%" from {Gang::openlist::*}
  104. send "%{Gangprefix}%&eYour Gang is no longer open, other players will need an invite to join it"
  105. else:
  106. send "%{Gangprefix}%&cOnly the Gang's creator can do that"
  107. else:
  108. send "%{Gangprefix}%&cYou aren't in a Gang"
  109. if arg-1 is "openlist":
  110. "%{opencommands}%" is "true"
  111. send " &aOpen &3Gangs:"
  112. send "&6%{Gang::openlist::*}%"
  113. if arg-1 is "list":
  114. "%{listcommand}%" is "true"
  115. if {isinaGang::%player%} is set:
  116. send " &3Gang &bMembers:"
  117. send "&6%{Gang::%{isinaGang::%player%}%::list::*}%"
  118. else:
  119. send "%{Gangprefix}%&cYou aren't in a Gang"
  120. if arg-1 is "leave":
  121. if {isinaGang::%player%} is set:
  122. if {creatorGang::%{isinaGang::%player%}%} is "%player%":
  123. delete {createdGang::%{isinaGang::%player%}%}
  124. delete {creatorGang::%{isinaGang::%player%}%}
  125. delete {Ganginvited::%player%::%arg-2%}
  126. delete {openGang::%{isinaGang::%player%}%}
  127. remove {isinaGang::%player%} from {Gang::openlist::*}
  128. remove "%{isinaGang::%player%}%" from {Gangs::list::*}
  129. loop {Gang::%{isinaGang::%player%}%::list::*}:
  130. delete {isinaGang::%loop-value%}
  131. remove loop-value from {Gang::%{isinaGang::%player%}%::list::*}
  132. delete {Gang::%{isinaGang::%player%}%::list::*}
  133. send "%{Gangprefix}%&cSince you were the Gang's creator, the Gang was disbanded"
  134. remove player from {Gang::%{isinaGang::%player%}%::list::*}
  135. delete {isinaGang::%player%}
  136. send "%{Gangprefix}%&cYou have left your Gang"
  137. else:
  138. send "%{Gangprefix}%&cYou aren't in a Gang"
  139. stop
  140. if arg-1 is "invite":
  141. if {isinaGang::%player%} is set:
  142. if {creatorGang::%{isinaGang::%player%}%} is "%player%":
  143. if arg-2 is set:
  144. if {Ganginvited::%arg-2%::%{isinaGang::%player%}%} isn't set:
  145. if "%{isinaGang::%arg-2%}%" isn't "%{isinaGang::%player%}%":
  146. arg-2 isn't player
  147. set {Ganginvited::%arg-2%::%{isinaGang::%player%}%} to 1
  148. send "%{Gangprefix}%&eYou have invited &6%arg-2% &eto your Gang!"
  149. set {_arg2} to arg-2 parsed as player
  150. send "%{Gangprefix}%&6%player% &einvited you to &6%{isinaGang::%player%}% &eGang" to {_arg2}
  151. else:
  152. send "%{Gangprefix}%&4%arg-2% &cis already part of your Gang"
  153. else:
  154. send "%{Gangprefix}%&cYou already invited &4%arg-2% &cto your Gang"
  155. send "%{Gangprefix}%&cIf you want cancel the invite use the command&8: &7/&eGang deinvite &6%arg-2%&c"
  156. else:
  157. send "%{Gangprefix}%&cYou must specify the player that you want to invite"
  158. else:
  159. send "%{Gangprefix}%&cYou aren't the Gang's creator"
  160. else:
  161. send "%{Gangprefix}%&cYou aren't in a Gang"
  162. if arg-1 is "deinvite":
  163. if {isinaGang::%player%} is set:
  164. if {creatorGang::%{isinaGang::%player%}%} is "%player%":
  165. if arg-2 is set:
  166. if "%{isinaGang::%arg-2%}%" isn't "%{isinaGang::%player%}%":
  167. if {Ganginvited::%arg-2%::%{isinaGang::%player%}%} is set:
  168. arg-2 isn't player
  169. delete {Ganginvited::%arg-2%::%{isinaGang::%player%}%}
  170. send "%{Gangprefix}%&eYou have removed &6%arg-2%&e's invite to your Gang"
  171. set {_arg2} to arg-2 parsed as player
  172. send "%{Gangprefix}%&cYou are no longer invited to the &4%{isinaGang::%player%}% &cGang!" to {_arg2}
  173. else:
  174. send "%{Gangprefix}%&cYou haven't invited &4%arg-2% &cto your Gang"
  175. else:
  176. send "%{Gangprefix}%&4%arg-2% &cis already part of your Gang"
  177. send "%{Gangprefix}%&eIf you want to kick &6%arg-2% &efrom your Gang use the command &7/&eGang kick &6%arg-2%&e"
  178. else:
  179. send "%{Gangprefix}%&cYou must specify the player you want to deinvite"
  180. else:
  181. send "%{Gangprefix}%&cYou aren't the Gang's creator"
  182. else:
  183. send "%{Gangprefix}%&cYou aren't in a Gang"
  184. if arg-1 is "kick":
  185. arg-2 isn't player
  186. if {isinaGang::%player%} is set:
  187. if {creatorGang::%{isinaGang::%player%}%} is "%player%":
  188. if arg-2 is set:
  189. if {isinaGang::%arg-2%} is set:
  190. arg 2 isn't player
  191. delete {isinaGang::%arg-2%}
  192. remove arg-2 from {Gang::%{isinaGang::%player%}%::list}
  193. send "%{Gangprefix}%&eYou have kicked &6%arg-2% &efrom your Gang!"
  194. set {_arg2} to arg-2 parsed as player
  195. send "%{Gangprefix}%&6%player% &ekicked you from &6%{isinaGang::%player%}% &eGang" to {_arg2}
  196. delete {Ganginvited::%arg-2%::%{isinaGang::%player%}%}
  197. else:
  198. send "%{Gangprefix}%&4%arg-2% &cisn't part of your Gang"
  199. else:
  200. send "%{Gangprefix}%&cYou must specify the player you want to kick"
  201. else:
  202. send "%{Gangprefix}%&cYou aren't the Gang's creator"
  203. else:
  204. send "%{Gangprefix}%&cYou aren't in a Gang"
  205. if arg-1 is "join":
  206. if arg 2 is set:
  207. if {createdGang::%arg-2%} is 1:
  208. if {isinaGang::%player%} isn't set:
  209. if {openGang::%arg-2%} isn't set:
  210. if {Ganginvited::%player%::%arg-2%} is 1:
  211. set {isinaGang::%player%} to arg-2
  212. send "%{Gangprefix}%&eYou have joined the &6%{isinaGang::%player%}% &eGang"
  213. send "%{Gangprefix}%&6%player% &ejoined your Gang!" to {creatorGang::%{isinaGang::%player%}%}
  214. delete {Ganginvited::%player%::%{isinaGang::%player%}%}
  215. add player to {Gang::%{isinaGang::%player%}%::list::*}
  216. else:
  217. send "%{Gangprefix}%&cYou can't join this Gang without an invite"
  218. stop
  219. else:
  220. set {isinaGang::%player%} to arg-2
  221. send "%{Gangprefix}%&eYou have joined the &6%{isinaGang::%player%}% &eGang"
  222. send "%{Gangprefix}%&6%player% &ejoined your Gang!" to {creatorGang::%{isinaGang::%player%}%}
  223. delete {Ganginvited::%player%::%arg-2%}
  224. add player to {Gang::%{isinaGang::%player%}%::list::*}
  225. stop
  226. else:
  227. send "%{Gangprefix}%&cYou are already in a Gang"
  228. stop
  229. else:
  230. send "%{Gangprefix}%&cThis Gang doesn't exist"
  231. stop
  232. else:
  233. send "%{Gangprefix}%&cYou must specify the name of the Gang you want to join"
  234. stop
  235. if arg-1 is "chat":
  236. "%{Gangchat}%" is "true"
  237. if {isinaGang::%player%} is set:
  238. if {Gangchat::%player%} isn't set:
  239. set {Gangchat::%player%} to true
  240. set {Gangchatting::%player%} to "%{isinaGang::%player%}%"
  241. send "%{Gangprefix}%&eYou have enabled the Gang chat, only your Gang can read the messages you send now"
  242. send "%{Gangprefix}%&cTo disable the Gang chat use the command &4'&c/Gang chat&4' &cagain"
  243. else:
  244. delete {Gangchat::%player%}
  245. delete {Gangchatting::%player%}
  246. send "%{Gangprefix}%&cYou have disabled the Gang chat, you are back in the public chat"
  247. else:
  248. send "%{Gangprefix}%&cYou must be in a Gang to use the Gang chat"
  249. if arg-1 is "headquarters", "headquarter" or "home":
  250. "%{Gangheadquarters}%" is "true"
  251. if {isinaGang::%player%} is set:
  252. if {headquarters::%{isinaGang::%player%}%} isn't set:
  253. send "%{Gangprefix}%&cYour Gang doesn't have a headquarters"
  254. if {creatorGang::%{isinaGang::%player%}%} is player:
  255. send "%{Gangprefix}%&eIf you want set the Gang &6headquarters &euse the command &6'&7/&eGang &6setheadquarters&6'"
  256. stop
  257. else:
  258. teleport player to {headquarters::%{isinaGang::%player%}%}
  259. stop
  260. else:
  261. send "%{Gangprefix}%&cYou must be in a Gang to use this command"
  262. stop
  263. if arg-1 is "setheadquarters", "setheadquarter" or "sethome":
  264. "%{Gangheadquarters}%" is "true"
  265. if {isinaGang::%player%} is set:
  266. if {creatorGang::%{isinaGang::%player%}%} is player:
  267. if {headquarters::%{isinaGang::%player%}%} isn't set:
  268. set {headquarters::%{isinaGang::%player%}%} to location of player
  269. send "%{Gangprefix}%&eYou have set your Gang's &6headquarters &eto these coordinates: &6%{headquarters::%{isinaGang::%player%}%}%"
  270. stop
  271. else:
  272. send "%{Gangprefix}%&eYou have moved your &eGang's &6headquarters &efrom these coordinates: &6%{headquarters::%arg-2%}% &eto these coordinates: &6%location of player%"
  273. set {headquarters::%{isinaGang::%player%}%} to location of player
  274. stop
  275. else:
  276. send "%{Gangprefix}%&cOnly the Gang's creator can do that"
  277. stop
  278. else:
  279. send "%{Gangprefix}%&cYou must be in a Gang to use this command"
  280. stop
  281. if arg-1 is "deleteheadquarters", "deleteheadquarter", "deletehome" or "delhome":
  282. "%{Gangheadquarters}%" is "true"
  283. if {isinaGang::%player%} is set:
  284. if {creatorGang::%{isinaGang::%player%}%} is player:
  285. if {headquarters::%{isinaGang::%player%}%} is set:
  286. delete {headquarters::%{isinaGang::%player%}%}
  287. send "%{Gangprefix}%&eYou have deleted your Gang's &6headquarters &7(&eit was at &6%{headquarters::%{isinaGang::%player%}%}%&7)"
  288. stop
  289. else:
  290. send "%{Gangprefix}%&cYour Gang doesn't have a &4headquarters"
  291. stop
  292. else:
  293. send "%{Gangprefix}%&cOnly the Gang's creator can do that"
  294. stop
  295. else:
  296. send "%{Gangprefix}%&cYou must be in a Gang to use this command"
  297. stop
  298. command /Gangadmin [<text>] [<text>] [<text>]:
  299. permission: Gang.admin
  300. trigger:
  301. if arg-1 isn't set:
  302. make player execute command "/Gang help"
  303. if arg-1 is "help":
  304. send " &bGang &cAdmin &9Help"
  305. send "&7/&eGangadmin configreload &7- &eReload the config file"
  306. send "&7/&eGangadmin open &6name &7- &eForce open a Gang"
  307. send "&7/&eGangadmin invite player &6Gang &7- &eForce invite a player to a Gang"
  308. send "&7/&eGangadmin kick &6name &7- &eForce kick a player from a Gang"
  309. send "&7/&eGangadmin join &6name &7- &eForce join a Gang without invite"
  310. send "&7/&eGangadmin delete &6name &7- &eForce disband a Gang"
  311. send "&7/&eGangadmin headquarters &6Gangname"
  312. send "&7/&eGangadmin deleteheadquarters &6name &7- &eForce delete the Gang's headquarters"
  313. send "&7/&eGangadmin setheadquarters &6name &7- &eForce set a Gang's headquarters to your position"
  314. send "&7/&eGangadmin &6list &7- &eList all Gangs"
  315. send ""
  316. send "&bPlugin made by &3Sitieno14" #YOU CAN'T REMOVE THIS LINE
  317. #SKRIPT MADE BY SITIENO14
  318. if arg-1 is "configreload" or "reload":
  319. if executor isn't console:
  320. if player has the permission "Gangadmin.reload":
  321. wait 1 tick
  322. else:
  323. send "%{Gangprefix}%&cYou don't have the permission to execute this command!"
  324. stop
  325. if folder "plugins/GangSk" doesn't exists:
  326. send "%{Gangprefix}%&eReload info sent to &6console"
  327. log "Gang Skript > Creating Folder..."
  328. create folder "plugins/GangSk"
  329. log "Gang Skript > GangSk's Folder created!"
  330. if file "plugins/GangSk/Config.yml" doesn't exists:
  331. log "Gang Skript > Creating Config..."
  332. create file "plugins/GangSk/Config.yml"
  333. set "opencommands" to "true" in yaml file "plugins/GangSk/Config.yml"
  334. set "listcommand" to "true" in yaml file "plugins/GangSk/Config.yml"
  335. set "friendlyfire" to "false" in yaml file "plugins/GangSk/Config.yml"
  336. set "friendlyfiremsg" to "&cYou can't attack your Gang members." in yaml file "plugins/GangSk/Config.yml"
  337. set "Gangchat" to "true" in yaml file "plugins/GangSk/Config.yml"
  338. set "Gangchatspy" to "false" in yaml file "plugins/GangSk/Config.yml"
  339. set "Gangchatformat" to "&bGang &3Chat &9> &b" in yaml file "plugins/GangSk/Config.yml"
  340. set "Gangheadquarters" to "true" in yaml file "plugins/GangSk/Config.yml"
  341. set "Gangprefix" to "&bGang &3» " in yaml file "plugins/GangSk/Config.yml"
  342. log "Gang Skript > GangSk's Config created!"
  343. if file "plugins/GangSk/AutoUpdate.yml" doesn't exists:
  344. create file "plugins/GangSk/AutoUpdate.yml"
  345. set {opencommands} to single value "opencommands" get of "plugins/GangSk/Config.yml"
  346. set {listcommand} to single value "listcommand" get of "plugins/GangSk/Config.yml"
  347. set {friendlyfire} to single value "friendlyfire" get of "plugins/GangSk/Config.yml"
  348. set {friendlyfiremsg} to single value "friendlyfiremsg" get of "plugins/GangSk/Config.yml"
  349. set {Gangchat} to single value "Gangchat" get of "plugins/GangSk/Config.yml"
  350. set {Gangchatspy} to single value "Gangchatspy" get of "plugins/GangSk/Config.yml"
  351. set {Gangchatformat} to single value "Gangchatformat" get of "plugins/GangSk/Config.yml"
  352. set {Gangheadquarters} to single value "Gangheadquarters" get of "plugins/GangSk/Config.yml"
  353. set {Gangprefix} to single value "Gangprefix" get of "plugins/GangSk/Config.yml"
  354. log "Gang Skript > Config loaded"
  355. stop
  356. if arg-1 is "open":
  357. if arg-2 is set:
  358. if {openGang::%arg-2%} isn't set:
  359. set {openGang::%arg-2%} to 1
  360. add arg-2 to {Gang::openlist::*}
  361. send "%{Gangprefix}%&eNow &6%arg-2% &eGang is open, anyone can join it without an invite"
  362. else:
  363. delete {openGang::%arg-2%}
  364. remove arg-2 from {Gang::openlist::*}
  365. send "%{Gangprefix}%&6%arg-2% &eGang is no longer open, other players will need an invite to join it"
  366. else:
  367. send "%{Gangprefix}%&cYou must specify the Gang you want to set to open"
  368. if arg-1 is "invite":
  369. if arg-2 is set:
  370. if arg 3 is set:
  371. if {createdGang::%arg-3%} is set:
  372. set {Ganginvited::%arg-2%::%arg-3%} to 1
  373. send "%{Gangprefix}%&eYou have invited &6%arg-2% &eto the Gang: &6%arg-3%!"
  374. send "%{Gangprefix}%&eYou were invited to the Gang &6%arg-3%"
  375. else:
  376. send "%{Gangprefix}%&cThis Gang doesn't exist"
  377. else:
  378. send "%{Gangprefix}%&cYou must specify the Gang you want invite &4%arg-2% &cto"
  379. else:
  380. send "%{Gangprefix}%&cYou must specify the player that you want to invite and the Gang you want to invite them to"
  381. if arg-1 is "kick":
  382. if arg-2 is set:
  383. if {isinaGang::%arg-2%} is set:
  384. set {_arg2} to arg 2 parsed as player
  385. if {creatorGang::%{isinaGang::%arg-2%}%} is arg-2:
  386. delete {createdGang::%{isinaGang::%arg-2%}%}
  387. delete {creatorGang::%{isinaGang::%arg-2%}%}
  388. delete {Ganginvited::%arg-2%::%{isinaGang::%arg-2%}%}
  389. delete {openGang::%{isinaGang::%arg-2%}%}
  390. remove {isinaGang::%arg-2%} from {Gang::openlist::*}
  391. remove "%{isinaGang::%arg-2%}%" from {Gangs::list::*}
  392. loop {Gang::%{isinaGang::%arg-2%}%::list::*}:
  393. delete {isinaGang::%loop-value%}
  394. send "%{Gangprefix}%&cSince &6%arg-2%&c was the Gang's creator, the Gang was disbanded"
  395. send "%{Gangprefix}%&cSince you were the Gang creator, your Gang was disbanded" to {_arg2}
  396. remove arg-2 from {Gang::%{isinaGang::%arg-2%}%::list}
  397. delete {isinaGang::%arg-2%}
  398. send "%{Gangprefix}%&eYou have kicked &6%arg-2% &efrom his Gang!"
  399. send "%{Gangprefix}%&cYou were kicked from &4%{isinaGang::%arg-2%}% &cGang" to {_arg2}
  400. else:
  401. send "%{Gangprefix}%&4%arg-2% &cisn't in a Gang"
  402. else:
  403. send "%{Gangprefix}%&cYou must specify the player that you want to kick"
  404. if arg-1 is "join":
  405. if arg 2 is set:
  406. if {createdGang::%arg-2%} is 1:
  407. if {isinaGang::%player%} isn't set:
  408. set {isinaGang::%player%} to arg-2
  409. send "%{Gangprefix}%&eYou have joined &6%{isinaGang::%player%}% &eGang"
  410. send "%{Gangprefix}%&6%player% &ejoined your Gang!" to {creatorGang::%{isinaGang::%player%}%}
  411. add player to {Gang::%{isinaGang::%player%}%::list}
  412. else:
  413. send "%{Gangprefix}%&cYou are already in a Gang"
  414. else:
  415. send "%{Gangprefix}%&cThis Gang doesn't exist"
  416. else:
  417. send "%{Gangprefix}%&cYou must specify the name of the Gang you want to join"
  418. if arg-1 is "list":
  419. send " &3Gangs &bList"
  420. send "&6%{Gangs::list::*}%"
  421. if arg-1 is "delete":
  422. if arg-2 is set:
  423. if {createdGang::%arg-2%} is set:
  424. delete {createdGang::%arg-2%}
  425. delete {creatorGang::%arg-2%}
  426. delete {Ganginvited::%player%::%arg-2%}
  427. delete {openGang::%arg-2%}
  428. delete {Gang::%arg-2%::list::*}
  429. loop {Gang::%arg-2%::list::*}:
  430. delete {isinaGang::%loop-value%}
  431. remove loop-value from {Gang::%arg-2%::list::*}
  432. delete {Gang::%arg-2%::list::*}
  433. remove arg-2 from {Gang::openlist::*}
  434. remove arg-2 from {Gangs::list::*}
  435. send "%{Gangprefix}%&eYou have deleted &6%arg-2% &eGang"
  436. else:
  437. send "%{Gangprefix}%&cThis Gang doesn't exist"
  438. else:
  439. send "%{Gangprefix}%&cYou must specify the name of the Gang you want force delete"
  440. if arg-1 is "headquarters", "headquarter" or "home":
  441. "%{Gangheadquarters}%" is "true"
  442. if arg-2 is set:
  443. if {createdGang::%arg-2%} is set:
  444. if {headquarters::%arg-2%} isn't set:
  445. send "%{Gangprefix}%&cThis Gang &7(&4%arg-2%&7) &cdoesn't have a &4headquarters"
  446. stop
  447. else:
  448. teleport player to {headquarters::%arg-2%}
  449. stop
  450. else:
  451. send "%{Gangprefix}%&cA Gang with this &c(&4%arg-2%&c) name doesn't exists"
  452. else:
  453. send "%{Gangprefix}%&cYou must specify a Gang"
  454. stop
  455. if arg-1 is "setheadquarters", "setheadquarter" or "sethome":
  456. "%{Gangheadquarters}%" is "true"
  457. if arg-2 is set:
  458. if {createdGang::%arg-2%} is set:
  459. if {headquarters::%arg-2%} isn't set:
  460. set {headquarters::%arg-2%} to location of player
  461. send "%{Gangprefix}%&eYou have set &6%arg 2% &eGang's &6headquarters &eto these coordinates: %{headquarters::%arg-2%}%"
  462. stop
  463. else:
  464. send "%{Gangprefix}%&eYou have moved &6%arg 2% &eGang's &6headquarters &efrom these coordinates: &6%{headquarters::%arg-2%}% &eto these coordinates: &6%location of player%"
  465. set {headquarters::%arg-2%} to location of player
  466. stop
  467. else:
  468. send "%{Gangprefix}%&cA Gang with this &c(&4%arg-2%&c) name doesn't exists"
  469. stop
  470. else:
  471. send "%{Gangprefix}%&cYou must specify a Gang"
  472. stop
  473. if arg-1 is "deleteheadquarters", "deleteheadquarter", "deletehome" or "delhome":
  474. "%{Gangheadquarters}%" is "true"
  475. if arg-2 is set:
  476. if {createdGang::%arg-2%} is set:
  477. if {headquarters::%arg-2%} isn't set:
  478. send "%{Gangprefix}%&cThis Gang &7(&4%arg-2%&7) &cdoesn't have a &4headquarters"
  479. stop
  480. else:
  481. delete {headquarters::%arg-2%}
  482. send "%{Gangprefix}%&eYou have deleted &6%arg-2% &eGang's headquarters"
  483. stop
  484. else:
  485. send "%{Gangprefix}%&cYou must be in a Gang to use this command"
  486. stop
  487. else:
  488. send "%{Gangprefix}%&cYou must specify a Gang"
  489. stop
  490. stop
  491.  
  492.  
  493.  
  494. #SKRIPT DAMAGE AND CHAT (DO NOT TOUCH UNLESS U KNOW WHAT U DO)
  495. on damage:
  496. "%{friendlyfire}%" is "false"
  497. attacker is a player
  498. victim is a player
  499. if {isinaGang::%victim%} is "%{isinaGang::%attacker%}%":
  500. cancel event
  501. send "%{Gangprefix}%%{friendlyfiremsg}%" to attacker
  502. on chat:
  503. "%{Gangchat}%" is "true"
  504. if {Gangchat::%player%} is set:
  505. cancel event
  506. loop all players:
  507. if "%{isinaGang::%loop-player%}%" is "%{Gangchatting::%player%}%":
  508. send "%{Gangchatformat}% %message%" to loop-player
  509. "%{Gangchatspy}%" is "true"
  510. loop all players:
  511. if loop-player has the permission "Gangchat.spy":
  512. if loop-player isn't player:
  513. send "&bGang&fChat&3Spy&9> &6%player% &ehas written in &6%{isinaGang::%player%}% &eGang's chat this message&8: &b%message%" to loop-player
  514.  
  515. #/!\ Warning /!\ /!\ Warning /!\ /!\ Warning /!\ /!\ Warning /!\
  516. #EVERYTHING YOU WILL WRITE IN THIS FILE WILL BE ERASED ON NEW UPDATES
  517. #To set this plugin's options there is a config in serverfolder/plugins/GangSk/Config.yml
  518. #
  519. #thisismyskript Rules:
  520. #- Don't remove "Plugin made by HituryGameYT", "CREATED BY URMOM (HITURY)", "YOU CAN'T REMOVE THIS LINE" line and similar lines
  521. #- Don't take credit
  522. #- You are free to change this ok
  523. #
  524. #=====================================================#
  525. #CREATED BY HITURYMOM123 | YOU CAN'T REMOVE THIS LINE
  526. #FOR BUG REPORTS, INFORMATIONS AND ANYTHING ELSE ABOUT THIS SKRIPT PLEASE #CONTACT ME ON SKYPE: sitieno14
  527. #=====================================================#
  528. #
Advertisement
Add Comment
Please, Sign In to add comment