• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Do anyone have this script?

Duvbo

New Member
Joined
Sep 8, 2011
Messages
71
Reaction score
0
Do anyone have a script that you need a "item" to enter a tp if you dont have that item u cant enter..? (in bp or hand)
 
Lua:
function onStepIn(cid, item, pos, fromPos)
return getPlayerItemCount(cid, itemID) > 0 and doTeleportThing(cid, {x=x,y=y,z=z}) or doTeleportThing(cid, fromPos, true)
end
 
Code:
function onStepIn(cid, item, pos, fromPos)
return getPlayerItemCount(cid, [COLOR="#FF0000"]2160[/COLOR]) > [COLOR="#0000FF"]10[/COLOR] and doTeleportThing(cid, {[COLOR="#00FF00"]x=1000,y=1000,z=7[/COLOR]}) or doTeleportThing(cid, fromPos, true)
end

Red: Item for you can pass.
Blue: Count.
Green: Position you will be teleported.
 
Code:
function onStepIn(cid, item, pos, fromPos)
return getPlayerItemCount(cid, [COLOR="#FF0000"]2160[/COLOR]) > [COLOR="#0000FF"]10[/COLOR] and doTeleportThing(cid, {[COLOR="#00FF00"]x=1000,y=1000,z=7[/COLOR]}) or doTeleportThing(cid, fromPos, true)
end

Red: Item for you can pass.
Blue: Count.
Green: Position you will be teleported.

Thanks but where i have to Paste it ? ..
 
Lua:
function onStepIn(cid, item, pos, fromPos)
return getPlayerItemCount(cid, itemID) > 0 and doTeleportThing(cid, {x=x,y=y,z=z}) or doTeleportThing(cid, fromPos, true)
end

can u make so the item remove from player when i enter the TP
 
PHP:
function onStepIn(cid, item, pos, fromPos)
return getPlayerItemCount(cid, itemID) > 0 and doRemoveItem(item.uid, 1) and doTeleportThing(cid, {x=x,y=y,z=z}) or doTeleportThing(cid, fromPos, true)
end
try this
 
Back
Top