10.08.2011, 18:31
pawn Code:
enum ENUM_TURFS
{
Name[20],
Float:MinX,
Float:MinY,
Float:MaxX,
Float:MaxY,
};
new
Turfs[3];
stock const TurfInfo[3][ENUM_TURFS] =
{
{"Morro", 2117.333, -1069.962, 2261.841, -959.4252 },
{"Skate", 1861.9410,-1450.6462,1976.5867,-1351.4069 },
{"Pier", 318.0144, -2120.061, 437.1136, -1993.733 },
};
public OnGameModeInit()
{
new
ii = -1;
while(++ii != sizeof(TurfInfo))
Turfs[ii] = GangZoneCreate(TurfInfo[ii][MinX],TurfInfo[ii][MinY],TurfInfo[ii][MaxX],TurfInfo[ii][MaxY]);
return true;
}
public OnPlayerSpawn(playerid)
{
new
ii = -1;
while(++ii != sizeof(TurfInfo))
GangZoneShowForPlayer(playerid,Turfs[ii],-1);
return true;
}