Olá, Quero que o Player NAO use a Bike com o POKE ATIVO. Quando o poke usa seus moves, a bike buga e o char trava ou fica muito lento, então sou obrigado a relogar toda vez...
MEUS SCRIPT:
function onUse(cid, item, frompos, itemEx, topos)
local bike = {lookType = 1394} --- LookType do player em cima da bike. homem local bike1 = {lookType = 1393} --- LookType do player em cima da bike. mulher local speed = 999 --- Velocidade que a bike terá.
if getPlayerStorageValue(cid, 32001) == 1 then doRemoveCondition(cid, CONDITION_OUTFIT) doChangeSpeed(cid, -speed) doSendAnimatedText(getCreaturePosition(cid), 'Bike OFF!', 35) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Você desmontou da bike.') setPlayerStorageValue(cid, 32001, 0) if getPlayerStorageValue(cid, 32001) >= 1 or getPlayerStorageValue(cid, 18000) >= 1 or getPlayerStorageValue(cid, 19000) >= 1 then return doPlayerSendCancel(cid, "You can't ride a bike using habilities!") end
else
if getPlayerSex(cid) == 1 then -- homem doChangeSpeed(cid, speed) doSetCreatureOutfit(cid, bike, -1) doSendAnimatedText(getCreaturePosition(cid), 'Bike ON!', 32) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você montou na bike.') setPlayerStorageValue(cid, 32001, 1) if getPlayerStorageValue(cid, 32001) >= 1 or getPlayerStorageValue(cid, 18000) >= 1 or getPlayerStorageValue(cid, 19000) >= 1 then return doPlayerSendCancel(cid, "You can't ride a bike using habilities!") end elseif getPlayerSex(cid) == 0 then -- homem doChangeSpeed(cid, speed) doSetCreatureOutfit(cid, bike1, -1) doSendAnimatedText(getCreaturePosition(cid), 'Bike ON!', 32) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você montou na bike.') setPlayerStorageValue(cid, 32001, 1) if getPlayerStorageValue(cid, 32001) >= 1 or getPlayerStorageValue(cid, 18000) >= 1 or getPlayerStorageValue(cid, 19000) >= 1 then return doPlayerSendCancel(cid, "You can't ride a bike using habilities!") end end
Pergunta
arkanctrus 0
Olá, Quero que o Player NAO use a Bike com o POKE ATIVO. Quando o poke usa seus moves, a bike buga e o char trava ou fica muito lento, então sou obrigado a relogar toda vez...
MEUS SCRIPT:
function onUse(cid, item, frompos, itemEx, topos)
local bike = {lookType = 1394} --- LookType do player em cima da bike. homem
local bike1 = {lookType = 1393} --- LookType do player em cima da bike. mulher
local speed = 999 --- Velocidade que a bike terá.
if getPlayerStorageValue(cid, 32001) == 1 then
doRemoveCondition(cid, CONDITION_OUTFIT)
doChangeSpeed(cid, -speed)
doSendAnimatedText(getCreaturePosition(cid), 'Bike OFF!', 35)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Você desmontou da bike.')
setPlayerStorageValue(cid, 32001, 0)
if getPlayerStorageValue(cid, 32001) >= 1 or getPlayerStorageValue(cid, 18000) >= 1 or getPlayerStorageValue(cid, 19000) >= 1 then
return doPlayerSendCancel(cid, "You can't ride a bike using habilities!") end
else
if getPlayerSex(cid) == 1 then -- homem
doChangeSpeed(cid, speed)
doSetCreatureOutfit(cid, bike, -1)
doSendAnimatedText(getCreaturePosition(cid), 'Bike ON!', 32)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você montou na bike.')
setPlayerStorageValue(cid, 32001, 1)
if getPlayerStorageValue(cid, 32001) >= 1 or getPlayerStorageValue(cid, 18000) >= 1 or getPlayerStorageValue(cid, 19000) >= 1 then
return doPlayerSendCancel(cid, "You can't ride a bike using habilities!") end
elseif getPlayerSex(cid) == 0 then -- homem
doChangeSpeed(cid, speed)
doSetCreatureOutfit(cid, bike1, -1)
doSendAnimatedText(getCreaturePosition(cid), 'Bike ON!', 32)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você montou na bike.')
setPlayerStorageValue(cid, 32001, 1)
if getPlayerStorageValue(cid, 32001) >= 1 or getPlayerStorageValue(cid, 18000) >= 1 or getPlayerStorageValue(cid, 19000) >= 1 then
return doPlayerSendCancel(cid, "You can't ride a bike using habilities!") end
end
end
return true
end
Link para o comentário
Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados