-- [ Bike System - BY Nogard ] --
function onUse(cid, item, frompos, item2, topos)
local bike = {lookType = 2284 } --- LookType do player em cima da bike.
local speed = 1000 --- Velocidade que a bike terá.
if getPlayerStorageValue(cid, 32001) == 1 then
setPlayerStorageValue(cid, 32001, 0)
doRemoveCondition(cid, CONDITION_OUTFIT)
doSendAnimatedText(getCreaturePosition(cid), 'ROBO OFF!', 32)
doChangeSpeed(cid, -speed)
doPlayerSendTextMessage(cid, MESSSAGE_STATUS_CONSOLE_ORANGE, 'Voce Desligou o Robo.')
else
doChangeSpeed(cid, speed)
doSetCreatureOutfit(cid, bike, -1)
doSendAnimatedText(getCreaturePosition(cid), 'ROBO ON!', 32)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você Ligou o Robo.')
setPlayerStorageValue(cid, 32001, 1)
end
return true
end