21.06.2011, 22:17
How can i make a script where when the timer reaches 10 minutes the gamemode will change into a random one that i have listed.
forward ChangeMode();
public ChangeMode()
{
switch(random(3))
{
case 0: SendRconCommand("changemode GM1");
case 1: SendRconCommand("changemode GM2");
case 2: SendRconCommand("changemode GM3");\
}
}
//When scripts tarts
SetTimer("ChangeMode", 10 * (60 * 60), 0); //Change 10 with your minutes.
59 public OnGameModeInit()
60 {
61
62 public ChangeMode()
63 {
64 switch(random(2))
65 {
66 case 0: SendRconCommand("ChangeMode Ship War");
67 case 1: SendRconCommand("ChangeMode Aircrafts");
68 }
69 }
70
71 //When scripts tarts
72 SetTimer("ChangeMode", 10 * (60 * 60), 0); //Change 10 with your minutes.