Guest User

Untitled

a guest
Sep 5th, 2016
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. command /crime [<text>]:
  2. permission: crime.usar
  3. trigger:
  4. if arg 1 is "iniciar":
  5. if {evento.on} is "true":
  6. send "&dEvento ja começou"
  7. else:
  8. set {evento.on} to "true"
  9. broadcast "&0[&fServer&0] &fIsto é uma transmissão official do servidor,a noite de crime começou, qualquer crime é permitido no servidor durante 1 hora (in-game)"
  10. broadcast "&fCrimes como Xingar player, xingar servidor também é permitido"
  11. broadcast "&0[&fServer&0] Ao mata um player você ganhará 10 diamantes"
  12. execute console command "time set 18000"
  13. wait 1 hours
  14. broadcast "&0[&fServer&0]&fA noite de crime acabou, nenhum crime é permitido agora"
  15. set {evento.on} to "false"
  16. if arg 1 is "cancelar":
  17. set {evento.on} to "false"
  18. broadcast "&c ---- > Evento Noite de Crime cancelado"
  19. if arg 1 is "items":
  20. if {evento.on} is "true":
  21. give 1 Chainmail Helmet named "&c - > Evento CRIME" to player
  22. give 1 Diamond Chestplate named "&c - > Evento CRIME" to player
  23. give 1 Chainmail Leggings named "&c - > Evento CRIME" to player
  24. give 1 Chainmail Boots named "&c - > Evento CRIME" to player
  25. give 1 Diamond Sword named "&c - > Evento CRIME" to player
  26. else:
  27. send "&c --- > O Evento não esta acontecendo (não é possivel pegar items)"
  28. stop
  29.  
  30.  
  31.  
  32. on death:
  33. if {evento.on} is "true":
  34. victim is a player
  35. attacker is a player
  36. give 10 diamond to attacker
  37. else:
  38. if {evento.on} is "false":
  39. stop
Advertisement
Add Comment
Please, Sign In to add comment