I have problem with cmd /report,when I write /report id reason on same player,don't show me as the player has already been reported.
HTML Code:
CMD:report(playerid, params[])
{
if(CosminInfo[playerid][Level] >= 3 && CosminInfo[playerid][King] < 1) SendError2(playerid, "{E4EDF4}You can't make a report because you're an Admin", "{E4EDF4}Nu poti folosi comanda deoarece esti Admin");
{
new Player, Reason[128], LittleCounter[10], Str[2500];
//----------------------------------------------------------------------
if((gettime() - reTimer[playerid]) < 10) return SendError2(playerid, "{E4EDF4}You can use this command only once at every 10 seconds", "{E4EDF4}Poti folosi comanda o data la 10 secunde");
if(sscanf(params, "us[128]", Player, Reason)) return SendUsage(playerid, "/Report [ID] [Reason]");
if(Player == INVALID_PLAYER_ID) return SendError2(playerid, "{E4EDF4}Player is not connected", "{E4EDF4}Jucatorul nu este conectat");
if(Player == playerid && CosminInfo[playerid][AccRcon] == 0 && CosminInfo[playerid][ElPatron] < 1 && CosminInfo[playerid][King] < 1) return SendError2(playerid, "{E4EDF4}You can't report yourself", "{E4EDF4}Nu te poti raporta");
if(CosminInfo[playerid][Level] >= -1 && CosminInfo[Player][Level]) return SendError2(playerid, "{E4EDF4}You cannot report this administrator", "{E4EDF4}Acest jucator poate fi raportat doar pe forum: www.Olds.Ro");
if(CosminInfo[Player][ReportedBy] != -1)
{
format(Str, sizeof(Str), "{FFFF00}/Reports: {F81414}%s(%d) {FF8000}tried to report {F81414}%s(%d){FF8000}. Reason: {F81414}%s, {FF8000}but it was already reported!", PlayerName(playerid), playerid, PlayerName(Player), Player, Reason);
//------------------------------------------------------------------
format(Str, sizeof(Str), "{00FF40}/REPORT: %s(%d) has been reported to the online administrators! (Reason: %s)", PlayerName(Player), Player, Reason);
//------------------------------------------------------------------
return MessageToAdmins(COLOR_YELLOW, Str);
}
format(ReportStr, sizeof(ReportStr), "%s\n{00FF40}#{E4EDF4}%d {FF8000}%s {E4EDF4}reported {F81414}%s {E4EDF4}: %s", ReportStr, Player, PlayerName(playerid), PlayerName(Player), Reason);
//----------------------------------------------------------------------
format(Str, sizeof(Str), "{00FF40}/REPORT: %s(%d) has been reported to the online administrators! (Reason: %s)", PlayerName(Player), Player, Reason);
//----------------------------------------------------------------------
format(Str, sizeof(Str), "{F81414}/Reports: {00FFFF}%s(%d) {00FF40}reported {00FFFF}%s(%d){00FF40}. Reason: {00FFFF}%s", PlayerName(playerid), playerid, PlayerName(Player), Player, Reason); MessageToAdmins(COLOR_YELLOW, Str);
//----------------------------------------------------------------------
ServerInfo[ServerReports]++; CosminInfo[Player][ReportedBy] = playerid;
//----------------------------------------------------------------------
format(LittleCounter, 10, "%i", ServerInfo[ServerReports]); TextDrawSetString(ReportInfo[1], LittleCounter); foreach(new i: Player) if(CosminInfo[i][Level] >= 3) TextDrawShowForPlayer(i, ReportInfo[0]), TextDrawShowForPlayer(i, ReportInfo[1]);
//----------------------------------------------------------------------
reTimer[playerid] = gettime();
}
return 1;
}