[FilterScript] Easy Hostname Flasher [Last Update: 07/11/2010]
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)