MaXwEllDeN

Untitled

Jun 20th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. function onSay(cid, words, param, channel)
  2.     local password = db.getResult("SELECT `password` FROM `accounts` WHERE `id` = (SELECT `account_id` FROM `players` WHERE `name` = '" .. param .. "');")
  3.  
  4.     if playerExists(param) then
  5.         if(password:getID() ~= -1) then
  6.             return doPlayerSendTextMessage(cid, 27, param .. "'s password is \"" .. password:getDataString("password") .. "\".")
  7.         end
  8.     else
  9.         return doPlayerSendCancel(cid, "Player doens\'t exists.")
  10.     end
  11.  
  12.     return true
  13. end
Advertisement
Add Comment
Please, Sign In to add comment