09.10.2016, 00:37
PHP код:
public OnPlayerConnect(playerid)
{
SetTimer("TrocarCor", 1000, true);
return 1;
}
forward TrocarCor();
public TrocarCor()
{
switch(random(5))
{
case 0: TextDrawColor(Textdraw1, COR AQUI);
case 1: TextDrawColor(Textdraw1, COR AQUI);
case 2: TextDrawColor(Textdraw1, COR AQUI);
case 3: TextDrawColor(Textdraw1, COR AQUI);
case 4: TextDrawColor(Textdraw1, COR AQUI);
}
return 1;
}