Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. function loginPlayer123(thePlayer, command, password)
  2. local playerName = getPlayerName ( thePlayer )
  3. local dbregistered = executeSQLQuery("SELECT Username FROM playerinfo WHERE Username=?", playerName)
  4. local dbpassword = executeSQLQuery("SELECT Password FROM playerinfo WHERE Username=?", playerName)
  5.  
  6. if not dbregistered then
  7. outputConsole("No player named " .. playerName .. " is currently registered.", thePlayer)
  8. end
  9. if not dbpassword == password then
  10. outputConsole("Wrong password you cock sucker", thePlayer)
  11. end
  12. end
  13. addCommandHandler("test123", loginPlayer123)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement