Advertisement
LexGamer

Untitled

Mar 21st, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. options:
  2. signprefix: &7[&6Casino&7]
  3. line2: &aRight Click
  4. line3: &aPlay A Game
  5. line4: &c5000/game
  6.  
  7. #BEFORE MESSAGES
  8. messageprefix: &7[&6Casino&7]
  9.  
  10. #IF THE PLAYER USE THE CASINO MESSAGES
  11. inusemessage: &cThe casino is now under using! Wait 5-10 sec please.
  12.  
  13. #HOW MANY MONEY WILL BE REMOVED WHEN PLAYER USE THE CASINO
  14. removedmoney: 5000
  15.  
  16. #PLAYER CAN WIN BETWEEN THIS AMOUNT
  17. canwin1: 0
  18. canwin2: 15000
  19.  
  20. #WHEN THE PLAYER WIN (ON THE SIGN)
  21. colorofthename: &a #COLOR CODE
  22. playerwin: &aWon #AND THE AMOUNT WILL APPEAR AFTER THIS
  23.  
  24. #WHEN YOU WIN, THE MESSAGE (IN CHAT)
  25. winmessage: &aYou won #AND THE AMOUNT WILL APPEAR AFTER THIS
  26.  
  27. #WHEN USE THE CASINOFIX COMMAND
  28. casinofixmessage: &aThe casinosign bug fixed!
  29. casinofixmessageerror: &cError! You dont have permission! (casino.fix)
  30.  
  31. command /casinosign [<text>]:
  32. permission: casino.fix
  33. permission message: {@casinofixmessageerror}
  34. trigger:
  35. if arg-1 is not set:
  36. message "&e/casinosign fix &6(Permission: casino.fix)"
  37. message "&6Fix the casino bug(When the casino not working)"
  38.  
  39. if arg-1 is "fix":
  40. message "{@casinofixmessage}"
  41. set {casino.underuse} to false
  42.  
  43. on sign change:
  44. if line 1 of block is "[casinoset]" or "[CasinoSet]":
  45. set line 1 of block to "{@signprefix}"
  46. set line 2 of block to "{@line2}"
  47. set line 3 of block to "{@line3}"
  48. set line 4 of block to "{@line4}"
  49.  
  50. on rightclick on sign:
  51. if player's balance is more than or equal to {@removedmoney}:
  52. if {casino.underuse} is false:
  53. set {casino.underuse} to true
  54. 1st line of clicked block is "{@signprefix}"
  55. 2nd line of clicked block is "{@line2}"
  56. if {casino.underuse} is true:
  57. remove {@removedmoney} from player's balance
  58. message "&a{@removedmoney}$ has been removed from your balance."
  59. set {casino.%player%} to a random integer between {@canwin1} and {@canwin2}
  60. set line 4 of block to "&5&kaaaaa"
  61. wait 2 second
  62. set line 3 of block to "{@colorofthename}%player%"
  63. set line 4 of block to "{@playerwin} &5%{casino.%player%}%"
  64. wait 20 tick
  65. add {casino.%player%} to {casino.isbalance.%player%}
  66. message "{@messageprefix} {@winmessage} &6%{casino.%player%}%$&a!"
  67. execute server command "eco give %command sender% %{casino.%player%}%"
  68. wait 1 second
  69. set line 3 of block to "{@line3}"
  70. set line 4 of block to "{@line4}"
  71. set {casino.underuse} to false
  72. else:
  73. message "{@messageprefix} {@inusemessage}"
  74.  
  75. on load:
  76. broadcast "{@messageprefix} &eThe CasinoSign created by &4&lAdmin &8x &4LexGamer &7Nur für SkyKit.ml"
  77. on unload:
  78. 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