Alomax_

Untitled

Jul 29th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. variables:
  2. {skyworld.cash.%player%} = "&cSem cash"
  3.  
  4. command /cash [<text>] [<text>] [<text>]:
  5. executable by: console and player
  6. trigger:
  7. if arg 1 is "ativar":
  8. if arg 2 is equal to {keyscash::*}:
  9. make console execute command "/cash darcash %player% 1000"
  10. send "&a[SkyWorld] &fVoce ativou seu cash, Parabéns!"
  11. remove arg 2 from {keyscash::*}
  12. if arg 2 is not set:
  13. send "&a[SkyWorld] &f%player% &apara ativar seu cash use:"
  14. send "&a[SkyWorld] &f/cash ativar <codigo>"
  15. if arg 1 is not set:
  16. send "&a[SkyWorld] Seu cash &f--> &a%{skyworld.cash.%player%}%"
  17. if player has permission "skyworld.cash":
  18. if arg 1 is "darcash":
  19. if arg 2 is set:
  20. if arg 3 is set:
  21. add arg 3 to {skyworld.cash.%arg 3%}
  22. else:
  23. send "&a[SkyWorld] &fUse /cash darcash <player> <quantia>!"
  24. else:
  25. send "&a[SkyWorld] &fVoce esqueceu do nome do player!"
  26. if arg 1 is "tirarcash":
  27. if arg 2 is set:
  28. if arg 3 is set:
  29. remove arg 3 from {skyworld.cash.%arg 2%}
  30. else:
  31. send "&a[SkyWorld] &fUse /cash tirarcash <player> <quantia>!"
  32. else:
  33. send "&a[SkyWorld] &fVoce esqueceu do nome do player!"
  34. if arg 1 is "gerarkey":
  35. set {keytemporaria::*} to a random integer between 9999 and 9999999
  36. add {keytemporaria::*} to {keyscash::*}
  37. send "&a[SkyWorld] &fKey gerada: &f%{keytemporaria::*}%"
  38. clear {keytemporaria::*}
Advertisement
Add Comment
Please, Sign In to add comment