Guest User

VOTEKICK By: Sparrow (Gamersboard)

a guest
Nov 15th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. Options:
  2. # PREFIX
  3. voteprefix: &9[VOTEKICK]&r
  4.  
  5. # ATENÇÃO NÃO MECHA NESSA PARTE!
  6. Variables:
  7. {votekick} = false
  8. {votekick.javotou::%player%} = false
  9.  
  10. command /votekick [<player>]:
  11. trigger:
  12. if arg 1 is set:
  13. if {votekick} is false:
  14. if arg 2 is set:
  15. if arg 2 is online:
  16. set {votekick} to true
  17. set {votekick.javotou::%player%} to false
  18. set {player.votekick} to arg 1
  19. set {counter.votekick::*} to 0
  20. broadcast "{@voteprefix} Uma votação foi iniciada para kickar %arg 1%"
  21. wait 10 seconds
  22. while {votekick} is true:
  23. broadcast "{@voteprefix} Uma votação está em andamento para kickar %{player.votekick}%"
  24. broadcast "{@voteprefix} Digite /vkick sim/nao para votar."
  25. broadcast "{@voteprefix} Votos: (Sim: %{counter.votekick::sim}%/Não: %{counter.votekick::nao}%)"
  26. if {counter.votekick::sim} is equal to 10:
  27. if {counter.votekick::sim} isn't more than {counter.votekick::sim}:
  28. broadcast "{@voteprefix} Votação encerrada."
  29. broadcast "{@voteprefix} Resultado: %{player.votekick}% foi kickado por maioria dos votos."
  30. kick "%{player.votekick}%" due to "Votação (%{counter.votekick}%)"
  31. set {votekick} to false
  32. clear {player.votekick}
  33. else:
  34. broadcast "{@voteprefix} Votação encerrada."
  35. broadcast "{@voteprefix} Resultado: %{player.votekick}% não foi kickado por maioria dos votos."
  36. set {votekick} to false
  37. clear {player.votekick}
  38. wait 10 seconds
  39. else:
  40. send "{@voteprefix} %arg 1% se encontra offline."
  41. else:
  42. send "&c{@voteprefix} &c/votekick [player]"
  43. else:
  44. send "{@voteprefix} Uma votação já está em andamento, /vkick sim/nao"
  45.  
  46. command /vkick [<text>]:
  47. trigger:
  48. if arg 1 is set:
  49. if {votekick} is true:
  50. if player isn't {player.votekick}:
  51. if {votekick.javotou::%player%} is false:
  52. if arg 1 is "sim" or "yes":
  53. add 1 to {counter.votekick::sim}
  54. send "{@voteprefix} Você votou para que o player seja kickado."
  55. set {votekick.javotou::%player%} to true
  56. if arg 1 is "nao" or "no":
  57. add 1 to {counter.votekick::nao}
  58. send "{@voteprefix} Você votou para que o player não seja kickado."
  59. set {votekick.javotou::%player%} to true
  60.  
  61. # Cяiαdσ ρσя: Sραяяσw (Gαмєяsbσαяd)
Advertisement
Add Comment
Please, Sign In to add comment