SA-MP Forums Archive
[DIALOG]Easy Admin Commands list dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [DIALOG]Easy Admin Commands list dialog (/showthread.php?tid=466723)



[DIALOG]Easy Admin Commands list dialog - donhu789 - 29.09.2013

pawn Код:
CMD:level1(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1)
    {
        SendClientMessage(playerid,grey,"    ---=Level 1 V.I.P Commands =---");
        SendClientMessage(playerid,white,"/goto,/getinfo,/weaps,/vr,/ltune,/lhy,/lnos,/lpl,/asay,/ping,/lslowmo,/ltc,/morning,");
        SendClientMessage(playerid,white,"/adminarea,/reports,/richlist,/miniguns,/saveplace,/gotoplace,");
        SendClientMessage(playerid,white,"/saveskin,/useskin,/dontuseskin,/setmytime,/ip,/lconfig");
        SendClientMessage(playerid,white,"/afixcar,/afixbiz,/afixh,/afixall");
        SendClientMessage(playerid,white,"Use # infront of your messages for Private admin chat!");
    } else return SendClientMessage(playerid,red, "ERROR: You must be an administrator to use this command");
    return 1;
}
How i Make Turn To Dialog But can use Large ?


Re: [DIALOG]Easy Admin Commands list dialog - donhu789 - 29.09.2013

hello anyone ?


Re: [DIALOG]Easy Admin Commands list dialog - xganyx - 29.09.2013

pawn Код:
CMD:level1(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1)
    {
        new str[199]
        format(str,sizeof(str),"    ---=Level 1 V.I.P Commands =---");
        strcat(str,"/goto,/getinfo,/weaps,/vr,/ltune,/lhy,/lnos,/lpl,/asay,/ping,/lslowmo,/ltc,/morning,");
        strcat(str,sizeof(str),"/adminarea,/reports,/richlist,/miniguns,/saveplace,/gotoplace,\n");
        strcat(str,"/saveskin,/useskin,/dontuseskin,/setmytime,/ip,/lconfig\n");
        strcat(str,"/afixcar,/afixbiz,/afixh,/afixall\n");
        strcat(str,"Use # infront of your messages for Private admin chat!");
        ShowPlayerDialog(playerid,DIALOG_ID,DIALOG_STYLE_MSGBOX,"Admin command list level 1",str,"Ok","");
    } else return SendClientMessage(playerid,red, "ERROR: You must be an administrator to use this command");
    return 1;
}



Re: [DIALOG]Easy Admin Commands list dialog - donhu789 - 29.09.2013

Hey Are you serious i thought you are scripter this one is usefullman

pawn Код:
CMD:level1(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1)
    {
        new PT[1900];
        strcat(PT, "/goto,/getinfo,/weaps,/vr,/ltune,/lhy,/lnos,/lpl,/asay,/ping,/lslowmo,/ltc,/morning,  \n", sizeof(PT));
        strcat(PT, "/adminarea,/reports,/richlist,/miniguns,/saveplace,/gotoplace,  \n", sizeof(PT));
        strcat(PT, "/saveskin,/useskin,/dontuseskin,/setmytime,/ip,/lconfig   \n", sizeof(PT));
        strcat(PT, "/afixcar,/afixbiz,/afixh,/afixall   \n", sizeof(PT));
        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 to use this command");
    return 1;
}



Re: [DIALOG]Easy Admin Commands list dialog - xganyx - 29.09.2013

Quote:
Originally Posted by xganyx
Посмотреть сообщение
pawn Код:
CMD:level1(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1)
    {
        new str[199]
        format(str,sizeof(str),"    ---=Level 1 V.I.P Commands =---");
        strcat(str,"/goto,/getinfo,/weaps,/vr,/ltune,/lhy,/lnos,/lpl,/asay,/ping,/lslowmo,/ltc,/morning,");
        strcat(str,sizeof(str),"/adminarea,/reports,/richlist,/miniguns,/saveplace,/gotoplace,\n");
        strcat(str,"/saveskin,/useskin,/dontuseskin,/setmytime,/ip,/lconfig\n");
        strcat(str,"/afixcar,/afixbiz,/afixh,/afixall\n");
        strcat(str,"Use # infront of your messages for Private admin chat!");
        ShowPlayerDialog(playerid,DIALOG_ID,DIALOG_STYLE_MSGBOX,"Admin command list level 1",str,"Ok","");
    } else return SendClientMessage(playerid,red, "ERROR: You must be an administrator to use this command");
    return 1;
}
Why this don't work?........


Re: [DIALOG]Easy Admin Commands list dialog - donhu789 - 29.09.2013

is not Right xD not Actuly


Re: [DIALOG]Easy Admin Commands list dialog - DanishHaq - 29.09.2013

Quote:
Originally Posted by xganyx
Посмотреть сообщение
Why this don't work?........
Because you're formatting the first line instead of strcat. That's why his will work properly.


Re: [DIALOG]Easy Admin Commands list dialog - donhu789 - 29.09.2013

Thanks Danish