Posts: 1,208
Threads: 36
Joined: Apr 2015
PHP код:
stock IsPointInArea(Float:x,Float:y,Float:z,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz){
if((x >= minx && x <= maxx) && (y >= miny && y <= maxy) && (z >= minz && z <= maxz)) return true;
return false;
}
stock IsPointInAreaEx(Float:x,Float:y,Float:z,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz,vw1 = -1,int1 = -1,vw2 = -1,int2 = -1){
if((x >= minx && x <= maxx) && (y >= miny && y <= maxy) && (z >= minz && z <= maxz) && (vw1 == vw2) && (int1 == int2)) return true;
return false;
}
Do you want to check area A is in area B?
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Uh, for example I have created area A, and if player creates new area B in area A then he will get returned.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Can't you just use IsPlayerInAnyDynamicArea or IsPointInAnyDynamicArea?