Question about a command
#1

So I have a simple /setlevel command setup:

Код:
CMD:setlevel(playerid,params[])
{
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    SendClientMessage(playerid, COLOR_RED, "Your level has been set!");
    return 1;
}
How do I make it so it's more like /setlevel [playerid] [level] versus just going up by one level and having it done to yourself only?
Reply


Messages In This Thread
Question about a command - by K9IsGodly - 02.01.2014, 17:40
Re: Question about a command - by GiamPy. - 02.01.2014, 17:46
Re: Question about a command - by Hansrutger - 02.01.2014, 17:47
Re: Question about a command - by K9IsGodly - 02.01.2014, 17:48
Re: Question about a command - by Hansrutger - 02.01.2014, 17:52
Re: Question about a command - by GiamPy. - 02.01.2014, 17:55
Re: Question about a command - by K9IsGodly - 02.01.2014, 17:55
Re: Question about a command - by GiamPy. - 02.01.2014, 17:59
Re: Question about a command - by K9IsGodly - 02.01.2014, 18:11

Forum Jump:


Users browsing this thread: 4 Guest(s)