13 minutos atrás, Poke X Ice disse:em fuck altere por esse:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == -1 then
velocidade = 100 -- velocidade que vai ganhar
doChangeSpeed(cid, velocidade)
setPlayerStorageValue(cid, 55554, 1)
doRemoveItem(item.uid, 1)
elseif getPlayerStorageValue(cid, 55554) == 1 then
doPlayerSendCancel(cid, 'Voce ja usou esse item!')
end
return true
end
agora vamos para parte do login:
estava assim:
function onLogin(cid)
if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then --alterado v1.8
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
else
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
enddeixe assim:
function onLogin(cid)
if getPlayerStorageValue(cid, 55554) == 1 then
doPlayerSendCancel(cid, "Voce tem um item raro ativado na sua conta")doChangeSpeed(cid, 100)
else
if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then --alterado v1.8
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
else
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
end
teste agora: desligando e ligando servidor e usando item novamente
Como sempre voce fazendo um trabalho chique Brigadão deu certo




info
Grupo: Barão
Registrado: 16/11/16
Posts: 215
Reputação: +52
Gênero: Masculino
em fuck altere por esse:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == -1 then
velocidade = 100 -- velocidade que vai ganhar
doChangeSpeed(cid, velocidade)
setPlayerStorageValue(cid, 55554, 1)
doRemoveItem(item.uid, 1)
elseif getPlayerStorageValue(cid, 55554) == 1 then
doPlayerSendCancel(cid, 'Voce ja usou esse item!')
end
return true
end
agora vamos para parte do login:
estava assim:
function onLogin(cid)
if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then --alterado v1.8
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
else
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
end
deixe assim:
function onLogin(cid)
if getPlayerStorageValue(cid, 55554) == 1 then
doPlayerSendCancel(cid, "Voce tem um item raro ativado na sua conta")
doChangeSpeed(cid, 100)
else
if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then --alterado v1.8
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
else
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
end
teste agora: desligando e ligando servidor e usando item novamente
Editado Janeiro 17 por Poke X Ice