27.05.2012, 14:33
Hello!I would to ask, how can I make the server name we changes at a certain time?
Sorry for my bad English!
Sorry for my bad English!
SendRconCommand("hostname Server Name");
forward chn(); // at the top of your script
SetTimer("chn",1000,1); //under OnGameModeInit
public chn() // anywhere
{
new chname = random(3);
{
switch (chname)
{
case 0: SendRconCommand("hostname Your Server Name 1");
case 1: SendRconCommand("hostname Your Server Name 2");
case 2: SendRconCommand("hostname Your Server Name 3");
}
return 1;
}
}