change gm by timer
#1

how do i change game mode on timer like in mini missions?

the timer part i made myself but what is the command to change game mode automatically?
Reply
#2

pawn Код:
SetTimerEx("SendRconCommand", 600000, false, "s", "changemode lol");
This will change to "lol.amx", note that the interval is in milliseconds, you'll need to update the interval in milliseconds to what you believe is sufficient, currently the mode will change every 10 minutes.
Reply
#3

Quote:
Originally Posted by Freddo [BINMAN
]
pawn Код:
SetTimerEx("SendRconCommand", 600000, false, "s", "changemode lol");
This will change to "lol.amx", note that the interval is in milliseconds, you'll need to update the interval in milliseconds to what you believe is sufficient, currently the mode will change every 10 minutes.
thanks dude, i knew it has something to do with Sendrconcommand but i didnt know how to put it together!

+1

ok no doubt this is TOTAL bullshit

i used this
Код:
SendRconCommand("changemode new");
and it worked




Reply
#4

Код:
OnGameModeInit()
{
SetTimer("changegm",Time in milliseconds,1);
return 1;
}
Код:
forward changegm();
Код:
public changegm()
{
SendRconCommand("changemode YourGM");
return 1;
}
Reply
#5

Either way works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)