22.03.2015, 19:07
why this zone don't have same color
Код:
stock OLDCaptured(playerid) { Captured[playerid][OLD] = 1; UnderAttack[OLD] = 0; KillTimer(timer[playerid][OLD]); CountVar[playerid][OLD] = 25; GivePlayerScore(playerid, 5); TextDrawHideForPlayer(playerid, CountText[playerid]); GivePlayerMoney(playerid, 5000); SendClientMessage(playerid, COLOR_GREEN,"Congratulations! You have captured the Small Town! You received +5 scores and +$5000 cash!"); //========================================================================== for(new i = 0; i < MAX_PLAYERS; i++) { IsPlayerCapturing[i][OLD] = 0; if(gTeam[i] == gTeam[playerid]) { SendClientMessage(i, 0xFFFFFFFF,"*Your team has captured the Small Town! You received +1 score for it!"); GivePlayerScore(i, 1); } } //========================================================================== tCP[OLD] = gTeam[playerid]; GangZoneStopFlashForAll(Zone[OLD]); //========================================================================== if(gTeam[playerid] == C1) { GangZoneShowForAll(Zone[OLD], C_GZ_COLOR); } else if(gTeam[playerid] == T1) { GangZoneShowForAll(Zone[OLD], T_GZ_COLOR); } //========================================================================== new str[128]; format(str, sizeof(str),">> %s has captured the Small Town!", GetName(playerid)); SendClientMessageToAll(COLOR_ORANGE, str); return 1; }