Jump to content
  • 0

Kick dialog


Versace

Question

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;
	}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	new sendername[MAX_PLAYER_NAME];
	new string[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");
		        return 1;
		    }
		    if(listitem == 1)
		    {
		        ShowPlayerDialog(playerid,DIALOG_AJUTOR,DIALOG_STYLE_INPUT,"Ajutor / probleme:","Ce problema aveti?","Select","Cancel");
		        return 1;
		    }
		    if(listitem == 2)
		    {
		        ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"Raporteaza un BUG:","Despre ce bug este vorba?","Select","Cancel");
		        return 1;
		    }
   }
	}
	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);
		}
		else return 1;
	}

 

Edited by w1zzan
Link to comment
Share on other sites

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.