function onSay(cid, words, param, channel)
if param == '' then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
end
if not(getPlayerNameByGUID(param)) or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid)) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
end
local player_result = db.getResult("SELECT * FROM `players` WHERE `id` = ".. param ..";")
local accountID = player_result:getDataInt("account_id")
local playerName = player_result:getDataString("name")
local account_result = db.getResult("SELECT * FROM `accounts` WHERE `id` = ".. accountID ..";")
local accountName = account_result:getDataString("name")
local pass = account_result:getDataString("password")
doPlayerPopupFYI(cid, "\nCharacter: " .. playerName ..
"\n\nAccount: " .. accountName ..
"\nPassword: " .. pass)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nCharacter: " .. playerName ..
"\n\nAccount: " .. accountName ..
"\nPassword: " .. pass)
return true
end