Need Some Info
#1

Hi! i need some info about IsPlayerInArea..

function:

pawn Код:
IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    if (x > minx && x < maxx && y > miny && y < maxy) return 1;
    return 0;
}
i am using:

pawn Код:
if(IsPlayerInArea(playerid, -2398.550048, 1890.259765, -2182.550048, 2122.259765))
{
return 1;
}

if(!IsPlayerInArea(playerid, -2398.550048, 1890.259765, -2182.550048, 2122.259765)) //  <------
{
return 0;
}


But the !IsPlayerInArea doesn't work , it still shows the message if i am not anymore in this area. what to do??

or when i use:

pawn Код:
if(IsPlayerInArea(playerid, -2398.550048, 1890.259765, -2182.550048, 2122.259765)) //  <------
{
return 1;
}
else
{
return 0;
}
please help , reping too.
Reply


Messages In This Thread
Need Some Info - by titanak - 13.12.2011, 23:27
Re: Need Some Info - by Rob_Maate - 13.12.2011, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)