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

  • 0
Acum 27 minute, w1zzan a spus:

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;
	}

 

incearca asa ai pus gresit niste  {}

    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;
    }

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0
35 minutes ago, Geani said:

incearca asa ai pus gresit niste  {}

    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;
    }

la fel

Link to comment
Share on other sites

  • 0
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)
		{
		    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)
	    {
	    	return 1;
	    }
	    else 
	    {
		    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)
	    {
	    	return 1;
	    }
	    else 
	    {
		    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);
			}
		
		}
	}

Acest cod trebuie sa iti mearga, incearca-l

Link to comment
Share on other sites

  • 0
3 minutes ago, KenZ0R12341 said:

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)
		{
		    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)
	    {
	    	return 1;
	    }
	    else 
	    {
		    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)
	    {
	    	return 1;
	    }
	    else 
	    {
		    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);
			}
		
		}
	}

Acest cod trebuie sa iti mearga, incearca-l

la fel,primesc kick.

C:\Users\Florin\Desktop\New folder\Project\gamemodes\Braila.pwn(20064) : warning 203: symbol is never used: "giveplayerid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:          13636 bytes
Code size:          2763220 bytes
Data size:          3731444 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 6524684 bytes

1 Warning.

 

Edited by w1zzan
a
Link to comment
Share on other sites

  • 0
  • 0
Just now, KenZ0R12341 said:

Iti apare macar dialogul sau cand primesti kick?

apare dialogul

 

C:\Users\Florin\Desktop\New folder\Project\gamemodes\Braila.pwn(20064) : warning 203: symbol is never used: "giveplayerid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:          13636 bytes
Code size:          2763220 bytes
Data size:          3731444 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 6524684 bytes

1 Warning.

 

Link to comment
Share on other sites

  • 0
  • 0
Link to comment
Share on other sites

  • 0
Chiar acum, w1zzan a spus:

Nu la selectii,dau pe selectie trimtie report dar cand dau ''cance'' sau 'ESC sa inchid dialogul fara sa dau report imi da kick

Nu inteleg unde dai esc deci si daca dai sa zicem pe o selectie si dai esc iti da kick? ca sa stiu 

Link to comment
Share on other sites

  • 0
Just now, KenZ0R12341 said:

Nu inteleg unde dai esc deci si daca dai sa zicem pe o selectie si dai esc iti da kick? ca sa stiu 

Nu,fara sa selectez ceva dau ESC sa zicem ca am gresit sau dau CANCEL cand sunt cele 3 selectii fara sa selectez si primesc KICK.

 

Link to comment
Share on other sites

  • 0
Acum 9 minute, w1zzan a spus:

comanda o ai mai sus.

incearca sa rescrii din nou comanda la 

DIALOG_REPORT

si adaugale pe toate in el de exemplu

if(listitem == 0)
if(listitem == 0)
if(listitem == 0)

 

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0
Link to comment
Share on other sites

  • 0
Chiar acum, w1zzan a spus:

la fel

if(

 

Chiar acum, w1zzan a spus:

incearca sa rescrii din nou comanda la 


DIALOG_REPORT

si adaugale pe toate in el de exemplu

listitem == 0)
if(listitem == 1)
if(listitem == 2)
if(listitem == 3)
if(listitem == 4)
if(listitem == 5)
si tot asa si la report sa fie la cateegotii cum le-ai numerotat tu

am probleme la net si sa pus alt ceva

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0
5 minutes ago, Geani said:

if(

 

listitem == 0)
if(listitem == 1)
if(listitem == 2)
if(listitem == 3)
if(listitem == 4)
if(listitem == 5)
si tot asa si la report sa fie la cateegotii cum le-ai numerotat tu

am probleme la net si sa pus alt ceva

la fel...

Link to comment
Share on other sites

  • 0

In loc de dialog_report cum ai tu acolo la ondialogresponse ui urmatorul cod:

	if(dialogid == DIALOG_REPORT)
	{
		if(!response)
		{
			return 1;
		}
		else
		{
		    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;
		    }
   		}
	}

Trebuie sa mearga

Edited by KenZ0R12341
Link to comment
Share on other sites

  • 0

Incearca codul acesta:

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;
		    }
		}
		else { SendClientMessage(playerid, -1, "Ai anulat reportul."); }
   
  }

Daca nici asa nu merge, da comanda kick si dialogul de la aceasta.

Sistemul de kick il ai facut intr-un filterscript?

Sau ai doua dialoguri definite cu aceeasi valoare?

Edited by Джо

 

 

Link to comment
Share on other sites

  • 0
Acum 6 minute, KenZ0R12341 a spus:

In loc de dialog_report cum ai tu acolo la ondialogresponse ui urmatorul cod:


	if(dialogid == DIALOG_REPORT)
	{
		if(!response)
		{
			return 1;
		}
		else
		{
		    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;
		    }
   		}
	}

Trebuie sa mearga

la asta mam referit si eu sa faca dar nu stiu daca a incercat

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0
2 minutes ago, Джо said:

Incearca codul acesta:


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;
		    }
		}
		else { SendClientMessage(playerid, -1, "Ai anulat reportul."); }
   
  }

Daca nici asa nu merge, da comanda kick si dialogul de la aceasta.

Sistemul de kick il ai facut intr-un filterscript?

Fa fel.///

//----------------------------------[Kick]------------------------------------------------
   if(strcmp(cmd, "/kick", true) == 0)
 {
     if(IsPlayerConnected(playerid))
     {
      tmp = strtok(cmdtext, idx);
   if(!strlen(tmp))
   {
    SendClientMessage(playerid, COLOR_GRAD2, "Tasteaza: /kick [IDJucator/ParteDinNume] [motiv]");
    return 1;
   }
   giveplayerid = ReturnUser(tmp);
   if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 3)
   {
    if(IsPlayerConnected(giveplayerid))
    {
        if(giveplayerid != INVALID_PLAYER_ID)
        {
        if (PlayerInfo[giveplayerid][pAdmin] > 1)
     {
      SendClientMessage(playerid, COLOR_GRAD1, "You cannot kick the member of staff!.");
      return 1;
     }
         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
      GetPlayerName(playerid, sendername, sizeof(sendername));
      new length = strlen(cmdtext);
      while ((idx < length) && (cmdtext[idx] <= ' '))
      {
       idx++;
      }
      new offset = idx;
      new result[64];
      while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
      {
       result[idx - offset] = cmdtext[idx];
       idx++;
      }
      result[idx - offset] = EOS;
      if(!strlen(result))
      {
       SendClientMessage(playerid, COLOR_GRAD2, "Tasteaza: /kick [IDJucator/ParteDinNume] [motiv]");
       return 1;
      }
      new year, month,day;
      getdate(year, month, day);
      format(string, sizeof(string), "[Staff]: %s was kicked by %s,reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
      KickLog(string);
	  format(string, sizeof(string), "{FFFFFF}Junimea: {3399FF}%s {FFFFFF}was kicked by {3399FF}%s{FFFFFF}, reason: {3399FF}%s", giveplayer, sendername, (result));
	  SendClientMessageToAll(COLOR_LIGHTRED, string);
      KickEx(giveplayerid);
      return 1;
     }
    }
   }
   else
   {
    format(string, sizeof(string), "   %d is not an active player.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
   }
  }
  return 1;
 }

 

Link to comment
Share on other sites

  • 0

Ai folosit codu care ti lam dat?

In loc de dialog_report cum ai tu acolo la ondialogresponse ui urmatorul cod:


	if(dialogid == DIALOG_REPORT)
	{
		if(!response)
		{
			return 1;
		}
		else
		{
		    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;
		    }
   		}
	}

 

Link to comment
Share on other sites

  • 0
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.