#1

hi guys! I need your help! I need a command /setlevel [account id] [level]... please

rep++
Reply
#2

How could we know your variables? Here you request help, not scripts.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)