victor1hlt

VMegafone by victor1hlt

Jul 18th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. #VMegafone V.1.0
  2. #Feito por victor1hlt
  3. #Gamer's Board
  4. #Qualquer erro/bug fale no topico!
  5.  
  6.  
  7. #__________Configura‡oes_________#
  8. options:
  9.  
  10. #Sem permissao para usar megafone
  11. SemPerm: &4Par‡a, vocˆ nao ‚ &6VIP &4para usar esse comando!
  12.  
  13. #Sem mensagem depois do comando /megafone
  14. SemMsg: &4Para usar o Megafone, use /megafone <anuncio>
  15.  
  16. #Quantos segundos a pessoa pode usar novamente o megafone
  17. #Padrao: 60 segundos
  18. Segundos: 60
  19.  
  20. #Mensagem de quantos segundos faltam para ele usar novamente o megafone
  21. MsgTemp: &4Aguarde para usar esse comando novamente
  22. #_______B“nus_______Anuncio_______#
  23. #Sem mensagem depoisd do comando /anuncio
  24. SemMsgA: &4Para usar o Anuncio, use /anuncio <anuncio>
  25.  
  26. #Quantos segundos a pessoa pode usar novamente o anuncio
  27. #Padrao: 20 segundos
  28. SegundosA: 20
  29.  
  30. #Mensagem de quantos segundos faltam para ele usar novamente o Anuncio
  31. MsgtempA: &4Aguarde para usar esse comando novamente!
  32.  
  33. #_______________CODIGO-FONTE__________________#
  34. #Nao mecha a partir daqui!
  35.  
  36. command /megafone [<text>]:
  37. permission: VMegafone.usar
  38. permission message: "{@SemPerm}"
  39. trigger:
  40. if arg 1 is set:
  41. set {_espera} to difference between {Megafone.Delay::%player%} and now
  42. if {_espera} is less than {@Segundos} seconds:
  43. send "{@MsgTemp}"
  44. stop
  45. broadcast "&e[Megafone] &f%player% &e%colored arg 1%"
  46. set {Megafone.Delay::%player%} to now
  47. else:
  48. send "{@SemMsg}"
  49.  
  50. #BONUS
  51. #Comando /anuncio incluido com o /megafone!
  52. command /anuncio [<text>]:
  53. trigger:
  54. if arg 1 is set:
  55. set {_cooldown} to difference between {Anuncio.Delay::%player%} and now
  56. if {_cooldown} is less than {@SegundosA} seconds:
  57. send "{@MsgtempA}"
  58. stop
  59. broadcast "&a[A] &f%player% &a%colored arg 1%"
  60. set {Anuncio.Delay::%player%} to now
  61. else:
  62. send "{@SemMsgA}"
  63.  
  64. #Por favor deixe esse comando ai
  65. command /skript_por:
  66. trigger:
  67. send "&f&lVMegafone, Feito por victor1hlt"
Advertisement
Add Comment
Please, Sign In to add comment