19.07.2009, 10:39
hi i have a problem.
i dont can add GetPlayerColor(killerid), i can add but if the gangwar stops, the message comes white, and my color are not white.
my EndGangWar:
Код:
GangWarTimer[zone] = SetTimerEx("EndGangWar",GANGWAR_LENGTH,false,"iii",zone, playerGang[killerid], playerGang[playerid],GetPlayerColor(killerid));
my EndGangWar:
Код:
forward EndGangWar(zone, attacker, defender, color);
public EndGangWar(zone, attacker, defender, color)
{
new str[128];
if(ZoneInfo[zone][GangWarInProgress] == 1)
{
// send the message
format(str, sizeof(str), "*** GangZone Message: 5 Minuten sind vergangen. %s haben ihre Gangzone von %s verteidigt.", Gangs[ defender ][gName], Gangs[ attacker ][gName] );
SendClientMessageToAll(color, str);
// change the zone colour
GangZoneStopFlashForAll( zone );
GangZoneHideForAll( zone );
GangZoneShowForAll( zone, color );
// reset the counters
Gangs[ defender ][UnderAttackCount] = 0;
Gangs[ attacker ][UnderAttackCount] = 0;
Gangs[ defender ][DefendCount] = 0;
ZoneInfo[zone][GangWarInProgress] = 0;
ZoneInfo[zone][ZoneAttackers] = -1;
}
}

