02.07.2014, 14:08
Try this one
Код:
COMMAND:report(playerid, params[])
{
new
pplayerid,string[1000],reason[100];
if(sscanf(params, "ds[100]", pplayerid,reason)) return SCM(playerid, COLOR_RED, ""COL_CYAN"Info: "COL_WHITE"/Report (Playerid) (Reason)");
if(pplayerid == IPI) return SCM(playerid, -1, ""COL_RED"Error: "COL_WHITE"Wrong Playerid.");
format(string,sizeof(string),""COL_BLUE"(REPORT): "COL_WHITE" \"%s (%d)\" has reported against \"%s (%d)\". (Reason: %s)",GetName(playerid),playerid,GetName(pplayerid),pplayerid,reason);
SendAdminMessage(string);
SCM(playerid, -1, ""COL_GREEN"Report successfully sended, please wait for the admins to take action.");
return 1;
}

