-.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
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