/reports
#3

pawn Код:
CMD:report(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new string[128];
        new
        reason;
        if(sscanf(params, "s", reason)) { return SendClientMessage(playerid, CYAN, "[Usage]: /report [text]. Use this to report for admin assistance, or report a hacker/rulebreaker."); }
        {
            format(string, sizeof(string), "REPORT: %s [ID:%i]: %s", ReturnPlayerName(playerid), playerid, reason);
            ShowForAdmin(ORANGE, string);
            SetPVarInt(playerid, "reported", 1);
            SendClientMessage(playerid, GREEN, "You report has been delivered. Don't report again until an admin accepts your report.");
            Report[playerid] = reason;
        }
    }
    return 1;
}
I'm sure my mistake is the "Report[playerid]", I just don't know what I should put there.
Reply


Messages In This Thread
/reports - by [RVRP]Tyler - 07.08.2010, 03:09
Re: /reports - by Calgon - 07.08.2010, 03:10
Re: /reports - by [RVRP]Tyler - 07.08.2010, 03:35
Re: /reports - by Calgon - 07.08.2010, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)