Advertisement
zGhol

Untitled

Dec 21st, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. command /iniciarloteria [<integer>] [<integer>]:
  2. trigger:
  3. if player has permission "Iniciar.Loteria":
  4. if arg 1 is set:
  5. if arg 2 is set:
  6. set {loteria.Iniciou} to true
  7. set {Loteria.Numero} to arg 1
  8. set {Loteria.Premio} to arg 2
  9. broadcast ""
  10. broadcast "&5&lLoteria >> &fO evento loteria iniciou!"
  11. broadcast "&5&lLoteria >> &fNumero de 0 a 100"
  12. broadcast "&6&lLoteria >> &fPremio: &5%arg 2%
  13. broadcast ""
  14. stop
  15. else:
  16. send "&5&lLoteria >> &fUse /iniciarloteria NUMERO PREMIO"
  17. stop
  18. else:
  19. send "&5&lLoteria >> &fUse /iniciarloteria NUMERO PREMIO"
  20. stop
  21. else:
  22. send "&5&lLoteria >> &fSem permissão"
  23. stop
  24.  
  25. command /loteria [<integer>]:
  26. trigger:
  27. if {Loteria.Iniciou} is true:
  28. if {Loteria.Numero} = arg 1:
  29. broadcast ""
  30. broadcast "&5&lLoteria >> &fOpaaaaa !!! Tivemos um Ganhador !!!"
  31. broadcast ""
  32. set {Loteria.Iniciou} to false
  33. clear {Loteria.Numero}
  34. wait 5 seconds
  35. broadcast ""
  36. broadcast "&5&lLoteria >> &fO Ganhador Foi %player%"
  37. broadcast "&5&lLoteria >> &fParabens !!!"
  38. broadcast ""
  39. add {Loteria.Numero} to player's account
  40. clear {loteria.Premio}
  41. stop
  42. else:
  43. send "&5&lLoteria >> &fVocê errou tente novamente"
  44. stop
  45. else:
  46. send "&5&lLoteria >> &fO Evento não está aberto"
  47. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement