DUVIDA SANADA...
Obrigado Slicer e Skymagnum
DUVIDA SANADA...
Obrigado Slicer e Skymagnum
tenta isso..
function onUse(cid, item, frompos, item2, topos)
topos.stackpos = 253
local player1 = getThingfromPos(topos)
if not isPlayer(player1.uid) then return doPlayerSendCancel(cid, "You can scout only players.") end
local lol = getPlayerName(player1.uid)
local nick = getPlayerName(player1.uid)
local ki = getPlayerMagLevel(player1.uid)
local lvl = getPlayerLevel(player1.uid)
local mana = getPlayerMana(player1.uid)
local hp = getPlayerHealth(player1.uid)
local maxmana = getPlayerMaxMana(player1.uid)
local maxhp = getPlayerMaxHealth(player1.uid)
local access = getPlayerAccess(player1.uid)
if access <=3 then
doPlayerSendTextMessage(cid, 22, 'Nick: '..nick..'')
doPlayerSendTextMessage(cid, 22, 'Level: '..lvl..'')
doPlayerSendTextMessage(cid, 22, 'Ki Level: '..ki..'')
doPlayerSendTextMessage(cid, 22, 'Hp: '..hp..'/'..maxhp..'')
doPlayerSendTextMessage(cid, 22, 'Ki Points: '..mana..'/'..maxmana..'')
else
return 0
end
return 1
end
"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬
"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein
Cacetada getThingFromPos(pos) pra checar player? nussa mano.
function onUse(cid, item, fromPosition, itemEx, toPosition) if not isPlayer(itemEx.uid) then return doPlayerSendCancel(cid, "You can use only in players.") end if getPlayerAccess(cid) < getPlayerAccess(itemEx.uid) then return doPlayerSendCancel(cid, "You can use only in players of group id lower of you.") end doPlayerSendTextMessage(cid, 27, "Nick: " .. getCreatureName(itemEx.uid) .. "/nLevel: " .. getPlayerLevel(itemEx.uid) .. "/nKi Level: " .. getPlayerMagLevel(itemEx.uid) .. "/nHp/Max Hp: " .. getCreatureHealth(itemEx.uid) .. " / " .. getCreatureMaxHealth(itemEx.uid) .. "/nMana/Max Mana: " .. getCreatureMana(itemEx.uid) .. " / " .. getPlayerMaxMana(itemEx.uid) .. ".") return true end
clica na flechinha verde para cima no canto >>>>\/\/ do Sky xD o dele fico bem melhor ^^
"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬
"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein
Tópico movido para a seção de dúvidas e pedidos resolvidos.
Att,
Kissy