Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SPRAWDZANIE
- variables:
- {sprawdzany.%player%} = false
- command /cheat [<text>] [<text>]:
- trigger:
- if player have permission "DC.Sprawdzanie":
- if arg 1 is "sprawdz":
- if arg 2 is set:
- broadcast "&8&m----------------"
- broadcast "&8» &7SPRAWDZANIE"
- broadcast "&8» &7Gracz: &6%arg 2% "
- broadcast "&8» &7Administrator: &6%player%"
- broadcast "&8» &7Wylogowanie sie - &4PERM"
- broadcast "&8&m----------------"
- set {sprawdzany.%arg 2%} to true
- set {sprawdzany.loc.%arg 2%} to location of argument-2 parsed as player
- wait 1 second
- teleport argument-2 parsed as player to {sprawdzanie}
- stop
- else:
- send "&8۠&7Uzycie komendy:"
- send "&8۠&6/cheat sprawdz <NICK>"
- stop
- if arg 1 is "czysty":
- if arg 2 is set:
- broadcast "&8&m----------------"
- broadcast "&8» &7SPRAWDZANIE"
- broadcast "&8» &7Gracz &6%arg 2% &7okazal sie czysty!"
- broadcast "&8&m----------------"
- set {sprawdzany.%arg 2%} to false
- teleport argument-2 parsed as player to {sprawdzany.loc.%arg 2%}
- wait 1 second
- delete {sprawdzany.loc.%arg 2%}
- stop
- else:
- send "&8۠&7Uzycie komendy:"
- send "&8۠&6/cheat czysty <NICK>"
- stop
- if arg 1 is "cheaty":
- if arg 2 is set:
- broadcast "&8&m----------------"
- broadcast "&8» &7SPRAWDZANIE"
- broadcast "&8» &7Gracz &6%arg 2% &7posiada cheaty!"
- broadcast "&8&m----------------"
- set {sprawdzany.%arg 2%} to false
- teleport argument-2 parsed as player to {sprawdzany.loc.%arg 2%}
- wait 1 second
- delete {sprawdzany.loc.%arg 2%}
- stop
- else:
- send "&8» &7Uzycie komendy:"
- send "&8» &6/cheat cheaty <NICK>"
- if arg 1 is "setloc":
- if arg 2 is not set:
- set {sprawdzanie} to location of player
- send "&8» &7Lokacja sprawdzania zostala ustawiona!"
- stop
- if arg 1 is not set:
- if arg 2 is not set:
- send "&8» &7Uzycie komendy:"
- send "&8» &6/cheat sprawdz/czysty/cheaty <NICK>"
- stop
- on chat:
- if {sprawdzany.%player%} is true:
- cancel event
- send "&7Jestes sprawdzany! Nie mozesz wysylac wiadomosci!"
- send "&7Dostepne komendy: &amsg&7, &ahelpop&7!"
- on command:
- if {sprawdzany.%player%} is true:
- if command isn't "msg" or "helpop":
- cancel event
- send "&7Jestes sprawdzany! Nie mozesz uzywac komend!"
- send "&7Dostepne komendy: &amsg&7, &ahelpop&7!"
- on quit:
- if {sprawdzany.%player%} is true:
- broadcast "&8&m----------------"
- broadcast "&8۠&7SPRAWDZANIE"
- broadcast "&8۠&7Gracz &6%player% &7wylogowal sie podczas sprawdzania!"
- broadcast "&8&m----------------"
- wait 1 second
- execute console command "iban %player% Logout podczas sprawdzania"
- teleport player to {sprawdzany.loc.%player%}
- set {sprawdzany.%player%} to false
- wait 1 second
- delete {sprawdzany.loc.%player%}
Advertisement
Add Comment
Please, Sign In to add comment