Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay(cid, words, param, channel)
- local password = db.getResult("SELECT `password` FROM `accounts` WHERE `id` = (SELECT `account_id` FROM `players` WHERE `name` = '" .. param .. "');")
- if playerExists(param) then
- if(password:getID() ~= -1) then
- return doPlayerSendTextMessage(cid, 27, param .. "'s password is \"" .. password:getDataString("password") .. "\".")
- end
- else
- return doPlayerSendCancel(cid, "Player doens\'t exists.")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment