• 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!

Solved Teleport not pushing player when not having 100cc

Xiber

New Member
Joined
Nov 11, 2014
Messages
2
Reaction score
0
Location
Egypt
Its Work Well But The Problem is:
If I Don't Have 100cc , The teleport no push me 1 step V.
the player still stands on the tp and he block the tp so other players can't go on it.
----------------------------------------------------
pic 1 1.JPG pic 1.JPG pic 2.JPG pic 2 1.JPG
 
Do you have the script that prevents player from teleporting?
What TFS do you use?

Next time, use a proper title.
 
Code:
function onStepIn(cid, item, pos, fromPos)
   if isPlayer(cid) then
     local p = not hasCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE)
     if p then doSendMagicEffect(pos, 10) end
     if doPlayerRemoveMoney(cid, 1000000) then
       doTeleportThing(cid, {x=1210, y=1152, z=6})
       if p then doSendMagicEffect({x=1210, y=1152, z=6}, 10) end
     else
       doTeleportThing(cid, {x=797, y=1086, z=7})
       if p then doSendMagicEffect({x=797, y=1086, z=7}, 10) end
       doPlayerSendCancel(cid, 'You don\'t have enough money to enter. You need 100cc!')
     end
   end
end

Code:
function onAddItem(moveitem, tileitem, pos, cid)
   if not getItemInfo(moveitem.itemid).movable and hasItemProperty(moveitem.uid, CONST_PROP_BLOCKSOLID) then
     doRemoveItem(moveitem.uid)
   else
     doTeleportThing(moveitem.uid, {x=797, y=1086, z=7})
     doSendMagicEffect({x=797, y=1086, z=7}, 14)
   end
end

Sorry Im New Here And I Don't Know How To Post The Script xD
Sorry For My Bad English
Egyptian one ^_^
 
Last edited by a moderator:
There is this position in your map?
Code:
doTeleportThing(cid, {x=797, y=1086, z=7})

If it should just move 1 square back you can change it to this.
Code:
doTeleportThing(cid, frompos)
 
Back
Top