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(playeridlandid)
{
    new 
FloatlandMinX == westFloatlandMiny == south;
    if 
GetPlayerPos(playeridwestsouth);
    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(playeridareaidrecheck 0);

stock IsPointInArea(Float:x,Float:y,Float:z,Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz){
    if((
>= minx && <= maxx) && (>= miny && <= maxy) && (>= minz && <= 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: 1 Guest(s)