02.08.2015, 01:17
Try it like this
pawn Код:
if(areaid == MariaBeach)
{
if(zUnderAttack[MariaBeach] == 1)
{
new count;
for(new i; i< MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerInDynamicArea(i, MariaBeach) && gTeam[i] == gTeam[playerid]) count++;
if(count < 2)
{
zUnderAttack[MariaBeach] = 0;
GangZoneStopFlashForAll(GangZone[MariaBeach]);
KillTimer(tBarTimer[i]);
KillTimer(ZTimer[i][MariaBeach]);
captureTime[i]= 0;
PlayerTextDrawHide(i, Bar);
SendClientMessage(i, -1,"not enough members turf cancled.");
}
}
return 1;
}