How to make a player's colour flash?
#3

pawn Код:
SetTimer("FlashPlayerName", 1000, true); //OnGameModeInit

forward FlashPlayerName(); //Some where in script 'v'
public FlashPlayerName()
{
    foreach(Player, i)
    {
        switch(random(6))
        {
            case 0: SetPlayerColor(i, 0xFF0000FF);
            case 1: SetPlayerColor(i, 0xFF5005FF);
            case 2: SetPlayerColor(i, 0x4A5005FF);
            case 3: SetPlayerColor(i, 0x21007FFF);
            case 4: SetPlayerColor(i, 0x21FF7FFF);
            default: SetPlayerColor(i, 0x7C0000FF);
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to make a player's colour flash? - by grand.Theft.Otto - 30.07.2011, 20:50
Re: How to make a player's colour flash? - by vyper - 30.07.2011, 20:56
Re: How to make a player's colour flash? - by Laronic - 30.07.2011, 21:09
Re: How to make a player's colour flash? - by MoroDan - 30.07.2011, 21:10
Re: How to make a player's colour flash? - by Laronic - 30.07.2011, 21:11
Re: How to make a player's colour flash? - by grand.Theft.Otto - 30.07.2011, 21:13

Forum Jump:


Users browsing this thread: 2 Guest(s)