05.08.2009, 17:16
So how would i set a timer which changes the gamemode??
Originally Posted by Don Correlli
|
forward message(); public OnGameModeInit( ) { print("Starting timer..."); SetTimer("message",1000,false); } public message() { print("1 second has passed."); }
SetTimer("message",1000,false);
gamemode = 1;
forward Timer();
public OnGameModeInit()
{
SetTimer("Timer", 3600000, false); // 3600000 is 1 hour.
return 1;
}
public Timer()
{
SendRconCommand("gmx");
return 1;
}
SendRconCommand("changemode modename");
Originally Posted by Don Correlli
Yes, 1 second is 1000 miliseconds.
So, the gamemode restart would look like this: pawn Код:
pawn Код:
|
SendRconCommand("changemode modename");