Jump to content
  • 0

Problema Dialog


Tudo

Question

12 answers to this question

Recommended Posts

  • 0
2 minutes ago, Tudo said:

Salut, am creat un dialog urma modelul de pe wiki si am o problema, cand apas butonul "exit" sau "cancel"(depinde cum e scris de fiecare), imi iau "Server Closed the connections" , de ce ? 

arata cum ai facut la OnDialogResponse acel dialog

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0
	if(response)// They pressed the first button.
	    {
	    if(dialogid == DIALOG_HELP)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
	        {
			//if(response)
	    	    {
	           	if(listitem == 0)// Checking which listitem was selected
	        	{
	         		SCM(playerid, COLOR_GREEN, "|________________________Comenzi Generale________________________|");
					SCM(playerid, COLOR_WHITE,"{FFAF00}» Account:{FFFFFF} /stats /buylevel /upgrade /resetupgrades /(c)hange(s)pawn(c)ivil /leaders /helpers /admins");
					SCM(playerid, COLOR_WHITE,"{FFAF00}» General:{FFFFFF} /pay /charity /time /buy /get /id /drink /showlicenses /givekey /robbing /ticketlist /swithkey");
					SCM(playerid, COLOR_WHITE,"{FFAF00}» General:{FFFFFF} /buygun /skill /licenses /lotto /surrender /contract /factions /jobs /nr /glasses /trunk /info /neon");
					SCM(playerid, COLOR_WHITE,"{FFAF00}» General:{FFFFFF} /report /needhelp /accept /cancel /eject /usedrugs /usepills /fill /fillcar /service /fightstyle");
					SCM(playerid, COLOR_WHITE,"{FFAF00}» RentVehicle:{FFFFFF} /rentcar /rentplane /rentboat /rentbike /rentgolf /rentmountain /unrentvehicle");
			  		SCM(playerid, COLOR_WHITE,"{FFAF00}» Chat:{FFFFFF} (/w)hisper /sms (/s)hout /b (/ad)vertise /me");
			  		SCM(playerid, COLOR_WHITE,"{FFAF00}» IRC:{FFFFFF} /irc Admins  /irc MOTD [motdtext]  /irc status [channelnr]  /i [text]");
			  		SCM(playerid, COLOR_WHITE,"{FFAF00}» IRC:{FFFFFF} /irc Password [channelnr]  (/irc NeedPass [channelnr]  /irc Lock [channelnr]");
			  		SCM(playerid, COLOR_WHITE,"{FFAF00}» IRC:{FFFFFF} /irc join [channelnr]  /irc join [channelnr] [password])  (/irc leave)");
			  		SCM(playerid, COLOR_WHITE,"{FFAF00}» Tog:{FFFFFF} /togooc /tognews /togwhisper /togphone");
			  		SCM(playerid, COLOR_WHITE,"{FFAF00}» Married:{FFFFFF} /witness /propose /divorce");
					SCM(playerid, COLOR_WHITE,"{FFAF00}» Bank:{FFFFFF} /withdraw /bank /transfer /balance /credit /paycredit /infocredit");
	                SCM(playerid, COLOR_GREEN, "|______________________________________________________________|");
	        	}
				if(listitem == 1)
				{
				    if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 1)
					{
						SCM(playerid, COLOR_GREEN, "|________________________Police Department____________________________|");
		                SCM(playerid, 0x0000FFFF, "» Police Department:{FFFFFF} /radio /departments (/m)egaphone (/su)spect /mdc /jail /duty /wanted /tazer /drag /cuff");
		                SCM(playerid, 0x0000FFFF, "» Police Department:{FFFFFF} /cellswitch(cs) /frisk /take /ticket /deliver /camera /ram /jaillist(jl) (/togr)adio (/togd)epartments");
		                SCM(playerid, 0x0000FFFF, "» Police Department:{FFFFFF} /backup(bk) /backupclear(bkc) /carcera /echipare /swat /rbls /rbsf /rbon /rboff /water /members /factionspawn");
		                SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
				}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 2)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Federal Bureau Of Investigations_____________________|");
						SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}(/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /jail /wanted /tazer /drag /cuff");
						SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}/frisk /take /deliver /camera /ram (/j)ail(l)ist (/togr)adio (/togd)epartments");
						SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}/backup(bk) /backupclear(bkc) /carcera /echipare /undercover /showbadge");
						SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}/water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 3)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________National Guard_____________________|");
						SendClientMessage(playerid, 0x0000FFFF, "» National Guard: {FFFFFF}(/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /jail /wanted /tazer /drag /cuff (/c)ell(s)witch");
						SendClientMessage(playerid, 0x0000FFFF, "» National Guard: {FFFFFF}/take /deliver /camera /ram (/j)ail(l)ist (/togr)adio (/togd)epartments /backup(bk) /backupclear(bkc) /carcera /echipare");
						SendClientMessage(playerid, 0x0000FFFF, "» National Guard: {FFFFFF}/water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 4)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Medic & Fireman_____________________|");
						SCM(playerid, COLOR_WHITE, "» Medic & Fireman: {FFFFFF}(/r)adio (/d)epartments /heal /get pills /sellpills /duty (/togr)adio (/togd(epartments) /water /members /factionspawn");
                        SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 5)
					{
					    SCM(playerid, COLOR_GREEN, "_____________________La Cosa Nostra_____________________");
						SendClientMessage(playerid, COLOR_ORANGE, "» La Cosa Nostra: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /tie /untie /water /members /factionspawn");
                        SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 6)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Yakuza_____________________|");
						SendClientMessage(playerid, 0x006400FF, "» Yakuza: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /tie /untie /water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|_______________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 7)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Mayor_____________________|");
						SendClientMessage(playerid, 0x9ACD32FF, "» Mayor:{FFFFFF} /settax /givetax");
						SCM(playerid, COLOR_GREEN, "|______________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 8)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Hitman Agency_____________________|");
						SendClientMessage(playerid, 0x8E2323FF, "» Hitman Agency: {FFFFFF}(/f)amily (/togf)amily /portable /order /water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|______________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 9)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________News Reporter_____________________|");
						SendClientMessage(playerid, 0xEFC6FFFF, "» News Reporter: {FFFFFF}(/f)amily (/togf)amily /news /live ");
                        SendClientMessage(playerid, 0xEFC6FFFF, "» News Reporter: {FFFFFF}/paper /water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|______________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 10)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Taxi Company_____________________|");
						SendClientMessage(playerid, 0xFFFF00FF, "» Taxi Company: {FFFFFF}(/f)amily (/togf)amily /fare /water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|_____________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 11)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________School Instructor_____________________|");
						SendClientMessage(playerid, 0x00F5FFFF, "» School Instructor: {FFFFFF}(/f)amily (/togf)amily /startlesson /stoplesson ");
                        SendClientMessage(playerid, 0x00F5FFFF, "» School Instructor: {FFFFFF}/givelicense /water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|__________________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 12)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Bloods Gang_____________________|");
						SendClientMessage(playerid, COLOR_BLOODS, "» Bloods Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
                        SendClientMessage(playerid, COLOR_BLOODS, "» Bloods Gang: {FFFFFF}/tie /untie /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|____________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 13)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Crips Gang_____________________|");
						SendClientMessage(playerid, COLOR_CRIPS, "» Crips Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
						SendClientMessage(playerid, COLOR_CRIPS, "» Crips Gang: {FFFFFF}/tie /untie /water /members /factionspawn");
						SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 14)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Surenos Gang_____________________|");
						SendClientMessage(playerid, COLOR_SURENOS, "» Surenos Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
						SendClientMessage(playerid, COLOR_SURENOS, "» Surenos Gang: {FFFFFF}/tie /untie /water /members /factionspawn");
                        SCM(playerid, COLOR_GREEN, "|_____________________________________________________|");
					}
					if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 15)
					{
					    SCM(playerid, COLOR_GREEN, "|_____________________Nortenos Gang_____________________|");
						SendClientMessage(playerid, COLOR_NORTENOS, "» Nortenos Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
						SendClientMessage(playerid, COLOR_NORTENOS, "» Nortenos Gang: {FFFFFF}/tie /untie /water /members /factionspawn");
                        SCM(playerid, COLOR_GREEN, "|______________________________________________________|");
					}
}
				if(listitem == 2){

					if(PlayerInfo[playerid][pJob] == 1) {
					SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Detective: /find");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 2) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Lawyer: /free");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 3) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Whore: /sex");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

	    			if(PlayerInfo[playerid][pJob] == 4) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Drugs Dealer: /selldrugs /getdrugs /usedrugs");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
				    }

			     	if(PlayerInfo[playerid][pJob] == 5) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Car Jacker: /dropcar");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 7) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Car Mechanic: /repair /refill /duty");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 8) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary BodyGuard: /guard");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 9) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Arms Dealer: /materials /sellgun");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 10) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Car Dealer: /sellcar");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 12) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Boxer: /fight /boxstats");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 14) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Bus Driver: /fare");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 15) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Paper Boy: /papers /bring /deliver");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}

				    if(PlayerInfo[playerid][pJob] == 16) {
				    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
				    SendClientMessage(playerid,0x660099,"» Job Secondary Trucker: /load /buyprods /sellprods");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}
					if(PlayerInfo[playerid][pJob] == 0) {
					SCM(playerid, COLOR_GREEN, "|_____________________Somer______________________|");
				    SendClientMessage(playerid,COLOR_ORANGE,"» Nu esti angajat .");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}
	}
				if(listitem == 3){
					SCM(playerid, COLOR_GREEN, "|_____________________House Help______________________|");
		  			SendClientMessage(playerid, COLOR_ORANGE,"» House:{FFFFFF} /enter /exit /open /home /heal /(h)ouse(u)pgrade /setrent /setrentable /tv (player/off)");
					SendClientMessage(playerid, COLOR_ORANGE,"» House:{FFFFFF} /evict /evictall /buyhouse /sellhouse /renters  /spawnchange /housewithdraw");
					SendClientMessage(playerid, COLOR_ORANGE,"» House:{FFFFFF} /lock /carupgrade /carcolor /towcar");
					SendClientMessage(playerid, COLOR_ORANGE,"» Rent:{FFFFFF} /unrent /enter /exit /home /spawnchange /lock");
					SendClientMessage(playerid, COLOR_ORANGE,"» Other:{FFFFFF} /phonehelp /fishhelp /cookhelp /irchelp");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}
                if(listitem == 4){
					SCM(playerid, COLOR_GREEN, "|_____________________Business Help______________________|");
					SendClientMessage(playerid, COLOR_ORANGE,"» {FFFFFF}Business: /bizinfo /bizfee /bizname /prodprice /extortion");
					SendClientMessage(playerid, COLOR_ORANGE,"» {FFFFFF}Business: /enter /exit /open /buybiz /sellbiz /bizwithdraw /bizbank");
				    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
					}
				if(listitem == 5)
				{
				    if(PlayerInfo[playerid][pLeader] == 1)
					{
					SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Leader Commands]_____________________________________|");
					SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /invite /uninvite /giverank /(l)eader(c)hat /government");
					if (PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 4)
					{
					SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /rmute /unrmute /dmute /undmute");
					}
					if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15)
					{
					SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /fmute /unfmute");
					}
					if (PlayerInfo[playerid][pLeader] == 7)
					{
					SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /settax /givetax");
					}
					if (PlayerInfo[playerid][pLeader] == 0)
					{
					SendClientMessage(playerid, COLOR_WHITE,"» Nu esti liderb .");
					}
					SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Leader Commands]_____________________________________|");
				}

					{
				if(listitem == 6)
					{
					SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Admin Commands]_____________________________________|");
					if (PlayerInfo[playerid][pAdmin] >= 1)
					{
					SendClientMessage(playerid, COLOR_WHITE, "» Admin Level 1: /ac /o /check /setint /setint /goto /goback /mute /unmute /warn /kick /ban");
					SendClientMessage(playerid, COLOR_WHITE, "» Admin Level 1: /slap /spec /afrisk /checkhp /unfreeze /respawncar /disarm /cnn /cnnn");
					}
					if (PlayerInfo[playerid][pAdmin] >= 2)
					{
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 2:  /gotolv /gotosf /gotols /skydive");
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 2:  /gethere /unjail /unprison /freeze");
					}
					if (PlayerInfo[playerid][pAdmin] >= 3)
					{
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 3: /rtc /prison /spawn /up /down /left /right /fly /cc /bigears /mk /savemission /loadmission");
					}
					if (PlayerInfo[playerid][pAdmin] >= 4)
					{
				    SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 4: /sethp /rac /gotocar /getcar /repairvehicle /vehicle /entercar /hirecar /mole /tod");
					}
					if (PlayerInfo[playerid][pAdmin] >= 5)
					{
				    SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 5: ");
					}
					if (PlayerInfo[playerid][pAdmin] >= 6)
					{
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /edit /agl /atl /unbanname /unbanip /unwarn /setjob /setstat /setskin /gethereall /startlotto /fine /fuck /explode");
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /asellbiz /asellsbiz /asellhouse /house /houseo /sbiz /biz /noooc /weather /weatherall /agm /agd /agp /getip /rac");
					}
					if (PlayerInfo[playerid][pAdmin] >= 7)
					{
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /makeadmin /makehelper /makeleader /setteam /setvw /setmoney /givegun /payday /factionpayday");
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /setarmour /setmoney /healall /healallcars /deleteaccount /givemoney /personalcars");
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /givelevelupall /giverespectupall /givemoneyall /fuelallcars /restart");
					SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /fourdive /makeircadmin /setfamily /forceskin /hq /ck /cks /setchamp");
					SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Admin Commands]_____________________________________|");
					}
					}



					}
					}
		    	    }
					}
		    		}
	return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
	}

 

Edited by Tudo
Link to comment
Share on other sites

  • 0
1 hour ago, Tudo said:

EDIT: scuze de dublu post, am vrut sa te citez si am dat reply .. :|

greseala este aici:

if(response)
{
	if(dialogid)


intai se verifica id-ul dialogului, apoi se pune if(response)

 

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0
Acum 11 minute, DaEdRiC-FoX a spus:

greseala este aici:


if(response)
{
	if(dialogid)


intai se verifica id-ul dialogului, apoi se pune if(response)

Degeaba am scris asa la inceput:

	if(dialogid == DIALOG_HELP)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
	        {
			if(response)
	    	    {
	           	if(listitem == 0)// Checking which listitem was selected
	        	{
	         		SCM(playerid,....

Si la fel imi da cand apas pe "cancel" ...

Link to comment
Share on other sites

  • 0

Poftim sper ca te-am ajutat.

if(dialogid == DIALOG_HELP)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
{
	if(!response)
    {
    	return 1;
    }
    else
    {
       	if(listitem == 0)// Checking which listitem was selected
    	{
     		SCM(playerid, COLOR_GREEN, "|________________________Comenzi Generale________________________|");
			SCM(playerid, COLOR_WHITE,"{FFAF00}» Account:{FFFFFF} /stats /buylevel /upgrade /resetupgrades /(c)hange(s)pawn(c)ivil /leaders /helpers /admins");
			SCM(playerid, COLOR_WHITE,"{FFAF00}» General:{FFFFFF} /pay /charity /time /buy /get /id /drink /showlicenses /givekey /robbing /ticketlist /swithkey");
			SCM(playerid, COLOR_WHITE,"{FFAF00}» General:{FFFFFF} /buygun /skill /licenses /lotto /surrender /contract /factions /jobs /nr /glasses /trunk /info /neon");
			SCM(playerid, COLOR_WHITE,"{FFAF00}» General:{FFFFFF} /report /needhelp /accept /cancel /eject /usedrugs /usepills /fill /fillcar /service /fightstyle");
			SCM(playerid, COLOR_WHITE,"{FFAF00}» RentVehicle:{FFFFFF} /rentcar /rentplane /rentboat /rentbike /rentgolf /rentmountain /unrentvehicle");
	  		SCM(playerid, COLOR_WHITE,"{FFAF00}» Chat:{FFFFFF} (/w)hisper /sms (/s)hout /b (/ad)vertise /me");
	  		SCM(playerid, COLOR_WHITE,"{FFAF00}» IRC:{FFFFFF} /irc Admins  /irc MOTD [motdtext]  /irc status [channelnr]  /i [text]");
	  		SCM(playerid, COLOR_WHITE,"{FFAF00}» IRC:{FFFFFF} /irc Password [channelnr]  (/irc NeedPass [channelnr]  /irc Lock [channelnr]");
	  		SCM(playerid, COLOR_WHITE,"{FFAF00}» IRC:{FFFFFF} /irc join [channelnr]  /irc join [channelnr] [password])  (/irc leave)");
	  		SCM(playerid, COLOR_WHITE,"{FFAF00}» Tog:{FFFFFF} /togooc /tognews /togwhisper /togphone");
	  		SCM(playerid, COLOR_WHITE,"{FFAF00}» Married:{FFFFFF} /witness /propose /divorce");
			SCM(playerid, COLOR_WHITE,"{FFAF00}» Bank:{FFFFFF} /withdraw /bank /transfer /balance /credit /paycredit /infocredit");
            SCM(playerid, COLOR_GREEN, "|______________________________________________________________|");
    	}
		if(listitem == 1)
		{
		    if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 1)
			{
				SCM(playerid, COLOR_GREEN, "|________________________Police Department____________________________|");
                SCM(playerid, 0x0000FFFF, "» Police Department:{FFFFFF} /radio /departments (/m)egaphone (/su)spect /mdc /jail /duty /wanted /tazer /drag /cuff");
                SCM(playerid, 0x0000FFFF, "» Police Department:{FFFFFF} /cellswitch(cs) /frisk /take /ticket /deliver /camera /ram /jaillist(jl) (/togr)adio (/togd)epartments");
                SCM(playerid, 0x0000FFFF, "» Police Department:{FFFFFF} /backup(bk) /backupclear(bkc) /carcera /echipare /swat /rbls /rbsf /rbon /rboff /water /members /factionspawn");
                SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 2)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Federal Bureau Of Investigations_____________________|");
				SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}(/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /jail /wanted /tazer /drag /cuff");
				SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}/frisk /take /deliver /camera /ram (/j)ail(l)ist (/togr)adio (/togd)epartments");
				SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}/backup(bk) /backupclear(bkc) /carcera /echipare /undercover /showbadge");
				SendClientMessage(playerid, 0x0000FFFF, "» Federal Bureau Of Investigations: {FFFFFF}/water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 3)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________National Guard_____________________|");
				SendClientMessage(playerid, 0x0000FFFF, "» National Guard: {FFFFFF}(/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /jail /wanted /tazer /drag /cuff (/c)ell(s)witch");
				SendClientMessage(playerid, 0x0000FFFF, "» National Guard: {FFFFFF}/take /deliver /camera /ram (/j)ail(l)ist (/togr)adio (/togd)epartments /backup(bk) /backupclear(bkc) /carcera /echipare");
				SendClientMessage(playerid, 0x0000FFFF, "» National Guard: {FFFFFF}/water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 4)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Medic & Fireman_____________________|");
				SCM(playerid, COLOR_WHITE, "» Medic & Fireman: {FFFFFF}(/r)adio (/d)epartments /heal /get pills /sellpills /duty (/togr)adio (/togd(epartments) /water /members /factionspawn");
                SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 5)
			{
			    SCM(playerid, COLOR_GREEN, "_____________________La Cosa Nostra_____________________");
				SendClientMessage(playerid, COLOR_ORANGE, "» La Cosa Nostra: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /tie /untie /water /members /factionspawn");
                SCM(playerid, COLOR_GREEN, "|__________________________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 6)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Yakuza_____________________|");
				SendClientMessage(playerid, 0x006400FF, "» Yakuza: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /tie /untie /water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|_______________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 7)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Mayor_____________________|");
				SendClientMessage(playerid, 0x9ACD32FF, "» Mayor:{FFFFFF} /settax /givetax");
				SCM(playerid, COLOR_GREEN, "|______________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 8)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Hitman Agency_____________________|");
				SendClientMessage(playerid, 0x8E2323FF, "» Hitman Agency: {FFFFFF}(/f)amily (/togf)amily /portable /order /water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|______________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 9)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________News Reporter_____________________|");
				SendClientMessage(playerid, 0xEFC6FFFF, "» News Reporter: {FFFFFF}(/f)amily (/togf)amily /news /live ");
                SendClientMessage(playerid, 0xEFC6FFFF, "» News Reporter: {FFFFFF}/paper /water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|______________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 10)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Taxi Company_____________________|");
				SendClientMessage(playerid, 0xFFFF00FF, "» Taxi Company: {FFFFFF}(/f)amily (/togf)amily /fare /water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|_____________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 11)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________School Instructor_____________________|");
				SendClientMessage(playerid, 0x00F5FFFF, "» School Instructor: {FFFFFF}(/f)amily (/togf)amily /startlesson /stoplesson ");
                SendClientMessage(playerid, 0x00F5FFFF, "» School Instructor: {FFFFFF}/givelicense /water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|__________________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 12)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Bloods Gang_____________________|");
				SendClientMessage(playerid, COLOR_BLOODS, "» Bloods Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
                SendClientMessage(playerid, COLOR_BLOODS, "» Bloods Gang: {FFFFFF}/tie /untie /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|____________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 13)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Crips Gang_____________________|");
				SendClientMessage(playerid, COLOR_CRIPS, "» Crips Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
				SendClientMessage(playerid, COLOR_CRIPS, "» Crips Gang: {FFFFFF}/tie /untie /water /members /factionspawn");
				SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 14)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Surenos Gang_____________________|");
				SendClientMessage(playerid, COLOR_SURENOS, "» Surenos Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
				SendClientMessage(playerid, COLOR_SURENOS, "» Surenos Gang: {FFFFFF}/tie /untie /water /members /factionspawn");
                SCM(playerid, COLOR_GREEN, "|_____________________________________________________|");
			}
			if(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 15)
			{
			    SCM(playerid, COLOR_GREEN, "|_____________________Nortenos Gang_____________________|");
				SendClientMessage(playerid, COLOR_NORTENOS, "» Nortenos Gang: {FFFFFF}(/f)amily (/f)amily(a)lliance (/togf)amily /water");
				SendClientMessage(playerid, COLOR_NORTENOS, "» Nortenos Gang: {FFFFFF}/tie /untie /water /members /factionspawn");
                SCM(playerid, COLOR_GREEN, "|______________________________________________________|");
			}
		}
		if(listitem == 2){

			if(PlayerInfo[playerid][pJob] == 1) {
			SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Detective: /find");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 2) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Lawyer: /free");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 3) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Whore: /sex");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

			if(PlayerInfo[playerid][pJob] == 4) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Drugs Dealer: /selldrugs /getdrugs /usedrugs");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
		    }

	     	if(PlayerInfo[playerid][pJob] == 5) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Car Jacker: /dropcar");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 7) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Car Mechanic: /repair /refill /duty");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 8) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary BodyGuard: /guard");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 9) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Arms Dealer: /materials /sellgun");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 10) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Car Dealer: /sellcar");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 12) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Boxer: /fight /boxstats");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 14) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Bus Driver: /fare");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 15) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Paper Boy: /papers /bring /deliver");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}

		    if(PlayerInfo[playerid][pJob] == 16) {
		    SCM(playerid, COLOR_GREEN, "______________________Job Help______________________");
		    SendClientMessage(playerid,0x660099,"» Job Secondary Trucker: /load /buyprods /sellprods");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}
			if(PlayerInfo[playerid][pJob] == 0) {
			SCM(playerid, COLOR_GREEN, "|_____________________Somer______________________|");
		    SendClientMessage(playerid,COLOR_ORANGE,"» Nu esti angajat .");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
			}
		}
		if(listitem == 3)
		{
			SCM(playerid, COLOR_GREEN, "|_____________________House Help______________________|");
  			SendClientMessage(playerid, COLOR_ORANGE,"» House:{FFFFFF} /enter /exit /open /home /heal /(h)ouse(u)pgrade /setrent /setrentable /tv (player/off)");
			SendClientMessage(playerid, COLOR_ORANGE,"» House:{FFFFFF} /evict /evictall /buyhouse /sellhouse /renters  /spawnchange /housewithdraw");
			SendClientMessage(playerid, COLOR_ORANGE,"» House:{FFFFFF} /lock /carupgrade /carcolor /towcar");
			SendClientMessage(playerid, COLOR_ORANGE,"» Rent:{FFFFFF} /unrent /enter /exit /home /spawnchange /lock");
			SendClientMessage(playerid, COLOR_ORANGE,"» Other:{FFFFFF} /phonehelp /fishhelp /cookhelp /irchelp");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
		}
        if(listitem == 4)
        {
			SCM(playerid, COLOR_GREEN, "|_____________________Business Help______________________|");
			SendClientMessage(playerid, COLOR_ORANGE,"» {FFFFFF}Business: /bizinfo /bizfee /bizname /prodprice /extortion");
			SendClientMessage(playerid, COLOR_ORANGE,"» {FFFFFF}Business: /enter /exit /open /buybiz /sellbiz /bizwithdraw /bizbank");
		    SCM(playerid, COLOR_GREEN, "|___________________________________________________|");
		}
		if(listitem == 5)
		{
		    if(PlayerInfo[playerid][pLeader] == 1)
			{
			SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Leader Commands]_____________________________________|");
			SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /invite /uninvite /giverank /(l)eader(c)hat /government");
			if (PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 4)
			{
			SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /rmute /unrmute /dmute /undmute");
			}
			if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15)
			{
			SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /fmute /unfmute");
			}
			if (PlayerInfo[playerid][pLeader] == 7)
			{
			SendClientMessage(playerid, COLOR_ORANGE,"» Leader:{FFFFFF} /settax /givetax");
			}
			if (PlayerInfo[playerid][pLeader] == 0)
			{
			SendClientMessage(playerid, COLOR_WHITE,"» Nu esti liderb .");
			}
			SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Leader Commands]_____________________________________|");
		}
		if(listitem == 6)
		{
			SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Admin Commands]_____________________________________|");
			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
				SendClientMessage(playerid, COLOR_WHITE, "» Admin Level 1: /ac /o /check /setint /setint /goto /goback /mute /unmute /warn /kick /ban");
				SendClientMessage(playerid, COLOR_WHITE, "» Admin Level 1: /slap /spec /afrisk /checkhp /unfreeze /respawncar /disarm /cnn /cnnn");
			}
			if (PlayerInfo[playerid][pAdmin] >= 2)
			{
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 2:  /gotolv /gotosf /gotols /skydive");
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 2:  /gethere /unjail /unprison /freeze");
			}
			if (PlayerInfo[playerid][pAdmin] >= 3)
			{
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 3: /rtc /prison /spawn /up /down /left /right /fly /cc /bigears /mk /savemission /loadmission");
			}
			if (PlayerInfo[playerid][pAdmin] >= 4)
			{
		    	SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 4: /sethp /rac /gotocar /getcar /repairvehicle /vehicle /entercar /hirecar /mole /tod");
			}
			if (PlayerInfo[playerid][pAdmin] >= 5)
			{
		    	SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 5: ");
			}
			if (PlayerInfo[playerid][pAdmin] >= 6)
			{
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /edit /agl /atl /unbanname /unbanip /unwarn /setjob /setstat /setskin /gethereall /startlotto /fine /fuck /explode");
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /asellbiz /asellsbiz /asellhouse /house /houseo /sbiz /biz /noooc /weather /weatherall /agm /agd /agp /getip /rac");
			}
			if (PlayerInfo[playerid][pAdmin] >= 7)
			{
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /makeadmin /makehelper /makeleader /setteam /setvw /setmoney /givegun /payday /factionpayday");
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /setarmour /setmoney /healall /healallcars /deleteaccount /givemoney /personalcars");
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /givelevelupall /giverespectupall /givemoneyall /fuelallcars /restart");
				SendClientMessage(playerid, COLOR_WHITE,"» Admin Level 6: /fourdive /makeircadmin /setfamily /forceskin /hq /ck /cks /setchamp");
				SendClientMessage(playerid, COLOR_GREEN,"|___________________________________________[Admin Commands]_____________________________________|");
			}
		}
	}
	return 1;
}

 

Link to comment
Share on other sites

  • 0
Acum 14 ore, AddisoN a spus:

fa asa: 

if (dialogid==DIALOG_HELP)

{

if (!response) return 1;

if (listitem==0){instuctiuni}

else if (listitem==1){instructiuni}

//Continui tu cu cate cazuri ai. Si verifica ca sa nu ai cand jucatorul nu raspunde kick (playerid);

}

Nici macar comanda nu merge...nu reactioneaza deloc ...

UP !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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