testa ae..
é só configurar !
function onUse(cid, item, frompos, itemEx, topos)
local bike = {lookType = 85} --- LookType do player em cima da bike. homem
local bike1 = {lookType = 85} --- LookType do player em cima da bike. mulher
local speed = 474 --- 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)
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)
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)
end
end
return true
end




info
Grupo: Campones
Registrado: 25/02/14
Posts: 5
Reputação: 0
Galera,,me ajudem com essa script do Nogard:
Tipo assim eu quero adicionar a looktype de homem e mulher mais so tem uma looktype alguem ajuda?
Ai vai a script:
-- [ Bike System - BY Nogard ] --
function onUse(cid, item, frompos, itemEx, topos)
local bike = {lookType = 85} --- LookType do player em cima da bike.
local speed = 474 --- 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)
else
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)
end
return true
end