Help in making /reports command
#1

I don't know how to make /reports command to load the reports done from /report command, help please

pawn Код:
COMMAND:report(playerid,params[])
{
      new str[128], string[128], target, reporter[MAX_PLAYER_NAME], reported[MAX_PLAYER_NAME];
      GetPlayerName(playerid, reporter, MAX_PLAYER_NAME);
      if(sscanf(params, "us[128]", target, str)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /report [playerid] [reason]");
      if(target == playerid) return SendClientMessage(playerid, 0xFF0000AA, "You Cannot Report Yourself!");
      if(!IsPlayerConnected(target) || target == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Player Is Not Connected.");
      GetPlayerName(target, reported, MAX_PLAYER_NAME);
      SendClientMessage(playerid, 0xFFF700FF, "You Report Has Successfully Sent To Online Admins, Thanks For Reporting!");
      foreach(Player, i)
      {
      if(PlayerInfo[i][pAdmin] > 0)
      {
      format(string, sizeof(string), "[Report]: %s (%d) Is Reporting %s (%d) -  Reason: %s.", reporter, playerid, reported, target, str);
      SendClientMessage(i, 0xFFA600AA, string);
      }
      }
      return 1;
}
Reply


Messages In This Thread
Help in making /reports command - by Youssef221 - 05.12.2014, 06:00
Re: Help in making /reports command - by xCrazyMonkey - 05.12.2014, 06:33
Re: Help in making /reports command - by OsteeN - 05.12.2014, 06:40
Re: Help in making /reports command - by Youssef221 - 05.12.2014, 06:43
Re: Help in making /reports command - by Youssef221 - 05.12.2014, 10:04
Re: Help in making /reports command - by Diti1 - 05.12.2014, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)