Advertisement
LexGamer

Untitled

Mar 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. #CREATED BY LexGamer
  2. #ALL RIGHTS GOES TO THEM!
  3. #YOU CAN'T COPY IT, BUT YOU CAN USE AS A TEMPLATE OF ANOTHER TEMPLATE!
  4. #YOU CAN EDIT ONLY THE MESSAGES!
  5.  
  6. options:
  7.  
  8. #SIGN LINES
  9.  
  10. signprefix: &7[&6Casino&7]
  11. line2: &aRight Click
  12. line3: &aPlay A Game
  13. line4: &c5000/game
  14.  
  15. #BEFORE MESSAGES
  16. messageprefix: &7[&6Casino&7]
  17.  
  18. #IF THE PLAYER USE THE CASINO MESSAGES
  19. inusemessage: &cThe casino is now under using! Wait 5-10 sec please.
  20.  
  21. #HOW MANY MONEY WILL BE REMOVED WHEN PLAYER USE THE CASINO
  22. removedmoney: 5000
  23.  
  24. #PLAYER CAN WIN BETWEEN THIS AMOUNT
  25. canwin1: 0
  26. canwin2: 15000
  27.  
  28. #WHEN THE PLAYER WIN (ON THE SIGN)
  29. colorofthename: &a #COLOR CODE
  30. playerwin: &aWon #AND THE AMOUNT WILL APPEAR AFTER THIS
  31.  
  32. #WHEN YOU WIN, THE MESSAGE (IN CHAT)
  33. winmessage: &aYou won #AND THE AMOUNT WILL APPEAR AFTER THIS
  34.  
  35. #WHEN USE THE CASINOFIX COMMAND
  36. casinofixmessage: &aThe casinosign bug fixed!
  37. casinofixmessageerror: &cError! You dont have permission! (casino.fix)
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. # BECAUSE IT'S A SKRIPT, WE WROTE THE SYSTEM BELOW THIS HASHTAGS
  45. # PLEASE DON'T EDIT THINGS BELOW THIS TEXT, BECAUSE ALL YOU SHOULD EDIT IS HERE, ABOVE THIS TEXT
  46. # THANK YOU SO MUCH FOR THE DOWNLOAD
  47. # (THE SYSTEM IS BELOW THIS TEXT, AND IF YOU EDIT THE SYSTEM, IT MIGHT NOT WORK)
  48. # PLEASE DON'T EDIT THE VARIABLES (FOR EXAMPLE %arg-2%) BECAUSE IT MIGHT NOT WORK!
  49. #
  50. #
  51. #
  52. #
  53. #
  54. #
  55. #
  56. #
  57. #
  58. #
  59. #
  60. #
  61. #
  62. #
  63. #
  64. #
  65. #
  66. #
  67. #
  68. #
  69. #
  70. #
  71. #
  72. #
  73. #
  74. #
  75. #
  76. #
  77. #
  78. #
  79. #
  80. #
  81. #
  82. #
  83. #
  84. #
  85. #
  86. #
  87. #
  88. #
  89. #
  90. #
  91. #
  92. #
  93. #
  94. #
  95. #
  96. #
  97. #
  98. #
  99. #
  100. #
  101. #
  102. #
  103. #
  104. #
  105. #
  106. #
  107. #
  108. #
  109. #
  110. #
  111. #
  112. #
  113. #
  114. #
  115. #
  116. #
  117. #
  118. #
  119. #
  120. #
  121. #
  122. #
  123. #
  124. #
  125. #
  126. #
  127. #
  128. #
  129. #
  130. #
  131. #
  132. #
  133. #
  134. #
  135. #
  136. #
  137. #
  138. #
  139. #
  140. #
  141. #
  142. #
  143. #
  144. #
  145. #
  146. #
  147. #
  148. #
  149. #
  150. #
  151. #
  152. #
  153. #
  154. #
  155. #
  156. #
  157. #
  158. #
  159. #
  160. #
  161. #
  162. #
  163. #
  164. #
  165. #
  166. #
  167. #
  168. #
  169. #
  170. #
  171. #
  172. #
  173.  
  174. command /casinosign [<text>]:
  175. permission: casino.fix
  176. permission message: {@casinofixmessageerror}
  177. trigger:
  178. if arg-1 is not set:
  179. message "&e/casinosign fix &6(Permission: casino.fix)"
  180. message "&6Fix the casino bug(When the casino not working)"
  181.  
  182. if arg-1 is "fix":
  183. message "{@casinofixmessage}"
  184. set {casino.underuse} to false
  185.  
  186. on sign change:
  187. if line 1 of block is "[casinoset]" or "[CasinoSet]":
  188. set line 1 of block to "{@signprefix}"
  189. set line 2 of block to "{@line2}"
  190. set line 3 of block to "{@line3}"
  191. set line 4 of block to "{@line4}"
  192.  
  193. on rightclick on sign:
  194. if player's balance is more than or equal to {@removedmoney}:
  195. if {casino.underuse} is false:
  196. set {casino.underuse} to true
  197. 1st line of clicked block is "{@signprefix}"
  198. 2nd line of clicked block is "{@line2}"
  199. if {casino.underuse} is true:
  200. remove {@removedmoney} from player's balance
  201. message "&a{@removedmoney}$ has been removed from your balance."
  202. set {casino.%player%} to a random integer between {@canwin1} and {@canwin2}
  203. set line 4 of block to "&5&kaaaaa"
  204. wait 2 second
  205. set line 3 of block to "{@colorofthename}%player%"
  206. set line 4 of block to "{@playerwin} &5%{casino.%player%}%"
  207. wait 20 tick
  208. add {casino.%player%} to {casino.isbalance.%player%}
  209. message "{@messageprefix} {@winmessage} &6%{casino.%player%}%$&a!"
  210. execute server command "eco give %command sender% %{casino.%player%}%"
  211. wait 1 second
  212. set line 3 of block to "{@line3}"
  213. set line 4 of block to "{@line4}"
  214. set {casino.underuse} to false
  215. else:
  216. message "{@messageprefix} {@inusemessage}"
  217.  
  218. #
  219. #
  220. #
  221. #
  222. #
  223. #
  224. #
  225. #
  226. #
  227. #
  228. #
  229. #
  230. #
  231. #
  232. #
  233. #
  234. #
  235. #
  236. #
  237. #
  238. #
  239. #
  240. #
  241. #
  242. #
  243. #
  244. #
  245. #
  246. #
  247. #
  248. #
  249. #
  250. #
  251. #
  252. #
  253. #
  254. #
  255. #
  256. #
  257. #
  258. #
  259. #
  260. #
  261. #
  262. #
  263. #
  264. #
  265. #
  266. #
  267. #
  268. #
  269. #
  270. #
  271. #
  272. #
  273. #
  274. #
  275. #
  276. #
  277. #
  278. #
  279. #
  280. #
  281. #
  282. #
  283. #
  284. #
  285. #
  286. #
  287. #
  288. #
  289. #
  290. #
  291. #
  292. #
  293. #
  294. #
  295. #
  296. #
  297. #
  298. #
  299. #
  300. #
  301. #
  302. #
  303. #
  304. #
  305. #
  306. #
  307. #
  308. #
  309. #
  310. #
  311. #
  312. #
  313. #
  314. #
  315. #
  316. #
  317. #
  318. #
  319. #
  320. #
  321. #
  322. #
  323. #
  324. #
  325. #
  326. #
  327. #
  328. #
  329. #
  330. #
  331. #
  332. #
  333. #
  334. #
  335. #
  336. #
  337. #
  338. #
  339. #
  340. #
  341. #
  342. #
  343. #
  344. #
  345. #
  346. #
  347. #
  348. #
  349. #
  350. #
  351. #
  352. #
  353. #
  354. #
  355. #
  356. #
  357. #
  358. #
  359. #
  360. #
  361. #
  362. #
  363. #
  364. #
  365. #
  366. #
  367. #
  368. #
  369. #
  370. #
  371. #
  372. #
  373. #
  374. #
  375. #
  376. #
  377. #
  378. #
  379. #
  380. #
  381. #
  382. #
  383. #
  384. #
  385. #
  386. #
  387. #
  388. #
  389. #
  390. #
  391. #
  392. #
  393. #
  394. #
  395. #
  396. #
  397. #
  398. #
  399. #
  400. #
  401. #
  402. #
  403. #
  404. #
  405. #
  406. #
  407. #
  408. #
  409. #
  410. #
  411. #
  412. #
  413. #
  414. #
  415. #
  416. #
  417. #
  418. #
  419. #
  420. #
  421. #
  422. #
  423. #
  424. #
  425. #
  426. #
  427. #
  428. #
  429. #
  430. #
  431. #
  432. #
  433. #
  434. #
  435. #
  436. #
  437. #
  438. #
  439. #
  440. #
  441. #
  442. #
  443. #
  444. #
  445. #
  446. #
  447. #
  448. #
  449. #
  450. #
  451. #
  452. #
  453. #
  454. #
  455. #
  456. #
  457. #
  458. #
  459. #
  460. #
  461. #
  462. #
  463. #
  464. #
  465. #
  466.  
  467. on load:
  468. broadcast "{@messageprefix} &eThe CasinoSign created by &4&lAdmin &8x &4LexGamer &7Nur für SkyKit.ml"
  469. on unload:
  470. broadcast "{@messageprefix} &eThe CasinoSign created by &4&lAdmin &8x &4LexGamer &7Nur für SkyKit.ml"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement