Makeadmin with security cod
#1

Код:
CMD:makeadmin(playerid, params[]) 
{ 
    if(PlayerInfo[playerid][pAdmin] >= 7) 
    { 
        new id, string[128], level; 
        if(sscanf(params, "dd", id, level)) return SendClientMessage(playerid, COLOR_RED, "SERVER: /makeadmin [ID]        [LEVEL]"); 
        format(string, sizeof(string), "You promoted to %d admin level.", level); 
        ShowPlayerDialog(id,DIALOG_ADMINBOX,DIALOG_STYLE_MSGBOX,"You are an admin",string,"Ok",""); 
        //SendClientMessage(id, COLOR_BLUE, string); 
        PlayerInfo[id][pAdmin] = level; 
    } 
    else return SendClientMessage(playerid, COLOR_BLUE, "You don't have acces to that command."); 
    return 1; 
}
This is my CMD make admin..but i want to make in
Код:
format(string, sizeof(string), "You promoted to %d admin level.", level);
who set admin to player...and also i want to if is posible to give him secure cod and everytime he log in to must writte in some box that security code to play
Reply


Messages In This Thread
Makeadmin with security cod [ solved] - by Deny1 - 26.01.2016, 22:54
Re: Makeadmin with security cod - by Mikeydoo - 26.01.2016, 23:17
Re: Makeadmin with security cod - by itsCody - 26.01.2016, 23:30
Re: Makeadmin with security cod - by TwinkiDaBoss - 27.01.2016, 00:34
Re: Makeadmin with security cod - by itsCody - 27.01.2016, 01:02
Re: Makeadmin with security cod - by Deny1 - 27.01.2016, 15:29
Re: Makeadmin with security cod - by Deny1 - 27.01.2016, 15:42
Re: Makeadmin with security cod - by Deny1 - 27.01.2016, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)