Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addCommandHandler("test123", loginPlayer123,
- function loginPlayer123(thePlayer, command, password)
- local playerName = getPlayerName ( thePlayer )
- local dbregistered = executeSQLQuery("SELECT Username FROM playerinfo WHERE Username=?", playerName)
- local dbpassword = executeSQLQuery("SELECT Password FROM playerinfo WHERE Username=?", playerName)
- if not dbregistered then
- outputConsole("No player named " .. playerName .. " is currently registered.", thePlayer)
- end
- if not dbpassword == password then
- outputConsole("Wrong password you cock sucker")
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement