Auto Host Name Changer
#2

pawn Код:
new hn;//global variable

//Under ongamemodeinit
SetTimer("changehost", 3000,1); // it will change the server name after every 3 seconds


forward changehost();
public changehost()
{
    switch(hn)
    {
    case 0:
    {
    SendRconCommand("hostname  Stunt");
    hn++;
    }
    case 1:
    {
    SendRconCommand("hostname Dm");
    hn++;
    }
    case 2:
    {
    SendRconCommand("hostname Race");
    hn = 0;
    }
    }
    return 1;
}
Reply


Messages In This Thread
Auto Host Name Changer - by Linus- - 19.12.2010, 07:02
Re: Auto Host Name Changer - by HyperZ - 19.12.2010, 07:04
Re: Auto Host Name Changer - by Linus- - 19.12.2010, 07:11
Re: Auto Host Name Changer - by HyperZ - 19.12.2010, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)