[FilterScript] Easy Hostname Flasher [Last Update: 07/11/2010]
#1

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
Reply
#2

Lmao, Show me the URL .
Reply
#3

WIKI link refers here

Quote:
Originally Posted by Nimphious
Посмотреть сообщение
I got this off ****** i believe.

Top of script

pawn Код:
new gChangeHN;
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++;
    }
}
Reply
#4

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.
Reply
#5

This is what i need Nice Filterscript dude lol
Reply
#6

Nice and clean, better than mine.
Well I'm newb at scripting to hehe
Regards!
Reply
#7

Nice to hear that you like it !
Reply
#8

Nice for a newbie, and it can be useful. Thanks man.
Reply
#9

what does this do exactly?
Reply
#10

Quote:
Originally Posted by [OC]MestreKiller
Посмотреть сообщение
what does this do exactly?
Changes your server name every so often.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)