Changing Always??/!!
#1

hey all


i have seen in one server the hostname , mode , map everything changes by 3 secs!! Is there any filterscripts or nything to do like that!!


Thnx In Advance
YoUnG_KiD
Reply
#2

Make it...

pawn Код:
public OnFilterScriptInit()
{
    SetTimer("Change", 3000, true);
}

forward Change();
public Change()
{
    switch(random(3)) //Change based on the random function. If the "random" number is the same as last time it won't change.
    {
        case 0:
        {
            SendRconCommand("hostname MyNewHostname");
            SendRconCommand("mapname MyNewMapName");
            SetGameModeText("MyNewGameModeText");
        }
        case 1:
        {
            SendRconCommand("hostname MyOtherNewHostname");
            SendRconCommand("mapname MyOtherNewMapName");
            SetGameModeText("MyOtherNewGameModeText");
        }
        case 2:
        {
            SendRconCommand("hostname MyOtherOtherNewHostname");
            SendRconCommand("mapname MyOtherOtherNewMapName");
            SetGameModeText("MyOtherOtherNewGameModeText");
        }
        case 2:
        {
            SendRconCommand("hostname MyOtherOtherOtherNewHostname");
            SendRconCommand("mapname MyOtherOtherOtherNewMapName");
            SetGameModeText("MyOtherOtherOtherNewGameModeText");
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)