08.04.2011, 22:56
Quote:
Okay i have this text. But i need a timer so every seconds the text changes to another text. I know how to make a timer. But isnt there a easyer way to change the text instead of making a whole new text earch time.
Ex: 1 second: 20 2 second: 19 3 second: 18 ... pawn Код:
|
pawn Код:
public OnGameModeInit()
{
SetTimer("SendRandomMessageToAll", 120000, 1);
return 1;
}
public SendRandomMessageToAll()
{
switch(random(4))
{
case 0: TextDrawSetString(TextTimer, "Apple pie for everyone!");
case 1: TextDrawSetString(TextTimer, "ID 0 is nub!");
case 2: TextDrawSetString(TextTimer, "Everyone gonna be banned soon!");
case 3: TextDrawSetString(TextTimer, "Hacking is ALLOWED!");
}
return 1;
}