30.07.2011, 21:09
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;
}