Advertisement
Guest User

Untitled

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