admin commands
#4

try somethig like this

pawn Код:
#define admincmd 123

CMD:admcmds(playerid)
{
    new pt[700];
    if(PlayerInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, 0xFF6262FF, "ERROR: you are not Admin");
   
    if(PlayerInfo[playerid][AdminLevel] == 1)
    {
         strcat(pt, "/spec /(on/off)duty /reports /mytime /asay /wanteds /jailed /frozen /muted /showguns /morning /miniguns\n", sizeof(pt));
         strcat(pt, "/eject /warn /slap /clearchat   \n", sizeof(pt));
    }
    if(PlayerInfo[playerid][AdminLevel] == 2)
    {
         strcat(pt, "/eject /warn /slap /clearchat   \n", sizeof(pt));
    }
    /*
        Another level's
    */

    ShowPlayerDialog(playerid, admincmd, DIALOG_STYLE_MSGBOX, "Helper", pt, "Ok", #);
    return 1;
}
i just try help, sorry if i fail, i'm not a very good scripter
Reply


Messages In This Thread
admin commands - by sarab_singh - 09.08.2013, 14:32
Re: admin commands - by verlaj - 09.08.2013, 15:08
Re: admin commands - by sarab_singh - 09.08.2013, 15:12
Re: admin commands - by PT - 09.08.2013, 16:04
Re: admin commands - by sarab_singh - 09.08.2013, 16:17
Re: admin commands - by PT - 09.08.2013, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)