how to
#2

Not sure it works, but should.

And btw, this kind of command can't return a error message saying that the gamemode hasn't been found

pawn Код:
if(strcmp(cmd, "/setmode", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid,COLOR_WHITE,"   USAGE: /setmode [gamemode name]");
            return 1;
        }
        new string[128]; // Remove this if you already have it defined
        format(string,sizeof(string),"changemode %s",tmp);
        SendRconCommand(string);
    }
    return 1;
}
Reply


Messages In This Thread
how to - by bartje01 - 23.07.2010, 23:24
Re: how to - by Blt950 - 24.07.2010, 00:08
Re: how to - by bartje01 - 24.07.2010, 11:12
Re: how to - by Vince - 24.07.2010, 11:33
Re: how to - by bartje01 - 24.07.2010, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)