20.04.2013, 10:56
Acho que й isso fera tenta ae
pawn Код:
stock GetPlayer2DZone(playerid, zone[], len)
{
new Float:x22, Float:y22, Float:z22;
GetPlayerPos(playerid, x22, y22, z22);
for(new i = 0; i != sizeof(gSANZones); i++ )
{
if(x22 >= gSANZones[i][SAZONE_AREA][0] && x22 <= gSANZones[i][SAZONE_AREA][3] && y22 >= gSANZones[i][SAZONE_AREA][1] && y22 <= gSANZones[i][SAZONE_AREA][4])
{
return format(zone, len, gSANZones[i][SAZONE_NAME], 0);
}
}
return 0;
}