Ir para conteúdo
  • 0

Erro Besta Em Uma Action


lordrai

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

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

 

Link para o comentário
Compartilhar em outros sites

  • 0

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

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...