#3

As I don`t have your variables you`ll have to change the script but here`s the idea:
Код:
CMD:setlevel(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 10)
    {
        if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setlevel [playerid] [level]");
        PlayerInfo[giveplayerid][pLevel] = amount;
        SendClientMessage(playerid, COLOR_GRAY, "You are not authorized to use that command!");
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    }
    return 1;
}
Reply


Messages In This Thread
Help - by xStunt - 05.10.2014, 10:45
Re: Help - by DiGiTaL_AnGeL - 05.10.2014, 10:54
Re: Help - by TFreemen - 05.10.2014, 12:24

Forum Jump:


Users browsing this thread: 2 Guest(s)