Ok so i got this script to do ,!info
and my onLook thingy.
Please Help im useing TFS Crying Damson 8.54
Code:
function getPlayerResets onSay(cid, words, param, channel)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
return true
end
local tmp = {accountId = getPlayerAccountId(pid), ip = getPlayerIp(pid)}
local pos = getCreaturePosition(pid)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Acquired Information: ".. getCreatureName(pid) .."")
doShowTextDialog(cid, 5958, "•Player Information:" ..
"\nName: " .. getCreatureName(pid) ..
"\nLevel: " .. getPlayerLevel(pid) ..
"\nPrestige: "..getPlayerResets(pid)..
"\nMagic Level: "..getPlayerMagLevel(pid)..
"\nVocation: " .. getVocationInfo(getPlayerVocation(pid)).name .. "")
return true
end
and my onLook thingy.
Code:
function getPlayerReset(cid)
local name = getCreatureName(cid)
local Query = db.getResult("SELECT `resets` FROM `players` WHERE `name` = '"..name.."';")
return Query:getDataInt("resets")
end
Please Help im useing TFS Crying Damson 8.54