[FilterScript] Easy Hostname Flasher [Last Update: 07/11/2010] - 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: [FilterScript] Easy Hostname Flasher [Last Update: 07/11/2010] (
/showthread.php?tid=196953)
Easy Hostname Flasher [Last Update: 07/11/2010] -
FreshDoubleX - 07.12.2010
Description:
This is Easy & Simple FS, witch changes your server name / makes flash. There are 3 different hostnames witch are changing.
Of course you can add/change/remove them.
Setting Up:
There are 3 hostnames defined on line
21 -> 22 -> 23
pawn Код:
#define Hostname1 "SAMP For The Win!"
#define Hostname2 "SAMP Rules!"
#define Hostname3 "SAMP is Awesome!"
Change them as you want to change.
Timer is set to 1 second, it means your server name changes every 1 second. (Line 33)
pawn Код:
SetTimer("FlashHostname", 1000, true);
If you want to set it 2 seconds, then just change:
pawn Код:
SetTimer("FlashHostname", 2 * 1000, true);
Thats it! Add FreshDoubleX-FHostname to your 'filterscripts' line in server.cfg file ->
It should look like this: 'filterscripts base FreshDoubleX-FHostname'
Rate & Comment !!!
- Pastebin
- MEGAUPLOAD - Amx & Pwn
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
FreshDoubleX - 07.12.2010
Lmao, Show me the URL .
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
falenone1 - 07.12.2010
WIKI link refers here
Quote:
Originally Posted by Nimphious
I got this off ****** i believe.
Top of script
pawn Код:
forward ChangeHostname();
In OnGameModeInit()
pawn Код:
SetTimer("ChangeHostname",5000,1);
SomeWhere in script(outside of a public):
pawn Код:
public ChangeHostname() { switch (gChangeHN) { case 0: SendRconCommand("hostname name"); case 1: SendRconCommand("hostname name"); case 2: SendRconCommand("hostname name"); } if (gChangeHN == 3) { gChangeHN = 0; } else { gChangeHN++; } }
|
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
FreshDoubleX - 07.12.2010
Uhm, Ok, If it's better for you, then use YOUR WIKI. No need to do here your SH*T Comments.
And gimme URL of this WIKI!
// Reported.
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
Jake001 - 07.12.2010
This is what i need

Nice Filterscript dude lol
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
Plugy - 07.12.2010
Nice and clean, better than mine.
Well I'm newb at scripting to hehe

Regards!
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
FreshDoubleX - 07.12.2010
Nice to hear that you like it !
Respuesta: Easy Hostname Flasher [Last Update: 07/11/2010] -
anonymousx - 12.12.2010
Nice for a newbie, and it can be useful. Thanks man.
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
MestreKiller - 12.12.2010
what does this do exactly?
Re: Easy Hostname Flasher [Last Update: 07/11/2010] -
Mrkrabz - 12.12.2010
Quote:
Originally Posted by [OC]MestreKiller
what does this do exactly?
|
Changes your server name every so often.