SA-MP Forums Archive
/Report command - 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 command (/showthread.php?tid=288699)



/Report command - mike_1 - 08.10.2011

hey guys can any1 tell me how to make the /report command


Re: /Report command - Jafet_Macario - 08.10.2011

pawn Код:
YCMD:report(playerid, o[], help)
{
    if(help) return SendClientMessage(playerid, -1,"Report command details");
    new name[MAX_PLAYER_NAME], str[128];
    if(isnull(o)) return SendClientMessage(playerid, -1,"Syntax Error: /report [Description]");
    GetPlayerName(playerid, name, sizeof(name));
    format(str,sizeof(str),"|- %s has made an report. Description: %s -|", name, o);
    SendClientMessageToAll(-1, str);
    return true;
}