SA-MP Forums Archive
Command /report Help!! - 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: Command /report Help!! (/showthread.php?tid=435996)



Command /report Help!! - ewida - 09.05.2013

Hello Guys im have /report And its Work But im need when I tybe /report open for me Menu And in the menu Example: to Report Someone for DM Or Need To Talk with Admin like NGG! :P Here The Code

pawn Код:
CMD:report(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2 && PlayerInfo[playerid][pAdmin] < 1338)
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "You can't submit reports as an administrator.");
        return 1;
    }
    if(PlayerInfo[playerid][pRMuted] != 0)
    {
        ShowPlayerDialog(playerid,7955,DIALOG_STYLE_MSGBOX,"Report blocked","You are blocked from submitting any reports!\n\nTips when reporting:\n- Report what you need, not who you need.\n- Be specific, report exactly what you need.\n- Do not make false reports.\n- Do not flame admins.\n- Report only for in-game items.\n- For shop orders use the /shoporder command","Close", "");
        return 1;
    }
    if(JustReported[playerid] > 0)
    {
        SendClientMessageEx(playerid, COLOR_GREY, "Wait 25 seconds before sending another report!");
        return 1;
    }

    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GRAD2, "USAGE: /report [text]");

    JustReported[playerid]=25;
    SendReportToQue(playerid, params);
    SendClientMessageEx(playerid, COLOR_YELLOW, "Your report message was sent to the Admins.");
    return 1;
}



Re : Command /report Help!! - Rayan_black - 09.05.2013

You need to use dialogs.


Re: Command /report Help!! - ewida - 09.05.2013

Hmm Can make it for me And I give you Admin in my server??


Re : Command /report Help!! - Rayan_black - 09.05.2013

Well, post here:
https://sampforum.blast.hk/showthread.php?tid=413556


Re: Command /report Help!! - ewida - 09.05.2013

Okay Thanks!


Re: Command /report Help!! - ewida - 09.05.2013

im Cant Post it Help me Please