[Tutorial] Report System. [Not an Edit Like LukeStephen's.]
#8

Quote:
Originally Posted by Windows32
View Post
Not to hijack the thread, but look how easier it is to make a /report command:
pawn Code:
CMD:report(playerid, params[])
{
    new string[128], reason[128], reportid;
    if(sscanf(params, "is", reportid, reason)) return SendClientMessage(playerid, COLOR_RED, "|- [Error] /report [id] [text] -|");
    format(string, sizeof(string), "REPORT: Player %s(%d) has reported %s(%d) for: %s", GetName(playerid), playerid, GetName(reportid), reportid, reason);
    SendMessageToAdmins(COLOR_YELLOW, string);

    SendClientMessage(playerid, COLOR_YELLOW, "Your report has been sent to all online Administrators");
    return 1;
}
P.S ^ is a proper /report command, yours is more of an "/assistance" command.

EDIT: Nevermind, I forgot I used a stock ¬_¬
Your first post, I don't use this /report, I just gave this report to people who need a BASIC report. Other's who just want to learn how to make a command like this would copy+paste this, and edit it to their enum PlayerInfo, or however they have it. They could also make a "SendAdminMessage" if they wanted. And the for(new i=0; i<MAX_PLAYERS>; i++), I use foreach(Player, i), but other people might not, and they might use that. I just used the basic "a_samp" function's, zcmd, and my DubColors.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)