16.11.2013, 09:30
Quote:
stock ActiveCAPZONE(playerid) { if(UnderAttack[CAPZONE] == 0) { if(!IsPlayerInAnyVehicle(playerid)) { UnderAttack[CAPZONE] = 1; timer[playerid][CAPZONE] = SetTimerEx("CAPZONETimer", 30000, false,"i", playerid); Captured[playerid][CAPZONE] = 0; SendClientMessage(playerid, -1, "[ZONE]Stay Here for 30 seconds to capture this zone."); if(gTeam[playerid] = TEAM_ASIA) { GangZoneFlashForAll(Zone[CAPZONE], ); } else if(gTeam[playerid] = TEAM_USA) { GangZoneFlashForAll(Zone[CAPZONE], 0x2800FFFF); } else if(gTeam[playerid] = NONE) { SendClientMessage(playerid, -1, "[ZONE]This zone is not captured by any team! You can capture it"); } for(new i = 0; i < MAX_PLAYERS; i++) { IsPlayerCapturing[i][CAPZONE] = 1; } } else return CaptureZoneMessage(playerid, 1); } else return CaptureZoneMessage(playerid, 2); return 1; } |