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



/report help - UfsDev - 08.03.2014

Hello I Wanna /Report [ID] [Reason] Command

When Any Admin Wanna Check He Should Type /Reports Gimme Me Link Plzzzzzzzzzzzzzz Help Me u guyzz are best


Re: /report help - Dipto - 08.03.2014

Код:
CMD:report(playerid,params[])
{
    new text,pName[MAX_PLAYER_NAME],string[128];
    if(sscanf(params, "s[125]", text)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /report [Text]");
    else
    {
        PlayerInfo[playerid][pReportSent] = 1;
        SendClientMessage(playerid,COLOR_YELLOW,"Your Report Has Been Sent Succesfully...");
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        format(string,128,"%s:[%d]:%s",pName,playerid,text);
        SendClientMessage(playerid,COLOR_ORANGE,string);
    }
    return 1;
}
try this ,, z_cmd need