14.07.2013, 20:20
You are not making a check when executing the command to make sure the player has a report pending or w.e
I hope you understand what I mean.
pawn Код:
CMD:ar(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
new id, string[126];
if(sscanf(params, "u", id))
return SendClientMessage(playerid, -1, "Syntax: /ar [player id]");
if(somepvarthatchecks if the player has sent a report ectera == 1)
{
DeletePVar(id, "ReportPending");
DeletePVar(id, "ReportText");
DeletePVar(id, "ReportTime");
format(string, sizeof(string), "%s has accepted the report from %s (ID %d)", GetName(playerid), GetName(id), id);
SendToAdmins(0xFFA200FF, string);
format(string, sizeof(string), "%s has accepted your report. Please wait for the the admin to resolve the issue.", GetName(playerid));
SendClientMessage(id, COLOR_YELLOW, string);
}
return 1;
else
{
SCM(playerid, green, "this player dosetn ahve a report");
}
}