30.07.2011, 20:50
I tried setting a timer to make a wanted player's name flash, but didn't work. Maybe I did it wrong, but I don't think I did. Is it even possible to flash their name? I'm sure it is
![Tongue](images/smilies/razz.gif)
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;
}