Hostname
#6

Forward :
Код:
forward HostNameChanger();
Add this in your OnGameModeInit
Код:
SetTimer("HostNameChanger",5000,1);
And this as a public


Код:
public HostNameChanger()
{
   new variable = random(2); //(Change the 3 to a different number if you are adding more message or deleting)
   switch (variable)
   {
     case 0: SendRconCommand("hostname Message 1"); // << Don't delete the hostname 
     case 1: SendRconCommand("hostname Message 2"); // << Don't delete the hostname 
   }
}
Reply


Messages In This Thread
Hostname - by Gregory00 - 17.12.2013, 21:27
Re: Hostname - by Blademaster680 - 17.12.2013, 21:31
Re: Hostname - by Gregory00 - 17.12.2013, 21:32
Re: Hostname - by Blademaster680 - 17.12.2013, 21:50
Re: Hostname - by Gregory00 - 18.12.2013, 07:13
Re : Hostname - by [HRD]Mar1 - 18.12.2013, 09:53

Forum Jump:


Users browsing this thread: 2 Guest(s)