wanted colors
#6

pawn Код:
#include <a_samp>
#define red 0xFF0000FF
#define purple 0x4B00B0FF
#define white 0xFFFFFFFF
#define yellow 0xFF0000FF

public OnFilterScriptInit() //Or OnGameModeInit() if you're using a gamemode.
{
    SetTimer("ColorCheck", 1000, true);
    return 1;
}

forward ColorCheck();
public ColorCheck()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(medicteam[i] == 1)
            {
                SetPlayerColor(i, purple);
            }
            else
            {
                switch(GetPlayerWantedLevel(i))
                {
                    case 0:
                    {
                        SetPlayerColor(i, white);
                    }
                    case 1 .. 3:
                    {
                        SetPlayerColor(i, yellow);
                    }
                    case 4 .. 6:
                    {
                        SetPlayerColor(i, red);
                    }
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
wanted colors - by HardBoy - 08.09.2012, 14:23
Re: wanted colors - by Djole1337 - 08.09.2012, 14:27
Re: wanted colors - by Lordzy - 08.09.2012, 14:33
Re: wanted colors - by HardBoy - 08.09.2012, 14:47
Re: wanted colors - by HardBoy - 08.09.2012, 14:57
Re: wanted colors - by clarencecuzz - 08.09.2012, 14:59
Re: wanted colors - by HardBoy - 08.09.2012, 15:03
Re: wanted colors - by clarencecuzz - 08.09.2012, 15:03
Re: wanted colors - by HardBoy - 08.09.2012, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)