Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # #!=================================[ Cash ]=================================!# #
- # #! Autor: KingDarkZ_ !# #
- # #! Nome: KDZ_Cash !# #
- # #! Versão: 1.1 !# #
- # #! Skript 100% gratuito !# #
- # #! Dependência: SkQuery !# #
- # #! !# #
- # #!=================================[ Cash ]=================================!# #
- #=============================== [ Opções ] ===============================#
- options:
- TempoEspera: 3 #Tempo, em segundos, que vai demorar para aparecer o ash ou delay no chat e para executar um comando!#
- MsgSemPermi: &cErro, você não tem permissão para fazer isso.
- SeuSite: Loja-MasterMC.ga #Coloque o seu site aqui para aparecer no /shop#
- #=============================== [ Fim das opções ] ===============================#
- #=============================== [ Variáveis - Não mecha ] ===============================#
- variables:
- {cash.%player%} = 0
- #=============================== [ Fim das variáveis ] ===============================#
- #==================== [ Comando /cash add, remover, setar e ver. ] ====================#
- command /cash [<text>] [<offlineplayer>] [<integer>]:
- trigger:
- if player has permission "cash.vermembro":
- if arg 1 is not set:
- send "&e "
- send "&e KDZ_Cash"
- send "&e "
- send "&a/cash ver &f- Para ver seu cash"
- send "&a/cash ver (Nick) &f- Para ver o cash de alguém"
- send "&e "
- stop
- if arg 1 is "ver":
- send "&aVocê tem &f%{cash.%player%}%&a de Cash"
- if arg 2 is set:
- send "&a%arg 2% tem &f%{cash.%arg 2%}% &ade cash"
- stop
- if player has permission "cash.vermaster":
- if arg 1 is not set:
- send "&e "
- send "&e KDZ_Cash"
- send "&e "
- send "&a/cash add Nick quantia"
- send "&a/cash remover Nick quantia"
- send "&a/cash setar Nick quantia"
- send "&a/cash ver &f- Para ver seu cash"
- send "&a/cash ver (Nick) &f- Para ver o cash de alguém"
- send "&e "
- stop
- if player has permission "cash.add":
- if arg 1 is "add":
- if arg 2 is set:
- if arg 3 is set:
- send "&aAguarde..."
- wait {@TempoEspera} second
- send "&aVocê enviou &A&L%arg 3%&a de Cash para &A&l%arg 2%"
- add arg 3 to {cash.%arg 2%}
- stop
- if player has permission "cash.remover":
- if arg 1 is "remover":
- if arg 2 is set:
- if arg 3 is set:
- if {cash.%player%} is more or equal to arg 3:
- send "&aAguarde..."
- wait {@TempoEspera} second
- send "&aVocê removeu &A&L%arg 3%&a de Cash de &A&l%arg 2%"
- remove arg 3 from {cash.%arg 2%}
- stop
- else:
- send "&a%arg 2% não tem %arg 3% de cash"
- if player has permission "cash.setar":
- if arg 1 is "setar":
- if arg 2 is set:
- if arg 3 is set:
- send "&aAguarde..."
- wait {@TempoEspera} second
- send "&aVocê setou o cash de &A&L%arg 2%&a para &A&l%arg 3%"
- set {cash.%arg 2%} to arg 3
- stop
- #=============================== [ Fim do /cash ] ===============================#
- #=============================== [ Não mecha aqui! ] ===============================#
- on inventory click:
- if inventory name of player's current inventory is "Shop de cash - {@SeuSite}":
- cancel event
- #=============================== [ ^^ Não mecha ^^ ] ===============================#
- #=============================== [ Comandos do /shop ] ===============================#
- command /shop:
- trigger:
- open chest with 5 rows named "Shop de cash - {@SeuSite}" to player
- play chest open at player with pitch 1
- format slot 4 of player with a Emerald Block named "&6Cash: &f%{cash.%player%}%" to run [make player execute command "/shop"]
- format slot 20 of player with a Nether Star named "&b&lVips &a(ON)" with lore "&7Clique para comprar seu vip." to run [make player execute command "/lojadecash-vips"]
- format slot 21 of player with a Tripwire Hook named "&5&lKeys &c(Off)" with lore "&7Clique para comprar Keys." to close
- format slot 22 of player with a Ender Chest named "&7&lCaixas &c(Off)" with lore "&7Clique para comprar caixas misteriosas." to close
- format slot 24 of player with a Experience Bottle named "&6&lMcMMo &c(Off)" with lore "&7Clique para comprar habilidades" to close
- format slot 23 of player with a Chest named "&a&lBaus &c(Off)" with lore "&7Clique para comprar /bau!" to close
- format slot 0 of player with a Glass Pane named "&8-/-" to close
- format slot 1 of player with a Glass Pane named "&8-/-" to close
- format slot 7 of player with a Glass Pane named "&8-/-" to close
- format slot 8 of player with a Glass Pane named "&8-/-" to close
- format slot 3 of player with a Glass Pane named "&8-/-" to close
- format slot 5 of player with a Glass Pane named "&8-/-" to close
- format slot 0 of player with a Glass Pane named "&8-/-" to close
- format slot 9 of player with a Glass Pane named "&8-/-" to close
- format slot 17 of player with a Glass Pane named "&8-/-" to close
- format slot 27 of player with a Glass Pane named "&8-/-" to close
- format slot 36 of player with a Glass Pane named "&8-/-" to close
- format slot 37 of player with a Glass Pane named "&8-/-" to close
- format slot 35 of player with a Glass Pane named "&8-/-" to close
- format slot 43 of player with a Glass Pane named "&8-/-" to close
- format slot 44 of player with a Glass Pane named "&8-/-" to close
- format slot 39 of player with a Glass Pane named "&8-/-" to close
- format slot 41 of player with a Glass Pane named "&8-/-" to close
- command /adsgyudsaguyadugydasuy-vip1-1:
- trigger:
- send "&aAguarde, Estamos processando sua Compra..."
- wait TempoEspera second
- if {cash.%player%} is more or equal to 15:
- remove 15 from {cash.%player%}
- send "&aObrigado por obter &a&lVIP HERO &apor &a&l15 Cash"
- send "&acom esta compra você esta ajudando muito o servidor!"
- broadcast "&a"
- broadcast "&a O player &a&l%player% &acomprou &a&lVIP HERO"
- broadcast "&a por &a&l15 de Cash&a, obtenha você tambem"
- broadcast "&a utilizando o comando &a&l/shop &aou &a&l/market"
- broadcast "&a"
- else:
- send "&cVocê não tem cash suficiente para comprar esse produto!"
- #=============================== [ Fiiim ] ===============================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement