Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ────────────────────────── #
- # ● zGCash ● #
- # - Skript De Cash e Caixa #
- # By » zGнσl #
- # #
- # ────────────────────────── #
- variables:
- {Cash.%player%} = 0
- on first join:
- set {Cash.%player%} = 0
- command /comprarcaixa [<text>]:
- trigger
- if arg 1 is not set:
- send " "
- send "&5&lCaixas >> &fUse /comprarcaixa basica/avancada"
- send " "
- stop
- if arg 1 is "basica":
- if player's {Cash.%player%} is greater than or equal to 250:
- make console execute command "/dmistery give %player% basica 1"
- subtract 250 to {Cash.%player%}
- send "&5&lCaixas >> &fVocê comprou uma caixa basica"
- stop
- else:
- send "&5&lCaixas >> &fVocê não tem cash suficiente !"
- stop
- if arg 1 is "avancada":
- if player's {Cash.%player%} is greater than or equal to 750:
- make console execute command "/dmistery give %player% avancada 1"
- subtract 750 to {Cash.%player%}
- send "&5&lCaixas >> &fVocê comprou uma cixa avancada"
- stop
- else:
- send "&5&lCaixas >> &fVocê não tem cash suficiente!"
- stop
- command /cash [<offlineplayer>]:
- trigger:
- if arg 1 is not set:
- send "&a&lCash >> &fVocê tem &a%{Cash.%player%}% &fde cash"
- stop
- if arg 1 is set:
- send "&a&lCash >> &fO player &a%arg 1% &ftem &a%{Cash.%arg 1%}% &fde cash"
- stop
- command /darcash [<offlineplayer>] [<integer>]:
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if player's {Cash.%player%} is greater than or equal to %arg 2%:
- subtract %arg 2% to {Cash.%player%}
- add %arg 2% to {Cash.%arg 1%}
- send "&a&lCash >> &fVocê deu &a%arg 2% &fde cash para &a%arg 1%" to player
- send "&a&lCash >> &fVocê recebeu &a%arg 2% &fde cash de &a%player%" to arg 1
- stop
- else:
- send "&a&lCash >> &fVocê não tem cash suficiente"
- stop
- else:
- send "&a&lCash >> &fUse /darcash NICK QUANTIA"
- stop
- else:
- send "&a&lCash >> &fUse /darcash NICK QUANTIA"
- stop
- command /givecash [<offlineplayer>] [<integer>]:
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if player has permission "Cash.Admin":
- add %arg 2% to {Cash.%arg 1%}
- send "&a&lCash >> &fVocê deu &a%arg 2% &fde cash para &a%arg 1%"
- stop
- else:
- send "&a&lCash >> &fSem permissão"
- stop
- else:
- send "&a&lCash >> &fUse /givecash NICK QUANTIA"
- stop
- else:
- send "&a&lCash >> &fUse /givecash NICK QUANTIA"
- stop
- command /removecash [<offlineplayer>] [<integer>]:
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if player has permission "Cash.Admin":
- remove %arg 2% to {Cash.%arg 1%}
- send "&a&lCash >> &fVocê removeu &a%arg 2% &fde cash de &a%arg 1%"
- stop
- else:
- send "&a&lCash >> &fSem permissão"
- stop
- else:
- send "&a&lCash >> &fUse /removecash NICK QUANTIA"
- stop
- else:
- send "&a&lCash >> &fUse /removecash NICK QUANTIA"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement