SA-MP Forums Archive
change 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)
+--- Thread: change hostname (/showthread.php?tid=618465)



change hostname - 1fret - 06.10.2016

Ok i made a happy hour script but i want it to change the server name to the one you see below , each time an admin use the command i want the server name to change to "{HAPPY HOUR} Los Santos Gang Wars" but it wont.
pawn Код:
CMD:happyhr(playerid,params[])
{
    if(IsPlayerAdmin(playerid) || pInfo[playerid][aAdmin] >= 6)
    {
        foreach(Player, i)
        {
            hrtime[i] = SetTimerEx("HappyHour",10000,1,"d",playerid);
            happyhr[i] = 1;
            SendClientMessageToAll(0x37EA7EFF,"------------------------------------------");
            SendClientMessageToAll(0xD6D6D6FF, "*****LOS SANTOS GANG WARS HAPPYHOUR!*****");
            SendClientMessageToAll(0x37EA7EFF,"------------------------------------------");
            SendClientMessageToAll(0x37EA7EFF,"Free Weapons, Free Scores, Free Money, Free Ammunition ,Events etc....");
            SendRconCommand("{****HAPPY HOUR****}Los Santos Gang Wars");// it should change to this but it wont.
        }
        return 1;
    }
    else return ShowMessage(playerid, red, 1);
}



Re: change hostname - JaKe Elite - 06.10.2016

PHP код:
SendRconCommand("{****HAPPY HOUR****}Los Santos Gang Wars"); 
Change this to

PHP код:
SendRconCommand("hostname {****HAPPY HOUR****}Los Santos Gang Wars"); 



Re: change hostname - 1fret - 06.10.2016

thanks rep+