[Tutorial] Tutorial about how to make Report trash with command
#1

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
CMD:dr(playerid, params[])
{
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;
}
If you want to change the command you can change the dr
4)Restart Your Server
Its Simple hope it learned some people [Need some reps]
Have a nice day
Reply
#2

Quote:
Originally Posted by Loranzo_De_Andreas
View Post
how to make
Quote:
Originally Posted by Loranzo_De_Andreas
View Post
Copy this Code and Write it down
'Nuff said.

Quote:
Originally Posted by Loranzo_De_Andreas
View Post
[Need some reps]
No. Be lucky if you don't get neg rep for this horrible 'tutorial'.
Reply
#3

1. You didn't explain anything
2. Use [PAWN][/ PAWN]
3. How do you know, that all players have the same login/register system like you? I mean this
pawn Code:
if(PlayerInfo[playerid][pAdmin] >= 2)
4.
Quote:

[Need some reps]

Don't ask for reps!
Reply
#4

Surely not repping you:
1-Asked for reps.
2-This ain't a tutorial, it's some piece of shitty code.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)