Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_REPORT+1: {
- if(!response) return ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
- new type = GetPVarInt(playerid, "Selected"), id = strval(inputtext);
- if(type != 4) {
- if(sscanf(inputtext, "u", id)) {
- ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
- SCM(playerid, COLOR_GRAD3, "ID Invalid!");
- return 1;
- }
- if(id == playerid) {
- ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
- SendClientMessage(playerid, COLOR_GRAD4, "Nu te poti adauga pe tine in lista!");
- return 1;
- }
- if(!IsPlayerConnected(id)) {
- ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_LIST, "Report", "Raporteaza DM\nRaporteaza un codat\nIntrebari despre donatii\nSunt blocat\nAlta problema", "Select", "Close");
- SendClientMessage(playerid, COLOR_GRAD4, "Acel player nu este online!");
- return 1;
- }
- }
- switch(type) {
- case 0: {
- format(string, sizeof(string), "%s (%d) l-a raportat pe %s (%d) pentru DM.", GetName(playerid), playerid, GetName(id), id);
- SendAdminMessage(0xC9161FFF, string, 1);
- SetPVarInt(id, "Reported", 1);
- SetPVarInt(id, "ReportType", 1);
- SetPVarString(id, "ReportedBy", GetName(playerid));
- SetPVarInt(id, "ReportScore", GetPVarInt(id, "ReportScore")+1);
- }
- case 1: {
- format(string, sizeof(string), "%s (%d) l-a raportat pe %s (%d) pentru cheats.", GetName(playerid), playerid, GetName(id), id);
- SendAdminMessage(0xC9161FFF, string, 1);
- SetPVarInt(id, "Reported", 1);
- SetPVarInt(id, "ReportType", 2);
- SetPVarString(id, "ReportedBy", GetName(playerid));
- SetPVarInt(id, "ReportScore", GetPVarInt(id, "ReportScore")+1);
- }
- case 4: {
- if(CuvinteCheie(inputtext)) {
- new time = 2;
- PlayerInfo[playerid][pReportTime] += time*60;
- Update(playerid, pReportTimex);
- format(string, sizeof(string), "Ai primit mute pe /report pentru %d minute! Motiv: Report aiurea.", time);
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "AdmCmd: %s a primit mute %d minute pe /report de la AdmBot, motiv: Report aiurea.", GetName(playerid), time);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- return 1;
- }
- else {
- format(string, sizeof(string), "Report de la %s (ID: %d, lvl: %d): %s.", GetName(playerid), playerid, PlayerInfo[playerid][pLevel], inputtext);
- SendAdminMessage(0xC9161FFF, string, 1);
- SetPVarInt(playerid, "Reported", 1);
- SetPVarInt(playerid, "ReportType", 4);
- SetPVarString(playerid, "ReportText", inputtext);
- }
- }
- }
- if(ReportTimer[playerid] != 0) {
- KillTimer(ReportTimer[playerid]);
- ReportTimer[playerid] = 0;
- }
- PlayerInfo[playerid][pReportTime] = 180;
- Ajutor[playerid] = 1;
- ReportTimer[playerid] = SetTimerEx("CheckReport", 300000, 0, "%d", playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "Reportul tau a fost trimis adminilor.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement