Hey im looking for a script where once you use a lever you gain a mount (The mount will be added to your mount section in outfits).. IF someone could help or make the script it would be much apreciated. thanks
Im willing to pay some $$
function onUse(cid, item, frompos, item2, topos)
if item.uid == 2165 and getPlayerStorageValue(cid, 1234, 1) == true then
doPlayerSendTextMessage(cid,19,"You already have this mount!")
elseif item.uid == 2165 then
doPlayerSendTextMessage(cid,19,"Now you can use a black sheep as a mount!")
doPlayerAddMount(cid, 5)
setPlayerStorageValue(cid,1234,1)
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerMount(cid, 5) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You already have this mount!')
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'Now you can use a black sheep as a mount!')
doPlayerAddMount(cid, 5)
end
return true
end
LUA:function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerMount(cid, 5) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You already have this mount!') else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'Now you can use a black sheep as a mount!') doPlayerAddMount(cid, 5) end return true end