Name changing
#4

pawn Код:
public OnGameModeInit()
{
    SetTimer("SetServerName",5000,1);//timer SetServerName, 5000 ms (5secs), looping true
pawn Код:
forward SetServerName()
public SetServerName()
{
    switch(random(3)) // change this to the ammount of random names
    {
        // cases start with zero not with one
        case 0: SendRconCommand("hostname TDM"); // hostname TDM sets the name to TDM
        case 1: SendRconCommand("hostname DM War of nations");
        case 2: SendRconCommand("hostname www.tdm.com");
        return 1;
    }
}
Reply


Messages In This Thread
Name changing - by marinov - 17.12.2010, 22:41
Re: Name changing - by admantis - 18.12.2010, 00:18
Re: Name changing - by marinov - 18.12.2010, 00:29
Re: Name changing - by admantis - 18.12.2010, 00:34
Re: Name changing - by marinov - 18.12.2010, 00:40
Re: Name changing - by marinov - 18.12.2010, 00:45

Forum Jump:


Users browsing this thread: 1 Guest(s)