SA-MP Forums Archive
Problem with gang zone color help rep+ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with gang zone color help rep+ (/showthread.php?tid=568505)



Problem with gang zone color help rep+ - Mijata - 22.03.2015

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;
}



Re: Problem with gang zone color help rep+ - vyper - 22.03.2015

It's the same, but because it has transparency the color shade is changing because of the map color (in this case green).