Am creat un sistem de /report pe dialog si cand ies cu ESC sau dau pe CANCEL din dialog de la /report primesc kick
if(!strcmp(cmdtext, "/report", true))
{
if(IsPlayerConnected(playerid))
{
if(ReportMute[playerid] >= 1) return SCM(playerid, COLOR_WHITE, "Ai mute pe report!");
if(BugReport[playerid] == -1)
SendClientMessage(playerid, COLOR_LIGHTRED, "** Wait 1 minute before another /report.");
ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_LIST,"Report","Raporteaza un jucator.\nAjutor / Probleme.\nSemnaleaza un BUG.","Select","Cancel");
}
return 1;
}
publicOnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){new sendername[MAX_PLAYER_NAME];newstring[256];new giveplayerid;new vehid =GetPlayerVehicleID(playerid);if(dialogid == DIALOG_REPORT){if(response ==1){if(listitem ==0){ShowPlayerDialog(playerid,DIALOG_REPORTJUCATOR,DIALOG_STYLE_INPUT,"Raporteaza un jucator:","Spuneti-ne cateva detalii despre jucator si numele acestuia.","Select","Cancel");return1;}if(listitem ==1){ShowPlayerDialog(playerid,DIALOG_AJUTOR,DIALOG_STYLE_INPUT,"Ajutor / probleme:","Ce problema aveti?","Select","Cancel");return1;}if(listitem ==2){ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"Raporteaza un BUG:","Despre ce bug este vorba?","Select","Cancel");return1;}}}if(dialogid == DIALOG_REPORTJUCATOR){if(response ==1){SendClientMessage(playerid,COLOR_WHITE,"SERVER: Jucatorul a fost raportat , iar in scurt timp un administrator se va ocupa de acesta.");
format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} a raportat un jucator! : {7a0f27}({FFFFFF} %s {7a0f27})",Nume(playerid),inputtext);ABroadCast(COLOR_1BLUE,string,1);SetPVarInt(playerid,"Report",1);}}if(dialogid == DIALOG_AJUTOR){if(response ==1){SendClientMessage(playerid,COLOR_WHITE,"SERVER: Problema dvs. a fost trimisa catre un administrator.");
format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} are o problema! : {7a0f27}({FFFFFF} %s {7a0f27})",Nume(playerid),inputtext);ABroadCast(COLOR_1BLUE,string,1);SetPVarInt(playerid,"Report",1);}}if(dialogid == DIALOG_BUG){if(response ==1){SendClientMessage(playerid,COLOR_WHITE,"SERVER: BUG-ul gasit de dvs. a fost trimis catre un administrator pentru analizare! Iti multumim!");
format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} a gasit un bug! : {7a0f27}({FFFFFF} %s {7a0f27})",Nume(playerid),inputtext);ABroadCast(COLOR_1BLUE,string,1);SetPVarInt(playerid,"Report",1);}elsereturn1;}
Question
Versace
Am creat un sistem de /report pe dialog si cand ies cu ESC sau dau pe CANCEL din dialog de la /report primesc kick
if(!strcmp(cmdtext, "/report", true)) { if(IsPlayerConnected(playerid)) { if(ReportMute[playerid] >= 1) return SCM(playerid, COLOR_WHITE, "Ai mute pe report!"); if(BugReport[playerid] == -1) SendClientMessage(playerid, COLOR_LIGHTRED, "** Wait 1 minute before another /report."); ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_LIST,"Report","Raporteaza un jucator.\nAjutor / Probleme.\nSemnaleaza un BUG.","Select","Cancel"); } return 1; }
Edited by w1zzan"Când viaţa e de căcat, nu o pune pe note, pune-o pe litere. Dacă avem noroc suntem magici, o singură dată. Respirăm intens, şi înconjurăm pământul în câteva secunde. O parte ascunsă, a creierului nostru, ne îndeamnă să facem lucruri, îngrozitoare. În fiecare dintre noi, este izolat un comportament, de psihopat."
26 answers to this question
Recommended Posts