[ZCMD]About Dialog Level
#4

pawn Код:
CMD:level1(playerid,params[])
{
    #pragma unused params
    new PT[1900];
    if(PlayerInfo[playerid][Level] > 0)
    {
        if(PlayerInfo[playerid][Level] >= 1)
        {
            strcat(PT, "/goto,/getinfo,/weaps,/vr,/ltune,/lhy,/lnos,/lpl,/asay,/ping,/lslowmo,/ltc,/morning,  \n", sizeof(PT));
        }
        else if(PlayerInfo[playerid][Level] >= 2)
        {
            strcat(PT, "/adminarea,/reports,/richlist,/miniguns,/saveplace,/gotoplace,  \n", sizeof(PT));
        }
        else if(PlayerInfo[playerid][Level] >= 3)
        {
            strcat(PT, "/saveskin,/useskin,/dontuseskin,/ip,/lconfig   \n", sizeof(PT));
        }
        else if(PlayerInfo[playerid][Level] >= 4)
        {
            strcat(PT, "/afixcar,/afixbiz,/afixh,/afixall   \n", sizeof(PT));
        }
        if(PlayerInfo[playerid][Level] >= 1)
        {
            strcat(PT, "Use # infront of your messages for Private admin chat!   \n", sizeof(PT));
        }
        ShowPlayerDialog(playerid, 90, DIALOG_STYLE_MSGBOX, "Senior Administrator Commands", PT, "Ok", "Cancel");
    }
    else
    {
        return SendClientMessage(playerid,red, "ERROR: You must be an administrator level 1 to use this command");
    }
    return 1;
}
Try this.
Reply


Messages In This Thread
[ZCMD]About Dialog Level - by donhu789 - 19.10.2013, 04:11
Re: [ZCMD]About Dialog Level - by donhu789 - 19.10.2013, 04:17
Re: [ZCMD]About Dialog Level - by donhu789 - 19.10.2013, 08:46
Re: [ZCMD]About Dialog Level - by XcorelloX - 19.10.2013, 09:10
Re: [ZCMD]About Dialog Level - by donhu789 - 19.10.2013, 09:29

Forum Jump:


Users browsing this thread: 1 Guest(s)