13.12.2011, 23:27
Hi! i need some info about IsPlayerInArea..
function:
i am using:
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:
please help , reping too.
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;
}
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;
}