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

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 ¬_¬
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)