SkiLLerK_1337

Untitled

Dec 8th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. command /coinflip [<text>]:
  2. permission: coinflip
  3. trigger:
  4. if arg 1 is "flip":
  5. if player's balance is greater than 2499:
  6. chance of 40%:
  7. add 2500 to {coinflip::profit::%player%}
  8. remove 2500 from player's balance
  9. send "&7You won &a$5000"
  10. execute console command "eco give %player% 5000"
  11. else:
  12. remove 2500 from {coinflip::profit::%player%}
  13. remove 2500 from player's balance
  14. send "&cYou lost 2500$"
  15. else:
  16. send "&cYou dont have enough money"
  17. if arg 1 is "profit":
  18. send "&9Global Profit: &f$%{coinflip::profit::%player%}%"
  19. if arg is not set:
  20. send "&cERROR! &e/coinflip <flip/profit>"
Advertisement
Add Comment
Please, Sign In to add comment