Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. Options:
  2. #Prefixo do server
  3. Tag: &3[Loteria]&9
  4. #Quantidade De Numeros. Ex: 1 à 100
  5. NM:100
  6. #Quantidade De Anuncios
  7. Anuncios: 10
  8. #Tempo Entre Os Anuncios em Segundos
  9. TempoEntre: 10
  10. #ATIVAR a LOTERIA AUTOMATICA?
  11. LOTERIA.AUTOMATICA: true
  12. #TEMPO ENTRE CADA Bolao EM MINUTOS
  13. TEMPO.LOTERIA: 90
  14.  
  15. command /loteriainiciar [<text>]:
  16. permission: loteria.iniciar
  17. permission message: &4Voce nao tem permissao para usar esse comando
  18. trigger:
  19. set {Loteria.numero_vencedor1} to random integer between 0 and 100
  20. make player execute command "/forcestartloteria %{Loteria.numero_vencedor1}%"
  21.  
  22. command /loteria [<text>]:
  23. trigger:
  24. if {Loteria.iniciada} is true:
  25. if arg 1 is set:
  26. if arg 1 = {Loteria.numero_vencedor}:
  27. set {Loteria.iniciada} to false
  28. broadcast " "
  29. broadcast "{@Tag} &7Tivemos Um Ganhador: &3%player%!"
  30. broadcast "{@Tag} &7Numero Correto: &3%{Loteria.numero_vencedor}%"
  31. broadcast "{@Tag} &7O Vencedor &3%player% &7ganhou &380k"
  32. make console execute command "money give %player% 80000"
  33. clear {Loteria.numero_vencedor}
  34. clear {Loteria.vencedor}
  35. stop
  36. else:
  37. send "&1Voce errou!"
  38.  
  39. command /loteriacanelar:
  40. trigger:
  41. if player has permission "TLoteria.iniciar":
  42. if {Loteria.iniciada} is true:
  43. set {Loteria.iniciada} to false
  44. broadcast " "
  45. broadcast "{@Tag} &7A Loteria Cancelada, Ninguem acertou no numero correto!"
  46. broadcast "{@Tag} &7Numero Correto: &3%{Loteria.numero_vencedor}%"
  47. broadcast " "
  48. clear {Loteria.numero_vencedor}
  49. clear {Loteria.vencedor}
  50. stop
  51.  
  52. command /loteriaresposta:
  53. trigger:
  54. if player has permission "TLoteria.iniciar":
  55. if {Loteria.iniciada} is true:
  56. send "&cResposta Correta é: %{Loteria.numero_vencedor}%"
  57. stop
  58.  
  59. command /forcestartloteria [<text>]:
  60. trigger:
  61. if player has permission "TLoteria.iniciar":
  62. if arg 1 is set:
  63. set {Loteria.iniciada} to true
  64. set {Loteria.numero_vencedor} to arg 1
  65. loop {@Anuncios} times:
  66. if {Loteria.iniciada} is true:
  67. broadcast " "
  68. broadcast "{@Tag} &7Evento Loteria Esta Aberto"
  69. broadcast "{@Tag} &7Para Participar digita: /loteria [numero]"
  70. broadcast "{@Tag} &7Numero pode ser de 0 a &3{@NM}&7!"
  71. broadcast " "
  72. wait {@TempoEntre} seconds
  73. if {Loteria.iniciada} is true:
  74. if {Loteria.vencedor} is false:
  75. set {Loteria.iniciada} to false
  76. broadcast " "
  77. broadcast "{@Tag} &&A Loteria acabou, Ninguem acertou no numero correto!"
  78. broadcast "{@Tag} &7Numero Correto: &3%{Loteria.numero_vencedor}%"
  79. broadcast " "
  80. wait 1 tick
  81. clear {Loteria.numero_vencedor}
  82. clear {Loteria.vencedor}
  83.  
  84. every {@TEMPO.LOTERIA} minute:
  85. if {@LOTERIA.AUTOMATICA} is true:
  86. make console execute command "loteriainiciar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement