SA-MP Forums Archive
Dinamic server name.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dinamic server name.. (/showthread.php?tid=346141)



Dinamic server name.. - Dr0gIraN - 27.05.2012

Hello!I would to ask, how can I make the server name we changes at a certain time?

Sorry for my bad English!



Re: Dinamic server name.. - Smokkr - 27.05.2012

Add me on skype: gstrafe ! I am from Bulgaria too


Re: Dinamic server name.. - Catalyst- - 27.05.2012

pawn Код:
SendRconCommand("hostname Server Name");



Re: Dinamic server name.. - newbienoob - 27.05.2012

pawn Код:
forward chn(); // at the top of your script
SetTimer("chn",1000,1); //under OnGameModeInit
public chn() // anywhere
{
    new chname = random(3);
    {
        switch (chname)
        {
            case 0: SendRconCommand("hostname Your Server Name 1");
            case 1: SendRconCommand("hostname Your Server Name 2");
            case 2: SendRconCommand("hostname Your Server Name 3");
        }
        return 1;
    }
}



Re: Dinamic server name.. - OsamaBg - 27.05.2012

Thank you