14.10.2014, 14:34
Inneded, players can be more than one zone at once.
pawn Код:
CMD:myareas(playerid, params[], 4, 0)
{
new
areas[128],
count = GetPlayerNumberDynamicAreas(playerid);
GetPlayerDynamicAreas(playerid, areas, sizeof(areas));
for(new i; i != count; i++)
{
SendClientMessagef(playerid, COLOR_ORANGE, "Area %d - %d", i, areas[i]);
}
SendClientMessagef(playerid, COLOR_WHITE, "All area: %d", count);
return 1;
}