03.01.2011, 21:12
Hi i just ask for some favor does anybody knows the code for changing server name like every 3 to 5 sec i saw this in a server and in Bloodz RP GM so ya thanks
#define HName1 "Hostname 1"
#define HName2 "Hostname 2"
SetTimer("HNChange", 5000, 0);
forward HNChange();
public HNChange()
{
new str[128];
format(str, sizeof(str), "hostname %s", HName1");
SendRconCommand(str);
SetTimer("HNChange2", 5000, 0);
}
forward HNChange2();
public HNChange2()
{
new str[128];
format(str, sizeof(str), "hostname %s", HName2");
SendRconCommand(str);
SetTimer("HNChange", 5000, 0);
}
At the top of your gamemode:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
|