Server name change
#1

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
Reply
#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
#3

Quote:
Originally Posted by ExeC
View Post
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...)
I dont care its old xD i waited for long thank you mate your the best to answer <3
Reply
#4

Quote:
Originally Posted by Marty_Alex
View Post
I dont care its old xD i waited for long thank you mate your the best to answer <3
No problem mate. But.. You're banned.. again? Oh man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)