15.07.2010, 13:32
At TOP of your script:
Where you want to start the Timer (Mostly at OnGameModeInit):
The Function:
I hope this helps you.
Greetz,
Jeffry
pawn Код:
new Number=0;
pawn Код:
SetTimer("YourTimer", 20000, 1); //Timer gets called every 20 secs
pawn Код:
forward YourTimer();
public YourTimer()
{
switch(Number)
{
case 0: { SendClientMessageToAll(0xFFFFFFFF, "Case 0!"); Number++; }
case 1: { SendClientMessageToAll(0xFFFFFFFF, "Case 1!"); Number++; }
//....
case 7: { SendClientMessageToAll(0xFFFFFFFF, "Case 7!"); Number=0; } // Make "=0" at the LAST case.
}
return 1;
}
Greetz,
Jeffry