[FS/SNIPPET] Advanced mapname and hostname changer
#3

There's an mistake:

Quote:
Code:
public hostname()
{
  SendRconCommand("mapname [YOUR FIRST HOSTNAME HERE]");
  SetTimer("hostname", hostnamechangetime, 0);
  return 1;
}
public hostname2()
{
  SendRconCommand("mapname [YOUR SECOND HOSTNAME HERE]~ ");
  SetTimer("hostname2", hostnamechangetime, 0);
  return 1;
}
I suppose you wanted to change hostname, not mapname.
Use "hostname" rcon-command to change hostname.
And also, there's no need for four timers, you can have it in two timers.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)