SA-MP Forums Archive
[SNIPPET/ FS] Server Hostname Changer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [SNIPPET/ FS] Server Hostname Changer (/showthread.php?tid=115794)



[SNIPPET/ FS] Server Hostname Changer - DeltaAirlines12 - 26.12.2009

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!



Re: [SNIPPET/ FS] Server Hostname Changer - DiddyBop - 26.12.2009

Good job...


Re: [SNIPPET/ FS] Server Hostname Changer - marko94 - 26.12.2009

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?


Re: [SNIPPET/ FS] Server Hostname Changer - Dark_Kostas - 26.12.2009

Have you click your server?


Re: [SNIPPET/ FS] Server Hostname Changer - Doppeyy - 26.12.2009

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

[Doppeyy


Re: [SNIPPET/ FS] Server Hostname Changer - marko94 - 26.12.2009

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


Re: [SNIPPET/ FS] Server Hostname Changer - Niixie - 26.12.2009

can i have a pastebin?


Re: [SNIPPET/ FS] Server Hostname Changer - RyDeR` - 26.12.2009

You should use define for newbies..
Nice btw


Re: [SNIPPET/ FS] Server Hostname Changer - Grim_ - 26.12.2009

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.


Re: [SNIPPET/ FS] Server Hostname Changer - Cypress - 26.12.2009

Nice Work!
Works Perfect!