Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {Alertas.%arg 1%::F} to true
- set {Alertas.%arg 1%::C} to true
- set {Alertas.%arg 1%::S} to true
- command /alertar [<player>] [<text>]:
- trigger:
- if player has permission "alertar.p":
- if arg 1 is set:
- if arg 2 is "flood":
- if {Alertas.%arg 1%::F} = 2:
- broadcast " "
- broadcast "&c(!) O Player &f%arg 1% &cfoi alertado Motivo: &fFlood"
- broadcast "&c(!) Alerta: &f3/3 Final Do Alerta"
- broadcast "&c(!) Pelo Staff: &f%player%"
- broadcast " "
- make console execute command "/tempban %arg 1% 10 m Flood"
- add 1 to {Alertas.%arg 1%::F}
- set {Alertas.%arg 1%::F} to 0
- send "&eAlerta ao %arg 1% aplicado!"
- stop
- else:
- add 1 to {Alertas.%arg 1%::F}
- broadcast " "
- broadcast "&c(!) O Player &f%arg 1% &cfoi alertado Motivo: &fFlood"
- broadcast "&c(!) Alerta: &f%{Alertas.%arg 1%::F}%/3"
- broadcast "&c(!) Pelo Staff: &f%player%"
- broadcast " "
- send "&eAlerta ao %arg 1% aplicado!"
- stop
- if arg 1 is "spam":
- if {Alertas.%arg 1%::S} = 2:
- broadcast " "
- broadcast "&c(!) O Player &f%arg 1% &cfoi alertado Motivo: &fSpam"
- broadcast "&c(!) Alerta: &f3/3 Final Do Alerta"
- broadcast "&c(!) Pelo Staff: &f%player%"
- broadcast " "
- make console execute command "/tempban %arg 1% 10 m Spam"
- add 1 to {Alertas.%arg 1%::S}
- set {Alertas.%arg 1%::S} to 0
- send "&eAlerta ao %arg 1% aplicado!"
- stop
- else:
- add 1 to {Alertas.%arg 1%::S}
- broadcast " "
- broadcast "&c(!) O Player &f%arg 1% &cfoi alertado Motivo: &fSpam"
- broadcast "&c(!) Alerta: &f%{Alertas.%arg 1%::S}%/3"
- broadcast "&c(!) Pelo Staff: &f%player%"
- broadcast " "
- send "&eAlerta ao %arg 1% aplicado!"
- stop
- if arg 1 is "capslock":
- if {Alertas.%arg 1%::C} = 2:
- broadcast " "
- broadcast "&c(!) O Player &f%arg 1% &cfoi alertado Motivo: &fCapsLock"
- broadcast "&c(!) Alerta: &f3/3 Final Do Alerta"
- broadcast "&c(!) Pelo Staff: &f%player%"
- broadcast " "
- make console execute command "/tempban %arg 1% 10 m CapsLock"
- add 1 to {Alertas.%arg 1%::C}
- set {Alertas.%arg 1%::C} to 0
- send "&eAlerta ao %arg 1% aplicado!"
- stop
- else:
- add 1 to {Alertas.%arg 1%::C}
- broadcast " "
- broadcast "&c(!) O Player &f%arg 1% &cfoi alertado Motivo: &fCapsLock"
- broadcast "&c(!) Alerta: &f%{Alertas.%arg 1%::C}%/3"
- broadcast "&c(!) Pelo Staff: &f%player%"
- broadcast " "
- send "&eAlerta ao %arg 1% aplicado!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement