pawn Код:
Timer etc:
...
//Zone
new Float:XX, Float:YY, Float:ZZ;
GetPlayerPos(playerid,XX,YY,ZZ);
for(new zone = 0; zone < MAX_ZONES; zone++)
{
if(XX >= ZoneInfo[zone][zMinx] && XX < ZoneInfo[zone][zMaxx] && YY >= ZoneInfo[zone][zMiny] && YY < ZoneInfo[zone][zMaxy])
{
if(ZoneInfo[zone][zTeamid] == 0)
{
TextDrawHideForPlayer(playerid,NoZoneTextDraw[playerid]);
TextDrawHideForPlayer(playerid,GangZoneTextDraw[playerid]);
TextDrawSetString(GangZoneTextDraw[playerid],"]Free] Hood");
TextDrawColor(GangZoneTextDraw[playerid],0xFFFFFFAA);
TextDrawShowForPlayer(playerid,GangZoneTextDraw[playerid]);
}
if(ZoneInfo[zone][zTeamid] > 0)
{
TextDrawHideForPlayer(playerid,NoZoneTextDraw[playerid]);
TextDrawHideForPlayer(playerid,GangZoneTextDraw[playerid]);
format(string, sizeof(string),"]%s] Hood",gangNames[ZoneInfo[zone][zTeamid]]);
TextDrawSetString(GangZoneTextDraw[playerid], string);
TextDrawColor(GangZoneTextDraw[playerid],gangColor[ZoneInfo[zone][zTeamid]]);
TextDrawShowForPlayer(playerid,GangZoneTextDraw[playerid]);
}
}
else
{
TextDrawHideForPlayer(playerid,NoZoneTextDraw[playerid]);
TextDrawHideForPlayer(playerid,GangZoneTextDraw[playerid]);
}
}
//
...