function onUse(cid, item, fromition, itemEx, toPosition)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nMana atual: " .. getCreatureHealth(cid) .. "\nMana máxima: " .. getCreatureMaxHealth(cid) .. "")
return true
end
if getPlayerSex(cid) == 51 or getPlayerSex(cid) == 52 then
local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O ninja com o nome " .. param .. " não esta online ou não existe.")
return true
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nmana de [ " .. getCreatureName(pid) .. " ] atual: " .. getCreatureHealth(pid) .. "\nmana de [ " .. getCreatureName(pid) .. " ] máxima: " .. getCreatureMaxHealth(pid) .. "")
return true
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Apenas ninjas dos clans 51 e 52 podem utilizar este comando para visualizar informações de outros jogadores.")
return true
end
end