22.12.2011, 15:52
Hi. I wanted to make some players color blinking using timer, but it doesn't work. It changes it to FF9900 and then stops...
pawn Код:
new Float:changed[9000];
forward Highlight(playerid);
public Highlight(playerid)
{
if(changed[playerid]==0)
{
SetPlayerColor(playerid, 0xFF0000FF);
changed[playerid]=1;
}
if (changed[playerid]==1)
{
SetPlayerColor(playerid, 0xFF9900FF);
changed[playerid]=0;
}
}
SetTimer("Highlight", 2000, true);