Advertisement
zGhol

zGJulgamento » Skript Para Penalizar Com Votação

Dec 21st, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 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. after 1 minutes:
  23. set {Penalizado.%arg 1%} to false
  24. if difference between {Pena.Sim} and {Pena.Não} is less than 10:
  25. broadcast " "
  26. broadcast "&6&lT&e&lribunal &6&l>> &O julgamento acabou!"
  27. broadcast "&6&lT&e&lribunal &6&l>> &fE o player %arg 1% sera penalizado, de acordo com os staffs!"
  28. broadcast " "
  29. set {Pena.Sim} to 0
  30. set {Pena.Não} to 0
  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. stop
  40. else:
  41. send "&6&lT&e&lribunal &6&l>> &fUse /penalizar NICK MOTIVO"
  42. else:
  43. send "&6&lT&e&lribunal &6&l>> &fUse /penalizar NICK MOTIVO"
  44. stop
  45.  
  46. command /setjulgamento:
  47. permission: Julgamento.admin
  48. trigger:
  49. set {Tribunal.Penalizar} to location of player
  50. send "&6&lT&e&lribunal &6&l>> &fLocal setado"
  51. stop
  52.  
  53. command /pena [<player>] [<text>]:
  54. trigger:
  55. if {Penalizar.%arg 1%} is true:
  56. if arg 1 is set:
  57. if arg 2 is "sim":
  58. add 1 to {Pena.Sim}
  59. send "&6&lT&e&lribunal &6&l>> &fO seu voto foi adicionado!"
  60. stop
  61. if arg 2 is "não":
  62. add 1 to {Pena.Não}
  63. send "&6&lT&e&lribunal &6&l>> &fO seu voto foi adicionado!"
  64. stop
  65. if arg 2 is not set:
  66. send "&6&lT&e&lribunal &6&l>> &fUse /pena NICK SIM OU NÃO"
  67. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement