Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function registerP(username,password)
- username = tostring(username)
- password = tostring(password)
- if not (username == "") then
- if not (password == "") then
- local letezik_e_felhasznalo = getAccount ( username , password )
- if (letezik_e_felhasznalo == true) then
- local felhasznalo_hozzaadas = addAccount(username,password)
- if (felhasznalo_hozzadas) then
- outputChatBox("#FF4405Sikeresen regisztráltál! Kérlek Jelentkezz be!",source,255,255,255,true)
- else
- outputChatBox("#FF1105Hiba történt, kérlek próbálkozz újra!",source,255,255,255,true)
- end
- else
- outputChatBox("#FF1105Már létezik ilyen felhasználó!",source,255,255,255,true)
- end
- else
- outputChatBox("#FF1105Ne hagyd üresen a jelszó mezőt!",source,255,255,255,true)
- end
- else
- outputChatBox("#FF1105Ne hagyd üresen a felhasználónevet!",source,255,255,255,true)
- end
- end
- addCommandHandler("reg",registerP)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement