Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /loteriainiciar [<integer>] [<integer>]:
- permission: loteria.iniciar
- permission message: &5&lLOTERIA » &5Você Não Tem Permissão Para Iniciar Um Loteria!
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- set {Loteria.Iniciada} to true
- set {Loteria.Numero} to arg 1
- set {Loteria.Premio} to arg 2
- broadcast "&8&l<---============[&5&lLoteria&8&ll]============--->"
- broadcast " "
- broadcast "&5&lLOTERIA » &5A Loteria Foi Iniciada /loteria <Numero>"
- broadcast "&5&lLOTERIA » &5Premio: %arg 2%"
- broadcast ""
- broadcast "&8&l<---============&5&lLoteria&8&ll]============--->"
- stop
- else:
- send "&5&lLOTERIA » &5Use /loteriainiciar <numero> <premio>"
- stop
- else:
- send "&5&lLOTERIA » &5Use /loteriainiciar <numero> <premio>"
- stop
- command /loteria [<integer>]:
- trigger:
- if {Loteria.Iniciada} is true:
- if {Loteria.Numero} = arg 1:
- broadcast " "
- broadcast "&5&lLOTERIA » &5Opaaaaaa ..... Tivemos Um Vencedor !!!"
- broadcast "&5&lLOTERIA » &O Vencedor Foi &l%player%&5 Parabens !!!"
- broadcast ""
- set {Loteria.Iniciada} to false
- clear {Loteria.Numero}
- clear {Loteria.Premio}
- add {Loteria.Premio} to player's balance
- stop
- else:
- send "&5&lLOTERIA » &5Você Errou Tente Novamente !!!"
- stop
- else:
- send "&5&lLOTERIA » &5O Evento Loteria Não Esta Acontecendo !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement