# tLogowanie # # Author: # # » Torwik # # Version: # # » v0.1 # #--------------------# variables: {login::%player%} = false {register::%player%} = false {login.move} = false {login.cmds} = false {login.chat} = false {login.msg} = true on quit: set {login::%player%} to false on join: clear {kod::%player%} set {login::%player%} to false if {register::%player%} is false: set {_1} to "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "i" or "I" or "j" or "J" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_2} to "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "i" or "I" or "j" or "J" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_3} to "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "i" or "I" or "j" or "J" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_4} to "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "i" or "I" or "j" or "J" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_5} to "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "i" or "I" or "j" or "J" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {kod::%player%} to "%{_1}%%{_2}%%{_3}%%{_4}%%{_5}%" on chat: if {login.chat} is false: cancel event on command: if command is not "l" or "login" or "reg" or "register": if {login.cmds} is false: cancel event every 1 tick: if {login.move} is false: loop all players: if {login::%loop-player%} is false: teleport loop-player to {logowanie} every 5 second: if {login.msg} is true: loop all players: if {login::%loop-player%} is false: send "&8&l» &7Zaloguj sie! &8[ &f/login &8[&ahaslo&8] &8]" to loop-player if {register::%loop-player%} is false: send "&8&l» &7Zarejestruj sie! &8[ &f/register &8[&akod&8] &8[&ahaslo&8] &8[&ahaslo&8] &8]" to loop-player command /logowanie-set []: trigger: if player has permissions "ustawlogowanie.cmd": set {logowanie} to location of the player command /register [] [] []: trigger: if {register::%player%} is false: if arg 1 is set: if arg 2 is set: if arg 3 is set: if arg 1 is "%{kod::%player%}%": if arg 2 is "%arg 3%": if arg 3 is "%arg 2%": set {haslo::%player%} to "%arg 2%" set {register::%player%} to true set {login::%player%} to false send "&8&l» &aZostales zarejestrowany pomyslnie! &8[ &fTwoje haslo: &a%arg 2% &8]" send "&8&l» &7Teraz sie zaloguj! &8[ &f/login &8[ &ahaslo &8] &8]" stop if arg 3 is not "%arg 2%": send "&8&l» &cHasla sie nie zgadzaja!" stop if arg 2 is not "%arg 3%": send "&8&l» &cHasla sie nie zgadzaja!" stop if arg 1 is not "%{kod::%player%}%": kick player due to "&8&l» &cZly kod captcha!" clear {kod::%player%} stop if arg 3 is not set: send "&8&l» &cMusisz potwierdzic haslo! &8[ &f/register &8[ &akod &8] &8[ &ahaslo &8] &8[ &ahaslo &8] &8]" stop if arg 2 is not set: send "&8&l» &7Poprawne uzycie&8: &f/register &8[ &akod &8] &8[ &ahaslo &8] &8[ &ahaslo &8]" stop if arg 1 is not set: send "&8&l» &7Poprawne uzycie&8: &f/register &8[ &akod &8] &8[ &ahaslo &8] &8[ &ahaslo &8]" stop if {register::%player%} is true: send "&8&l» &cJestes juz zarejestrowany!" stop command /login []: trigger: if {register::%player%} is true: if {login::%player%} is false: if arg 1 is set: if arg 1 is "%{haslo::%player%}%": set {login::%player%} to true send "&8&l» &aZostales zalogowany pomyslnie!" stop if arg 1 is not "%{haslo::%player%}%": kick player due to "&8&l» &cZle haslo!" stop if arg 1 is not set: send "&8&l» &7Poprawne uzycie&8: &f/login &8[ &ahaslo &8]" stop if {login::%player%} is true: send "&8&l» &cJestes juz zalogowany!" stop if {register::%player%} is false: send "&8&l» &cNajpierw sie zarejestruj!" stop