14.03.2013, 02:43
Alright what im wanting is for when you attack a gang zone it sends a client message to everyone like so "GANG has initiated a turf war with GANG" Anyway to do this here is the code im using note the first get gang part works"
Код:
for(new t=0; t < sizeof(Teams); t++) // loop all teams { if(Teams[t] != ZoneInfo[i][zTeam] && GetPlayersInZone(i, Teams[t]) >= MIN_MEMBERS_TO_START_WAR) // if there are enough enemies in the zone { new string[128]; format(string,sizeof(string), "%s have initiated a gang war with %s",GetTeamName(playerid)); ZoneAttacker[i] = Teams[t]; ZoneAttackTime[i] = 0; GangZoneFlashForAll(ZoneID[i], GetTeamZoneColor(ZoneAttacker[i])); SendClientMessageToAll(COLOR_LIME, string);