29.07.2012, 07:55
So how would you put it here?
pawn Код:
else if(checkpointid == BigEarCP || checkpointid == SnakeCP || checkpointid == TeeMotelCP || checkpointid == OilCP)
{
new string[128];
if(GangInfo[checkpointid][gAttacked] == 1) return SendClientMessage(playerid, C_RED, "The zone is being captured!");
if(GangInfo[checkpointid][gOwner] == gTeam[playerid]) return SendClientMessage(playerid, C_LBLUE, "Your team owns this zone.");
GangInfo[checkpointid][gAttacked] = 1;
if(IsPlayerInDynamicArea(playerid, BigEarArea))
{
GangZoneFlashForAll(BigEarZone, GetPlayerGangColor(playerid));
format(string, sizeof(string), "%s", "BigEarZone");
}
else if(IsPlayerInDynamicArea(playerid, SnakeArea))
{
GangZoneFlashForAll(SnakeZone, GetPlayerGangColor(playerid));
format(string, sizeof(string), "%s", "SnakeZone");
}
else if(IsPlayerInDynamicArea(playerid, TeeMotelArea))
{
GangZoneFlashForAll(TeeMotelZone, GetPlayerGangColor(playerid));
format(string, sizeof(string), "%s", "TeeMotelZone");
}
else if(IsPlayerInDynamicArea(playerid, OilArea))
{
GangZoneFlashForAll(OilZone, GetPlayerGangColor(playerid));
format(string, sizeof(string), "%s", "OilZone");
}
PlayerCount[playerid] = 30;
PlayerCountTimer[playerid] = SetTimerEx("GangCount", 1000, true, "iis[128]", playerid, checkpointid, string);
format(string, sizeof(string), "[ZONE] %s is being taken over!", GetZoneName(checkpointid));
SendClientMessageToAll(C_LGREEN, string);
}

