Report System HELP
#6

Код:
CMD:ar(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1)
	{
		new string[128], reportid/*, y,m,d,h,mi,s*/;
		if(sscanf(params, "d", reportid)) return SendClientMessageEx(playerid, COLOR_WHITE, "{6347AA}[Error]:{FFFFFF} /ar [reportid]");

		if(reportid < 0 || reportid > 999) { SendClientMessageEx(playerid, COLOR_GREY, "   Report ID not below 0 or above 999!"); return 1; }
		if(Reports[reportid][BeingUsed] == 0)
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   That report ID is not being used!");
			return 1;
		}
		if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   The reporter has disconnected !");
			Reports[reportid][ReportFrom] = 999;
			Reports[reportid][BeingUsed] = 0;
			return 1;
		}
		//AddReportToken(playerid); // Report Tokens
		//getdate(y, m, d);
		//gettime(h, mi, s);
		format(string, sizeof(string), "AdmCmd: %s has accepted the report from %s (ID: %i, RID: %i).", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]),Reports[reportid][ReportFrom],reportid);
		ABroadCast(COLOR_ORANGE, string, 2);
		SendClientMessageEx(Reports[reportid][ReportFrom], 0x00FF0059, "______ .: REPORT ACCEPTED :. ______");
		format(string, sizeof(string), "Admin Name %s", GetPlayerNameEx(playerid));
		SendClientMessageEx(Reports[reportid][ReportFrom], COLOR_WHITE, string);
		format(string, sizeof(string), "Your Name %s", GetPlayerNameEx(Reports[reportid][ReportFrom]));
		SendClientMessageEx(Reports[reportid][ReportFrom], COLOR_WHITE, string);
		//format(string, sizeof(string), "Correct Time&Date: %d/%d/%d %d:%d:%d [day/month/year hour:minute:second] ", d,m,y,h,mi,s);
		//SendClientMessageEx(Reports[reportid][ReportFrom], COLOR_WHITE, string);
		SendClientMessageEx(Reports[reportid][ReportFrom], COLOR_WHITE, "Your report is accepted. use /reply to talk");
		SendClientMessageEx(Reports[reportid][ReportFrom], 0x00FF0059, "___________________________");
		PlayerInfo[playerid][pAcceptReport]++;
		Reports[reportid][ReplyTimerr] = SetTimerEx("ReplyTimer", 50000, 0, "d", reportid);
		Reports[reportid][CheckingReport] = playerid;
		Reports[reportid][BeingUsed] = 0;
		Reports[reportid][TimeToExpire] = 0;
		strmid(Reports[reportid][Report], "None", 0, 4, 4);
	}
	return 1;
}
Reply


Messages In This Thread
Report System HELP - by TranquiliZed - 14.07.2013, 20:08
Re: Report System HELP - by lean1337 - 14.07.2013, 20:20
Re: Report System HELP - by TranquiliZed - 14.07.2013, 21:43
Re: Report System HELP - by TranquiliZed - 15.07.2013, 02:12
Re: Report System HELP - by TranquiliZed - 16.07.2013, 15:05
Re: Report System HELP - by Hazko - 16.07.2013, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)