Quote:
Originally Posted by Fantje
What's wrong here:
PHP код:
forward FlashName(playerid);
public FlashName(playerid)
{
new vFlash = random(sizeof(ColorFlash));
SetPlayerColor(playerid, ColorFlash[vFlash]); // Replace the "COLOR" with your defined color.
return 1;
}
|
Nothing, as long as your array that contains all the colors is fine every time FlashName is called it'll set their name color.
If your timer repeats it'll work fine.