02.08.2015, 04:41
Quote:
try putting the "if count" statement outside of the for loop
|
PHP код:
if(areaid == MariaBeach)
{
if(zUnderAttack[MariaBeach] == 1)
{
new count;
if(count < 2)
{
for(new i; i< MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerInDynamicArea(i, MariaBeach) && gTeam[i] == gTeam[playerid]) count++;
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;
}
correct me if i am wrong please
thanks