• 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 check if some1 is outside area

Strack

Member
Joined
May 15, 2009
Messages
199
Reaction score
14
how to check if some1 is inside the area between x,y,z and x,y,z coordenates?
 
Last edited:
Lua:
local areaPosition =
{
        {x=32250, y=31103, z=7, stackpos = 255},
        {x=32305, y=31159, z=7, stackpos = 255}
}

                local players = getPlayersOnline()
                        for _, pid in ipairs(players) do
							if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) == TRUE then
								doPlayerSendTextMessage(cid,22,"Wait until " .. getCreatureName(pid) .. " finish the quest.")
                           return TRUE
							end
						end
rep+
 
Back
Top