Код:
stock IsPlayerInRC(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if((x >= 1318.297851 && y >= -1843.044799 && x <= 1525.527343 && y <= -1595.913330) ||//Pref ext
IsPlayerInRangeOfPoint(playerid, 120.0, 1352.1953,-1748.6051,13.3667) || //24/7 ext
IsPlayerInRangeOfPoint(playerid, 100.0, -29.5413,-89.5442,1003.5469) ||//24/7 int
IsPlayerInRangeOfPoint(playerid, 100.0, 370.3531,173.3661,1008.3828))//pref int 1318.297851,-1843.044799,1525.527343,-1595.913330
{
return 1;
}
return 0;
}
,