Makeadmin help
#6

PHP код:
CMD:makeadmin(playeridparams[]) {
    new
        
para1,
        
level;
    if(
sscanf(params"ud"para1level))
        return 
SendClientMessage(playeridCOLOR_GRAD2"{00E6FF}UTILIZARE:{FFFFFF} /makeadmin [IDJucator/ParteDinNume] [level(1-1338)]");
    else if(
pInfo[playerid][pAdmin] < || !IsPlayerAdmin(playerid))
        return 
SendClientMessage(playeridCOLOR_GRAD1"{09F7DF}DENIED: {ffffff}No access");
    else if(!
IsPlayerConnected(para1))
        return 
1;
    
GetPlayerName(para1giveplayersizeof(giveplayer));
    
GetPlayerName(playeridsendernamesizeof(sendername));
    
PlayerInfo[para1][pAdmin] = level;
    
printf("AdmWarning: %s has promoted %s to a level %d admin."sendernamegiveplayerlevel);
    
format(stringsizeof(string), "   You have been promoted to a level %d admin by %s"levelsendername);
    
SendClientMessage(para1COLOR_LIGHTBLUEstring);
    
format(string128"{D11515}[AdmWarning]: {FF9203}%s {FFFFFF}has set {FF9203}%s {FFFFFF}to a level {FF9203}%d {FFFFFF}admin."sendername,giveplayer,level);
    
ABroadCast(COLOR_YELLOW,string,5);
    return 
1;

Try this. (needs sscanf and zcmd)
Reply


Messages In This Thread
Makeadmin help - by JXF - 22.05.2016, 12:51
Re: Makeadmin help - by MBilal - 22.05.2016, 12:56
Re: Makeadmin help - by iKevin - 22.05.2016, 12:58
Re: Makeadmin help - by JXF - 22.05.2016, 13:43
Re: Makeadmin help - by MBilal - 22.05.2016, 13:59
Re: Makeadmin help - by J0sh... - 22.05.2016, 14:18
Re: Makeadmin help - by Konstantinos - 22.05.2016, 14:18
Re: Makeadmin help - by JXF - 22.05.2016, 14:32
Re: Makeadmin help - by CSLangdale - 22.05.2016, 16:28
Re: Makeadmin help - by Konstantinos - 22.05.2016, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)