21.01.2011, 04:01
At the top of your gamemode:
Under OnGameModeInit:
At the bottom of your gamemode:
(Dunno how old this topic was, because I was just searching something and found this...)
pawn Code:
#define HName1 "Hostname 1"
#define HName2 "Hostname 2"
pawn Code:
SetTimer("HNChange", 5000, 0);
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);
}