06.08.2013, 16:55
Hello i was bored and decided to make this to show people how to make Report Trash With a reason
Example:
Michael Freeman has trashed Your Report Reason:Report what do you need
Its very simple to make this trash with the Reason
All what you need to do is
1)Go to Gamemode
2)Go to Commands Place where you post all the commands and stuff(i think you know it)
3)Cop this Code and Write it down
4)Restart Your Server
Its Simple hope it learned some people [Need some reps]
Have a nice day
Example:
Michael Freeman has trashed Your Report Reason:Report what do you need
Its very simple to make this trash with the Reason
All what you need to do is
1)Go to Gamemode
2)Go to Commands Place where you post all the commands and stuff(i think you know it)
3)Cop this Code and Write it down
CMD:dr(playerid, params[])If you want to change the command you can change the dr
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
new string[128], reportid, reason[64];
if(sscanf(params, "ds[64]", reportid, reason)) return SendClientMessageEx(playerid, COLOR_WHITE,"USAGE: /dr [reportid] [reason]");
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;
}
format(string, sizeof(string), "AdmCmd: %s has denied the report from %s, Reason: %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]), reason);
ABroadCast(COLOR_ORANGE, string, 2);
format(string, sizeof(string), "%s has denied your report. Reason: %s, It will not be reviewed.", GetPlayerNameEx(playerid), reason);
SendClientMessageEx(Reports[reportid][ReportFrom], COLOR_WHITE, string);
PlayerInfo[playerid][pTrashReport]++;
Reports[reportid][ReportFrom] = 999;
Reports[reportid][BeingUsed] = 0;
Reports[reportid][TimeToExpire] = 0;
strmid(Reports[reportid][Report], "None", 0, 4, 4);
}
return 1;
}
4)Restart Your Server
Its Simple hope it learned some people [Need some reps]
Have a nice day