Server name change
#3

That tutorial is wrong maked
that " don't have to be there
pawn Код:
format(str, sizeof(str), "hostname %s", HName1");
and also here
pawn Код:
format(str, sizeof(str), "hostname %s", HName2");

Just a little bit easy
pawn Код:
#include <a_samp>

#define S_NAME1 "Modify Here"
#define S_NAME 2 "Modify Here"
#define S_NAME 3 "Modufy Here"

#define TIMER_CHANGE 4000

public OnGameModeInit()
{
    SetTimer("SetNameServer", TIMER_CHANGE , true);
    return 1;
}

forward SetNameServer();
public SetNameServer()
{
    new r = random(3)
    switch(r)
    {
        case 0:
        {
            new str[128];
            format(str, sizeof(str), "hostname %s", S_NAME1);
            SendRconCommand(str);
           
        }
        case 1:
        {
            new str[128];
            format(str, sizeof(str), "hostname %s", S_NAME1);
            SendRconCommand(str);
        }
        case 2:
        {
            new str[128];
            format(str, sizeof(str), "hostname %s", S_NAME1);
            SendRconCommand(str);
        }
    }
}
Reply


Messages In This Thread
Server name change - by dudefff - 06.09.2013, 08:25
Re: Server name change - by Misiur - 06.09.2013, 08:46
Re: Server name change - by XStormiest - 06.09.2013, 08:53
Re: Server name change - by dudefff - 06.09.2013, 09:01
Re: Server name change - by dudefff - 06.09.2013, 09:12
Re: Server name change - by Misiur - 06.09.2013, 09:21
Re: Server name change - by Dragonsaurus - 06.09.2013, 09:21
Re: Server name change - by dudefff - 06.09.2013, 09:24

Forum Jump:


Users browsing this thread: 2 Guest(s)