Server name change
#2

At the top of your gamemode:
pawn Code:
#define HName1 "Hostname 1"
#define HName2 "Hostname 2"
Under OnGameModeInit:
pawn Code:
SetTimer("HNChange", 5000, 0);
At the bottom of your gamemode:
pawn Code:
forward HNChange();
public HNChange()
{
     new str[128];
     format(str, sizeof(str), "hostname %s", HName1");
     SendRconCommand(str);
     SetTimer("
HNChange2", 5000, 0);
}
pawn Code:
forward HNChange2();
public HNChange2()
{
     new str[128];
     format(str, sizeof(str), "hostname %s", HName2");
     SendRconCommand(str);
     SetTimer("
HNChange", 5000, 0);
}
(Dunno how old this topic was, because I was just searching something and found this...)
Reply


Messages In This Thread
Server name change - by Marty_Alex - 03.01.2011, 21:12
Re: Server name change - by ExeC - 21.01.2011, 04:01
Re: Server name change - by Marty_Alex - 21.01.2011, 06:57
Re: Server name change - by ExeC - 21.01.2011, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)