12.08.2009, 09:16
"scripting god" lmao, ok dude I'm in a good mood so I'll give you an example:
pawn Код:
// used to track the amount of zones created and to pass the current ID back out of the custom function
new iZoneCount = -1;
// used to store the coordinates of your created zones, the slot of the array is it's ID (the first dimension)
new Float:fGangZonesCoords[ >>AMOUNT_HERE<< ][ 4 ];
//in your custom create zone function CreateZone( Float:min_x, Float:max_x, ...................
iZoneCount ++; // increment by one (move to the next zonescoords array slot)
fGangZonesCoords[ iZoneCount ][ 0 ] = min_x; // pass the values to the array
//do this for all four
return iZoneCount; //return the current slot being used, the zones id (the slot in the array)

