18.03.2015, 08:41
(
Последний раз редактировалось Miller007; 18.07.2015 в 09:43.
)
Solved
new value; //at the top
SetTimer("call",1000,1); //here the timer function
forward call();
public call()
{
value++;
if(value > 9) value = 1;
SendClientMessageToAll(-1,GetRandom(value));
return 1;
}
|
Here you go: http://pastebin.com/RYgQnL6c
To use it, make sth like this: Код:
new value; //at the top
SetTimer("call",1000,1); //here the timer function
forward call();
public call()
{
value++;
if(value > 9) value = 1;
SendClientMessageToAll(-1,GetRandom(value));
return 1;
}
![]() |
new RandomMessage[9][100] = {
"", //All of your random messages go in these
"",
"",
//etc
};
SendClientMessageToAll(your_color_here, RandomMessage[random(sizeof(RandomMessage))]);
|
pawn Код:
|