#------------------------------# options: znaczek1: nazwa: discord: przyznanie: 5 logout: 10 cheaty: 14 #------------------------------# command /pcheck [] []: aliases:: check trigger: if player has permission: ppvp.sprawdz if arg-1 is not set: send "&8[+]&8&m-----------------&8[ &b&lPPVPCHECK &8]&8&m-----------------&8[+]" send "&8» &b/pcheck spawn &8- &7Teleportuje w miejsce sprawdzania" send "&8» &b/pcheck setspawn &8- &7Ustawia miejsce sprawdzania" send "&8» &b/sprawdz &8- &7Sprawdza gracza" send "&8» &b/pcheck status &8- &7Status gracza" send "&8» &b/pcheck czysty &8- &7Gracz jest czysty" send "&8» &b/pcheck cheater &8- &7Gracz jest cheaterem" send "&8» &b/pcheck przyznanie &8- &7Gracz przyznal sie do cheatow" send "&8[+]&8&m-----------------&8[ &b&lPPVPCHECK &8]&8&m-----------------&8[+]" if arg 1 isn't "spawn" or "setspawn" or "sprawdz" or "czysty" or "przyznanie" or "cheaty" or "status": send "&8[+]&8&m-----------------&8[ &b&lNCHECK &8]&8&m-----------------&8[+]" send "&8» &b/pcheck spawn &8- &7Teleportuje w miejsce sprawdzania" send "&8» &b/pcheck setspawn &8- &7Ustawia miejsce sprawdzania" send "&8» &b/pcheck sprawdz &8- &7Sprawdza gracza" send "&8» &b/pcheck status &8- &7Status gracza" send "&8» &b/pcheck czysty &8- &7Gracz jest czysty" send "&8» &b/pcheck cheater &8- &7Gracz jest cheaterem" send "&8» &b/pcheck przyznanie &8- &7Gracz przyznal sie do cheatow" send "&8[+]&8&m-----------------&8[ &b&lNCHECK &8]&8&m-----------------&8[+]" if arg-1 is "setspawn": set {pcheck::spawn} to location of player send "&8» &bUstawiono spawna!" if arg-1 is "spawn": teleport player to {check::spawn} send "&8b &aPrzeteleportowano na spawna!" if arg-1 is "sprawdz": if arg-2 is set: set {pcheck::%arg-2%} to true set {pcheck::status::%arg-2%} to "TAK" set {pcheck::loc::%arg-2%} to location of arg 2 set {pcheck::loc::%player%} to location of player teleport player to {pcheck::spawn} teleport arg-2 to {pcheck::spawn} add 1 to {pcheck.sprawdzenie.%arg-2%} send "&8» &bPrzeteleportowano gracza do sprawdzania!" broadcast "&8[+]&8&m------------&8[ &b&lSPRAWDZANIE &8]&8&m------------&8[+]" broadcast "&8» &7Admin: &b%player%" broadcast "&8» &7Sprawdzany gracz: &c%arg 2%" broadcast "&8» &cLogout = BAN NA {@logout} DNI!" broadcast "&8» &bPrzyznanie = BAN NA {@przyznanie} DNI!" broadcast "&8[+]&8&m------------&8[ &b&lSPRAWDZANIE &8]&8&m------------&8[+]" if arg-2 is not set: send "&8» &bPoprawne uzycie: &c/pcheck sprawdz " if arg-1 is "czysty": if arg-2 is set: if {pcheck::%arg-2%} is true: set {pcheck::%arg-2%} to false set {pcheck::status::%arg-2%} to "NIE" send "&8» &7Gracz &b%arg-2% &7jest czysty!" teleport player to {pcheck::loc::%player%} teleport arg-2 to {pcheck::loc::%arg-2%} add 1 to {pcheck.czysty.%arg-2%} else: send "&8» &7Gracz &b%arg-2% &7nie jest sprawdzany!" if arg-2 is not set: send "&8» &bPoprawne uzycie: &c/pcheck czysty " if arg-1 is "przyznanie": if arg-2 is set: if {pcheck::%arg-2%} is true: set {pcheck::%arg-2%} to false set {pcheck::status::%arg-2%} to "NIE" send "&8» &7Gracz &b%arg-2% &7przyznal sie do uzywania cheatow!" execute console command "tempban %arg 2% {@przyznanie} d Cheaty" teleport player to {pcheck::loc::%player%} teleport arg-2 to {pcheck::loc::%arg-2%} add 1 to {pcheck.przyznanie.%arg-2%} else: send "&8» &7Gracz &b%arg-2% &7nie jest sprawdzany!" if arg-2 is not set: send "&8» &bPoprawne uzycie: &c/check przyznanie " if arg-1 is "cheater": if arg-2 is set: if {pcheck::%arg-2%} is true: set {pcheck::%arg-2%} to false set {pcheck::status::%arg-2%} to "NIE" send "&8» &7Gracz &b%arg-2% &7posiada cheaty!" execute console command "tempban %arg 2% {@cheaty} d Cheaty" teleport player to {pcheck::loc::%player%} teleport arg-2 to {pcheck::loc::%arg-2%} add 1 to {pcheck.cheater.%arg-2%} else: send "&8» &7Gracz &a%arg-2% &7nie jest sprawdzany!" if arg-2 is not set: send "&8» &bPoprawne uzycie: &c/pcheck cheater " if arg-1 is "status": if arg-2 is set: send "&8[+]&8&m-----------------&8[ &b&lPPVPCHECK &8]&8&m-----------------&8[+]" send "&8» &bGracz: &7%arg-2%" send "&8» &bPodczas sprawdzania: &7%{pcheck::status::%arg-2%}%" send "&8» &bLiczba sprawdzen: &7%{pcheck.sprawdzenie.%arg-2%}%" send "&8» &bCzysty: &7%{pcheck.czysty.%arg-2%}% razy" send "&8» &bPrzyznal sie: &7%{pcheck.przyznanie.%arg-2%}% razy" send "&8» &bCheatowal: &7%{pcheck.cheater.%arg-2%}% razy" send "&8[+]&8&m-----------------&8[ &a&lNCHECK &8]&8&m-----------------&8[+]" if arg-2 is not set: send "&8» &cPoprawne uzycie: &c/pcheck status " else: send "&8» &cNiemasz permisji!" on quit: if {pcheck::%player%} is true: teleport player to {pcheck::loc::%player%} send "&8» &7Gracz &c%player% &7wylogowal sie podczas sprawdzania!" execute console command "tempban %player% {@logout} d Wylogowanie sie podczas sprawdzania" set {pcheck::%player%} to false set {pcheck::status::%player%} to "NIE" on first join: set {pcheck::status::%player%} to "NIE" set {pcheck.sprawdzenie.%player%} to 0 set {pcheck.czysty.%player%} to 0 set {pcheck.przyznanie.%player%} to 0 set {pcheck.cheater.%player%} to 0