[SNIPPET/ FS] Server Hostname Changer
#1

What it is:
Every 1 second it will change your server's host name automatically.
Not much else to explain.
Configuration:
To change how often it changes your host name, find
Код:
	SetTimer("ChangeHostname",1000,1);
and change it to the time you want. (1000 equals 1 second)
Also, modify this:
Код:
     case 0: SendRconCommand("hostname First_Host_Name_Here");
     case 1: SendRconCommand("hostname Second_Host_Name_Here");
     case 2: SendRconCommand("hostname Third_Host_Name_Here");
And change the default host names to the host names you wish to have.
After modifying everything you want, compile, and it's ready to go.
Just add H_Change to your filterscripts line in server.cfg
Demonstration:
If you have compiled correctly, it should look something like this:
(Of course, you have refresh your server for the name to change.)

Downloads:

Solidfiles:
Pastebin : http://pastebin.com/f653381ba

Credits:
This snippet/ FS was made by me. Please DO NOT remove my credits or claim this as yours!
Reply
#2

Good job...
Reply
#3

It compile without an error or something , but after I put it in server.cfg , Server start but the name is same...it dosen`t change...Why?
Reply
#4

Have you click your server?
Reply
#5

Nice work usefull if you want attention for your server :P.

[Doppeyy
Reply
#6

Quote:
Originally Posted by Dark_Kostas
Have you click your server?
Of course , I`m not such as noob But it dosen`t work
Reply
#7

can i have a pastebin?
Reply
#8

You should use define for newbies..
Nice btw
Reply
#9

Quote:
Originally Posted by marko94
Quote:
Originally Posted by Dark_Kostas
Have you click your server?
Of course , I`m not such as noob But it dosen`t work
You have to refresh your server every second, or have it highlighted.
Reply
#10

Nice Work!
Works Perfect!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)