Help Please
#1

Hello Everyone.
I want to create a function which checks that if a player is in a specified area of south, east, west and north boundaries with specified land id( which that player owns)

For Example i tried here:

PHP код:
stock IsPlayerAtLand(playerid, landid)
{
    new 
Float: landMinX == west, Float: landMiny == south;
    if 
GetPlayerPos(playerid, west, south);
    return 
true;
} 
I am sure its wrong can anyone help me with it?
Reply
#2

provide more information because this function is useless ~.~

you want to check the coordinates, or built areas ?
Reply
#3

built areas NOT IsPlayerInRangeOfPoint cuz when someone wants to edit its land he needs to in its boundaries.
Reply
#4

PHP код:
IsPlayerInDynamicArea(playerid, areaid, recheck = 0);

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;
} 
Reply
#5

and what should i add in my command "IsPlayerInDynamicArea" OR "IsPointInArea"
Reply


Forum Jump:


Users browsing this thread: