Making player's color blinking
#2

Either you're on crack or something else.
1. The "changed" variable is not a float because playerid is NOT a float (0.0, 0.00152), it's an integer (1, 25, 30)
2. You don't need 9000 cells just for, what 500 players you have?

Anyway, here's your script:
pawn Код:
SetTimer("Highlight", 2000, true);

new changed[MAX_PLAYERS] = 0;
forward Highlight(playerid);
public Highlight(playerid)
{
    if(changed[playerid] == 0)
    {
        SetPlayerColor(playerid, 0xFF0000FF);
        changed[playerid] = 1;
    }
    else
    {
        SetPlayerColor(playerid, 0xFF9900FF);
        changed[playerid] = 0;
    }
}
Reply


Messages In This Thread
Making player's color blinking - by xGoldenx - 22.12.2011, 15:52
Re: Making player's color blinking - by Tee - 22.12.2011, 15:54
Re: Making player's color blinking - by xGoldenx - 22.12.2011, 16:05
Re: Making player's color blinking - by Tee - 22.12.2011, 16:08
Re: Making player's color blinking - by wildcookie007 - 22.12.2011, 16:12
Re: Making player's color blinking - by xGoldenx - 22.12.2011, 16:16

Forum Jump:


Users browsing this thread: 2 Guest(s)