Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /iniciarloteria [<integer>] [<integer>]:
- trigger:
- if player has permission "Iniciar.Loteria":
- if arg 1 is set:
- if arg 2 is set:
- set {loteria.Iniciou} to true
- set {Loteria.Numero} to arg 1
- set {Loteria.Premio} to arg 2
- broadcast ""
- broadcast "&5&lLoteria >> &fO evento loteria iniciou!"
- broadcast "&5&lLoteria >> &fNumero de 0 a 100"
- broadcast "&6&lLoteria >> &fPremio: &5%arg 2%
- broadcast ""
- stop
- else:
- send "&5&lLoteria >> &fUse /iniciarloteria NUMERO PREMIO"
- stop
- else:
- send "&5&lLoteria >> &fUse /iniciarloteria NUMERO PREMIO"
- stop
- else:
- send "&5&lLoteria >> &fSem permissão"
- stop
- command /loteria [<integer>]:
- trigger:
- if {Loteria.Iniciou} is true:
- if {Loteria.Numero} = arg 1:
- broadcast ""
- broadcast "&5&lLoteria >> &fOpaaaaa !!! Tivemos um Ganhador !!!"
- broadcast ""
- set {Loteria.Iniciou} to false
- clear {Loteria.Numero}
- wait 5 seconds
- broadcast ""
- broadcast "&5&lLoteria >> &fO Ganhador Foi %player%"
- broadcast "&5&lLoteria >> &fParabens !!!"
- broadcast ""
- add {Loteria.Numero} to player's account
- clear {loteria.Premio}
- stop
- else:
- send "&5&lLoteria >> &fVocê errou tente novamente"
- stop
- else:
- send "&5&lLoteria >> &fO Evento não está aberto"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement