Warnings Get me Mad All Times -__-
#5

this will work fine, compiled and tested it
pawn Код:
CMD:report(playerid,params[])
{
new reported;
new tmp[256];
if(isnull(params)) return
SendClientMessage(playerid, -1, "Usage: /report [PlayerID] [Reason]") &&
SendClientMessage(playerid, orange, "Attention: Not report anyone without Reason!");
if(IsPlayerConnected(reported) && reported != INVALID_PLAYER_ID){
SendClientMessage(playerid,red,"ERROR: You cannot report this Administrator"); }
if(playerid == reported) return SendClientMessage(playerid , red, "ERROR: You Cannot report Yourself");
if(strlen(params) > 7) {
new reportedname[MAX_PLAYER_NAME], reporter[MAX_PLAYER_NAME], str[128];
new hour, minute, second;
gettime(hour,minute, second);
GetPlayerName(reported, reportedname, sizeof(reportedname));
GetPlayerName(playerid, reporter, sizeof(reporter));
format(str, sizeof(str), "REPORT: %s (Id:%d) Reported %s(Id:%d) Reason: %s |Time: %d : %d : %d|", reporter,playerid,reportedname,reported,params[strlen(tmp)+1], hour,minute,second);
MessageToAdmins(COLOR_WHITE,str);
SaveIn("ReportLog",str);
format(str, sizeof(str), "(%d : %d : %d): %s(Id:%d) Reported %s(Id:%d) Reason: %s", hour,minute,second, reporter,playerid, reportedname, reported, params[strlen(tmp)+1]);
return SendClientMessage(playerid,yellow, "|- Your report has been sent to Online Administrators and saved in File! -|");
}
return true;
}
Reply


Messages In This Thread
Warnings Get me Mad All Times -__- - by Windrush - 08.10.2012, 13:34
Re: Warnings Get me Mad All Times -__- - by M3mPHi$_S3 - 08.10.2012, 13:56
Re: Warnings Get me Mad All Times -__- - by Windrush - 08.10.2012, 14:07
Re: Warnings Get me Mad All Times -__- - by M3mPHi$_S3 - 08.10.2012, 14:25
Re: Warnings Get me Mad All Times -__- - by XtremeR - 08.10.2012, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)