SA-MP Forums Archive
Making a hostname - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making a hostname (/showthread.php?tid=254199)



Making a hostname - Hitman-97- - 09.05.2011

How can I make 2 hostnames for my server?
Like for 5 second it will be:
Grand Santos Roleplay
Then it will be:
Fixed some problems

I need help fast


Re: Making a hostname - marrcko - 09.05.2011

i have seen fs with that but i cant remember there. i think it was with some drift GM.. good luck for searching


Re: Making a hostname - MadeMan - 09.05.2011

pawn Код:
new hostnameid;
OnGameModeInit
pawn Код:
SetTimer("ChangeHostName", 5000, true);
pawn Код:
public ChangeHostName()
{
    switch(hostnameid)
    {
        case 0: SendRconCommand("hostname Grand Santos Roleplay");
        case 1: SendRconCommand("hostname Fixed some problems");
    }
    hostnameid++;
    if(hostnameid > 1) hostnameid = 0;
}



Re: Making a hostname - Hitman-97- - 09.05.2011

Thanks MadeMan, and nice name btw