Advertisement
Guest User

Untitled

a guest
May 15th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. function registerP(username,password)
  2.  
  3. username = tostring(username)
  4. password = tostring(password)
  5.  
  6. if not (username == "") then
  7.  
  8. if not (password == "") then
  9.  
  10. local letezik_e_felhasznalo = getAccount ( username , password )
  11.  
  12. if (letezik_e_felhasznalo == true) then
  13.  
  14. local felhasznalo_hozzaadas = addAccount(username,password)
  15.  
  16. if (felhasznalo_hozzadas) then
  17.  
  18. outputChatBox("#FF4405Sikeresen regisztráltál! Kérlek Jelentkezz be!",source,255,255,255,true)
  19.  
  20. else
  21.  
  22. outputChatBox("#FF1105Hiba történt, kérlek próbálkozz újra!",source,255,255,255,true)
  23. end
  24.  
  25. else
  26.  
  27. outputChatBox("#FF1105Már létezik ilyen felhasználó!",source,255,255,255,true)
  28.  
  29. end
  30.  
  31. else
  32.  
  33. outputChatBox("#FF1105Ne hagyd üresen a jelszó mezőt!",source,255,255,255,true)
  34.  
  35. end
  36.  
  37. else
  38.  
  39. outputChatBox("#FF1105Ne hagyd üresen a felhasználónevet!",source,255,255,255,true)
  40.  
  41. end
  42.  
  43. end
  44.  
  45. addCommandHandler("reg",registerP)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement