Report command not working
#1

Hello, I've been having some trouble with this command on my server can you help me, I can't seem to find error. I keep getting Unknown command error.
Код:
CMD:report(playerid,params[]) // CMD for report to admin
{
	if(PlayerInfo[playerid][pReportMuted] == 1)
	{
		SendClientMessage(playerid, COLOR_RED, "You are currently muted from using /report");
		return 0;
	}
	else
	{
		new sendername[MAX_PLAYER_NAME], string[128];
		GetPlayerName(playerid, sendername, sizeof(sendername));
		sendername[strfind(sendername,"_")] = ' ';
		if(isnull(params)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /report [text]");
    	format(string, sizeof(string), "Report From %s: %s", sendername, params);
		ABroadCast(COLOR_RED,string,1);
	}
	return 1;
}
Reply


Messages In This Thread
Report command not working - by Marin_Franolic - 02.07.2013, 14:17
Re: Report command not working - by SkippyBall - 02.07.2013, 14:27
Re: Report command not working - by Marin_Franolic - 02.07.2013, 14:28
Re: Report command not working - by SkippyBall - 02.07.2013, 14:29
Re: Report command not working - by Marin_Franolic - 02.07.2013, 14:33
Re: Report command not working - by SkippyBall - 02.07.2013, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)