zGhol

zGJulgamento » Skript Para Penalizar Com Votação

Dec 21st, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. # ────────────────────────────────────── #
  2. # ● zGJulgamento ● #
  3. # - Skript Para Penalizar Com Votação #
  4. # By » zGнσl™ #
  5. # #
  6. # ────────────────────────────────────── #
  7.  
  8. command /penalizar [<player>] [<text>]:
  9. permission: Julgamento.admin
  10. trigger:
  11. if arg 1 is set:
  12. if arg 2 is set:
  13. teleport arg 1 to {Tribunal.Penalizar}
  14. send "&6&lT&e&lribunal &6&l>> &fVocê está sendo penalizado por %player% votação iniciada!" to arg 1
  15. send "&6&lT&e&lribunal &6&l>> &fVocê está penalizando %arg 1%" to player
  16. set {Penalizar.%arg 1%} to true
  17. broadcast " "
  18. broadcast "&6&lT&e&lribunal &6&l>> &fO Jogador %arg 1% está sendo julgado!"
  19. broadcast "&6&lT&e&lribunal &6&l>> &fMotivo: %arg 2%"
  20. broadcast "&6&lT&e&lribunal &6&l>> &fUse /pena %arg 1% sim ou não"
  21. broadcast " "
  22. wait 1 minutes
  23. if difference between {Pena.Sim} and {Pena.Não} is less than 10:
  24. broadcast " "
  25. broadcast "&6&lT&e&lribunal &6&l>> &O julgamento acabou!"
  26. broadcast "&6&lT&e&lribunal &6&l>> &fE o player %arg 1% sera penalizado, de acordo com os staffs!"
  27. broadcast " "
  28. set {Pena.Sim} to 0
  29. set {Pena.Não} to 0
  30. set {Penalizado.%arg 1%} to false
  31. stop
  32. else:
  33. broadcast " "
  34. broadcast "&6&lT&e&lribunal &6&l>> &fO julgamento acabou!"
  35. broadcast "&6&lT&e&lribunal &6&l>> &fE o player %arg 1% não sera penalizado!"
  36. broadcast " "
  37. set {Pena.Não} to 0
  38. set {Pena.Sim} to 0
  39. set {Penalizado.%arg 1%} to false
  40. stop
  41. else:
  42. send "&6&lT&e&lribunal &6&l>> &fUse /penalizar NICK MOTIVO"
  43. else:
  44. send "&6&lT&e&lribunal &6&l>> &fUse /penalizar NICK MOTIVO"
  45. stop
  46.  
  47. command /setjulgamento:
  48. permission: Julgamento.admin
  49. trigger:
  50. set {Tribunal.Penalizar} to location of player
  51. send "&6&lT&e&lribunal &6&l>> &fLocal setado"
  52. stop
  53.  
  54. command /pena [<player>] [<text>]:
  55. trigger:
  56. if {Penalizar.%arg 1%} is true:
  57. if arg 1 is set:
  58. if arg 2 is "sim":
  59. add 1 to {Pena.Sim}
  60. send "&6&lT&e&lribunal &6&l>> &fO seu voto foi adicionado!"
  61. stop
  62. if arg 2 is "não":
  63. add 1 to {Pena.Não}
  64. send "&6&lT&e&lribunal &6&l>> &fO seu voto foi adicionado!"
  65. stop
  66. if arg 2 is not set:
  67. send "&6&lT&e&lribunal &6&l>> &fUse /pena NICK SIM OU NÃO"
  68. stop
Advertisement
Add Comment
Please, Sign In to add comment