Setlevel
#8

try this now
PHP код:
CMD:setlevel(playeridparams[])
{
    new 
alevelIDname[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], str[128];
    if(!
IsPlayerAdmin(playerid)) 
    if(
sscanf(params"ui"IDalevel)) return SendClientMessage(playerid, -1"{FF0000}USAGE: {FFFFFF}/SetLevel [Player ID] [Level]");
    if(!
IsPlayerConnected(ID)) return SendClientMessage(playerid, -1"{FF0000}ERROR: {FFFFFF}That player isn't connected.");
    {
        
GetPlayerName(playeridnamesizeof(name));
        
GetPlayerName(IDpnamesizeof(pname));
        
format(strsizeof(str), "{FF0000}[INFO]: {FFFFFF}Administrator {FF0000}%s {FFFFFF}has setted your Admin Level to {FF0000}%i."namealevel);
        
SendClientMessage(ID, -1str);
        
format(strsizeof(str), "{FF0000}[INFO]: {FFFFFF}You made player {FF0000}%s {FFFFFF}Admin Level {FF0000}%i."pnamealevel);
        
SendClientMessage(playerid, -1str);
        
pInfo[ID][Adminlevel] = alevel;
    }
    else 
SendClientMessage(playeridCOLOR_RED"You're not rcon administrator.");
    return 
1;

Reply


Messages In This Thread
Setlevel - by Glossy42O - 08.01.2015, 04:52
Re: Setlevel - by SickAttack - 08.01.2015, 04:57
Re: Setlevel - by Glossy42O - 08.01.2015, 04:58
Re: Setlevel - by astanalol - 08.01.2015, 04:58
Re: Setlevel - by SickAttack - 08.01.2015, 05:01
Re: Setlevel - by Glossy42O - 08.01.2015, 05:08
Re: Setlevel - by astanalol - 08.01.2015, 05:13
Re: Setlevel - by astanalol - 08.01.2015, 05:21
Re: Setlevel - by ahmedkoki - 08.01.2015, 05:53
Re: Setlevel - by Glossy42O - 08.01.2015, 10:54

Forum Jump:


Users browsing this thread: 1 Guest(s)