Auto change HostName
#6

Quote:
Originally Posted by •Lj•
Tez just go and play Roller Coaster Tycoon, you obviously suck at SA-MP.

You can use this as a filterscript if you want, else just change things around for it to be in gamemode format:

pawn Code:
// above main()
forward ChangeHostname();

public OnFilterScriptInit()
{
  SetTimer("ChangeHostname",1000,1); // Change the, 1000 to whatever you want, in milliseconds ofc.
  return 1;
}

public ChangeHostname()
{
  new var = random(3);
  switch (var)
  {
    case 0: SendRconCommand("hostname My server name 1");
    case 1: SendRconCommand("hostname Server name 2");
    case 2: SendRconCommand("hostname Name 3 here");
  }
}
That's what I did but 10times as complicated!
Reply


Messages In This Thread
Auto change HostName - by super-sergio16 - 07.12.2008, 16:47
Re: Auto change HostName - by Tez2k7 - 07.12.2008, 16:52
Re: Auto change HostName - by Lewwy - 07.12.2008, 17:13
Re: Auto change HostName - by super-sergio16 - 07.12.2008, 19:22
Re: Auto change HostName - by Lewwy - 07.12.2008, 20:12
Re: Auto change HostName - by Tez2k7 - 07.12.2008, 21:35
Re: Auto change HostName - by punisher0000 - 04.01.2011, 00:00
Re: Auto change HostName - by admantis - 04.01.2011, 00:08

Forum Jump:


Users browsing this thread: 2 Guest(s)