How to make /ar and /tr commands for my report system?
#1

this is my report command
pawn Код:
CMD:report(playerid, params[])
{
    new string[128];
    if(!isnull(params))
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Your report was sent to the Admin Teams:");
        format(string, sizeof(string), "%s", params); // Proof to the reporter, that the command worked.
        SendClientMessage(playerid, COLOR_YELLOW, string);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                format(string, sizeof(string), "Report from %s[%d]: %s", RPName(playerid), playerid, params);
                SendClientMessage(i, COLOR_ORANGE, string); // Send's the format to the online Rcon'ly Logged in Admins.
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Report [Text]"); // Show's the player the Usage.
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)