• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Simple Script/ Teleport Problems

-.Savage.-

New Member
Joined
Jul 2, 2008
Messages
32
Reaction score
2
Ok So Heres the problem

I have 2 Teams Black And White
and lets say You Log In you go enter the White Team Teleport and u decide to go war right away and you
go to the black team side and they have alot
so you run north theres a safety protection zone
with a teleport Called The Safety Teleport
this script below is suppose to only let white team in.
but it still lets the black team i dunno why.. so please
can someone give some advice on what is wrong
thanks alot...
i add the action id to the teleport in map editor thats where it teleports you

function onStepIn(cid, item, position, fromPosition)
if getPlayerTown(cid) == 2 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Done Training?, Time For Some War?, Enjoy!")
else
doPlayerSendCancel(cid, "Sorry, This Is Not Your Team.")
end
return TRUE
end
 
When loading your script it says it can't read "onStepIn".
 
Last edited:
Back
Top