Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {skyworld.cash.%player%} = "&cSem cash"
- command /cash [<text>] [<text>] [<text>]:
- executable by: console and player
- trigger:
- if arg 1 is "ativar":
- if arg 2 is equal to {keyscash::*}:
- make console execute command "/cash darcash %player% 1000"
- send "&a[SkyWorld] &fVoce ativou seu cash, Parabéns!"
- remove arg 2 from {keyscash::*}
- if arg 2 is not set:
- send "&a[SkyWorld] &f%player% &apara ativar seu cash use:"
- send "&a[SkyWorld] &f/cash ativar <codigo>"
- if arg 1 is not set:
- send "&a[SkyWorld] Seu cash &f--> &a%{skyworld.cash.%player%}%"
- if player has permission "skyworld.cash":
- if arg 1 is "darcash":
- if arg 2 is set:
- if arg 3 is set:
- add arg 3 to {skyworld.cash.%arg 3%}
- else:
- send "&a[SkyWorld] &fUse /cash darcash <player> <quantia>!"
- else:
- send "&a[SkyWorld] &fVoce esqueceu do nome do player!"
- if arg 1 is "tirarcash":
- if arg 2 is set:
- if arg 3 is set:
- remove arg 3 from {skyworld.cash.%arg 2%}
- else:
- send "&a[SkyWorld] &fUse /cash tirarcash <player> <quantia>!"
- else:
- send "&a[SkyWorld] &fVoce esqueceu do nome do player!"
- if arg 1 is "gerarkey":
- set {keytemporaria::*} to a random integer between 9999 and 9999999
- add {keytemporaria::*} to {keyscash::*}
- send "&a[SkyWorld] &fKey gerada: &f%{keytemporaria::*}%"
- clear {keytemporaria::*}
Advertisement
Add Comment
Please, Sign In to add comment