Advertisement
Jhonattam_

Untitled

Jul 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. variables:
  2. {Sorteio.Iniciado} = false
  3.  
  4. command /sorteio:
  5. permission: admin.sk
  6. permission message: &cVocê não tem permissão para utilizar esse comando.
  7. trigger:
  8. if {Sorteio.Iniciado} is false:
  9. set {Sorteio.Iniciado} to true
  10. if {list::*} have players:
  11. broadcast "&f[&6LS&f] &aSorteio iniciando em 5 minutos"
  12. wait 3000 tick
  13. set {_ganhador} to random element out of {list::*}
  14. broadcast "&f[&6LS&f] &aO ganhador do sorteio foi &e%{_ganhador}%&6!"
  15. wait 40 tick
  16. send "&f[&6LS&f] &cEste sorteio foi um teste." to {_ganhador}
  17. set {Sorteio.Iniciado} to false
  18. stop
  19. else:
  20. set {Sorteio.Iniciado} to false
  21. send "Não há players"
  22. stop
  23.  
  24. command /participar:
  25. permission: sorteio.participar
  26. permission message: &cVocê não tem permissão para utilizar esse comando.
  27. trigger:
  28. if {Sorteio.Iniciado} is true:
  29. if "%{list::*}%" does not contain "%player%":
  30. add player to {list::*}
  31. send "&avocÊ está participando"
  32. else:
  33. send "você ja está participando"
  34. stop
  35. else:
  36. send "Sorteio não foi iniciado"
  37. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement