SA-MP Forums Archive
How to get a Zone Color? - 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: How to get a Zone Color? (/showthread.php?tid=528999)



How to get a Zone Color? - sagoza - 30.07.2014

Is there a way to get a gang's zone color?

The idea is, instead of making something elaborate that will block the same gang, from re-capture that zone, i use the player name color, (That i also use to set the gang zone color, when capturing), and compare it with the zone color...

Cant find a way to do so...

Any idea how?


Re: How to get a Zone Color? - Spartaaaaa - 30.07.2014

Come 2 skype


Re: How to get a Zone Color? - ViniBorn - 30.07.2014

Are you using a pre determinated colors for GangZones?


Re: How to get a Zone Color? - StreetGT - 31.07.2014

An example here

pawn Код:
forward GetGangZoneColor(id);
public GetGangZoneColor(id)
{
    switch(GangZone[id][gzFaction])
    {
        case GROVE: return 0x00FF0050;
        case BRIGADA: return 0xFFFF0050;
        case RATS: return 0xBB000050;
        case 255: return 0xB9B9B950;
    }
    return 0xFFFFFFFF;
}