17.04.2013, 18:05
Adiciona isso no GM
pawn Код:
stock GetPlayer2DZone(playerid, zoneada[], len)
{
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i != sizeof(gSAZones); i++ )
{
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
{
return format(zoneada, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return 0;
}