SC
pedido

Potion Healando o Chão

By ScythePhantom, 15 de jun. de 2013 in Scripts

4
742
ScythePhantomS
15 de junho de 2013 às 09:22

#Edit, resolvido.

Edited Dezembro 4 by ScythePhantom

SlicerS
15 de junho de 2013 às 09:37

altera essa parte...

function onUse(cid, item, position, itemEx)
local Potions = Pots[item.itemid]
Potions.uid = item.uid
Potions:heal(itemEx.uid)
return true
end

 

para...

function onUse(cid, item, position, itemEx)
if not isPlayer(itemEx.uid) then
doPlayerSendCancel(cid, "Use only in players")
return true
end
local Potions = Pots[item.itemid]
Potions.uid = item.uid
Potions:heal(itemEx.uid)
return true
end

ScythePhantomS
15 de junho de 2013 às 09:53

Mais uma vez obrigado, e REP+.

EnselfE
15 de junho de 2013 às 10:10

Pedido Atendido / Reportado para moverem.