03.04.2017, 01:42
Achei essas funзхes em umas gm ae
PHP код:
static stock IsPlayerInLosSantos(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 44.60 && y >= -2892.90 && x <= 2997.00 && y <= -768.00) return 1;
else return 0;
}
static stock IsPlayerInLasVenturas(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 869.40 && y >= 596.30 && x <= 2997.00 && y <= 2993.80) return 1;
else return 0;
}
static stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return true;
return 0;
}