grantygames

Untitled

Jul 17th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. #Evento Quiz#
  2. #Author: TotugasNobreBR#
  3. #Versao Testada 1.7.2#
  4.  
  5. options:
  6. #Prefix Das Mensagens#
  7. Prefix: &7[&eEvento Quiz&7]
  8.  
  9. #Tempo Entre Cada Anuncio#
  10. TempoEntre: 10
  11. variables:
  12. {Quiz.Iniciado} = false
  13. # | Configuraçoes | #
  14.  
  15. command /startquiz [<text>] [<text>]:
  16. permission: quiz.startquiz
  17. permission message: &cVocê não tem permissão para utilizar esse comando.
  18. trigger:
  19. clear {Quiz.Reposta}
  20. if arg 1 is set:
  21. if arg 2 is set:
  22. if {Quiz.Iniciado} is false:
  23. set {_ask} to arg 1
  24. replace all "_" with " " in {_ask}
  25. broadcast "{@Prefix} Evento Quiz Sendo Iniciado!"
  26. broadcast "{@Prefix} &aPergunta: &f%{_ask}%"
  27. broadcast "{@Prefix} Para Responder a pergunta use: /resposta <resposta>"
  28. set {Quiz.Reposta} to arg 2
  29. set {Quiz.Iniciado} to true
  30. stop
  31. # WOW #
  32. command /resposta [<text>]:
  33. trigger:
  34. if {Quiz.Iniciado} is true:
  35. if arg 1 is set:
  36. {Quiz.Reposta} = arg 1:
  37. give a diamond to player
  38. broadcast "{@Prefix} &f%player% &aAcertou a pergunta do quiz!"
  39. set {Quiz.Iniciado} to false
  40. clear {Quiz.Reposta}
  41. stop
  42. else:
  43. send "&cOpps! Você errou :("
  44. else:
  45. send "{@Prefix} &cUse: &f/resposta <resposta>"
  46. stop
  47. else:
  48. send "{Prefix} &cO Evento não está acontecendo no momento."
  49. stop
Advertisement
Add Comment
Please, Sign In to add comment