Ecstacy
Mothafuckaaa
Hey,
I'm making a script which will make a user select a tree (action) and will make them get teleported towards it, but my script now doesn't do anything, and any other attempts on making the script didn't work :blink:.
And what do I have to use for crosshair target? cid?
I'm making a script which will make a user select a tree (action) and will make them get teleported towards it, but my script now doesn't do anything, and any other attempts on making the script didn't work :blink:.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local trees = {2700,2701,2702,2703,2705,2707,2708,2711,7024}
if getTileItemById(getThingPos(cid),trees.itemid) then
if exhaustion.get(cid,3100) == false then
doTeleportThing(cid,getThingPos(cid))
exhaustion.set(cid,3100,1*60*1000)
else
doPlayerSendCancel(cid,'You are exhausted.')
end
else
doPlayerSendCancel(cid,'You can only jump in trees.')
end
return true
end
And what do I have to use for crosshair target? cid?