Advertisement
Guest User

Untitled

a guest
May 15th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. function registerP(username,password)
  2.     if not (username == nil) then
  3.         if not (password == nil) then
  4.             local letezik_e_felhasznalo = getAccount ( username , password )
  5.             if (letezik_e_felhasznalo == true) then
  6.                 local felhasznalo_hozzaadas = addAccount(username,password)
  7.                 if (felhasznalo_hozzadas) then
  8.                     outputChatBox("#FF4405Sikeresen regisztráltál! Kérlek Jelentkezz be!",source,255,255,255,true)
  9.                 else
  10.                     outputChatBox("#FF1105Hiba történt, kérlek próbálkozz újra!",source,255,255,255,true)
  11.                 end
  12.             else
  13.                 outputChatBox("#FF1105Már létezik ilyen felhasználó!",source,255,255,255,true)
  14.             end
  15.         else
  16.             outputChatBox("#FF1105Ne hagyd üresen a jelszó mezőt!",source,255,255,255,true)
  17.         end
  18.     else
  19.         outputChatBox("#FF1105Ne hagyd üresen a felhasználónevet!",source,255,255,255,true)
  20.     end
  21. end
  22. addCommandHandler("reg",registerP)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement