SA-MP Forums Archive
i need help for report cmd. - 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: i need help for report cmd. (/showthread.php?tid=451966)



i need help for report cmd. - eastern - 19.07.2013

hi . i have zcmd report command but i want make it with dialog like ngg on's can some one help me.


Re: i need help for report cmd. - RALL0 - 19.07.2013

You can start of with defining the dialog, so somewhere on top of your script use
pawn Код:
#define DIALOG_REPORTMENU 1000 //Number 1000 to avoid bugs with other dialogs.

CMD:report(playerid, params[])
{//Now we are going to display the dialog menu
ShowPlayerDialog(playerid, DIALOG_REPORTMENU,DIALOG_STYLE_LIST,"REPORTMENU","Category1\nCategory2\nCategory3","Choose","Cancel");
return 1;
}

//Now for the response under OnDialogResponse
if(dialogid == DIALOG_REPORTMENU)
    {
    if(response)
    {
        switch(listitem)
        {
            case 0:
            //Broadcast here your admin message from the player that reported for category 0.
            //ETC.