New Dialog
#4

This is right dude

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(response)// They pressed the first button.
    {
    	switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
			case 1:// Our dialog!
    	    {
           		switch(listitem)// Checking which listitem was selected
        		{
	        	    case 0:// Grove
	        	    {
	        	        SetPlayerSkin(playerid,107);
	        	        GivePlayerWeapon(playerid,30,9999);
	        	        GivePlayerWeapon(playerid,24,9999);
	        	        GivePlayerWeapon(playerid,18,9999);
	        	        SetPlayerPos(playerid,2477.7805,-1686.5349,13.5078);
	        	    }
	        	    case 1: // BAllas
	        	    {
	        	        SetPlayerSkin(playerid,104);
	                    GivePlayerWeapon(playerid,30,9999);
	        	        GivePlayerWeapon(playerid,24,9999);
	        	        GivePlayerWeapon(playerid,18,9999);
	        	        SetPlayerPos(playerid,2649.9617,-2031.5221,13.5540);
	        	    }
	        	    case 2: // Zilie
	        	    {
	    	           SetPlayerSkin(playerid,115);
	        	       GivePlayerWeapon(playerid,30,9999);
	       	           GivePlayerWeapon(playerid,24,9999);
	       	           GivePlayerWeapon(playerid,18,9999);
	       	           SetPlayerPos(playerid,2143.2739,-1803.2969,16.1475);
	        	    }
	        	    case 3://Vagos
				    {
					   SetPlayerPos(playerid,2770.5347,-1627.9919,12.1775);
					   SetPlayerSkin(playerid,108);
					   GivePlayerWeapon(playerid,30,9999);
	       	           GivePlayerWeapon(playerid,24,9999);
	       	           GivePlayerWeapon(playerid,18,9999);
				    }
     			}
		 	}
			case 2:// Our dialog!
		    {
	            switch(listitem)
	            {
	                case 0: // Triads
	            	{
              			SetPlayerPos(playerid,2021.4722,1011.6873,10.8203);
				        SetPlayerSkin(playerid,120);
				        GivePlayerWeapon(playerid,27,9999);
			            GivePlayerWeapon(playerid,29,9999);
			            GivePlayerWeapon(playerid,31,9999);
				        SendClientMessage(playerid,COLOR_TOMATO,"Attack Other Mafia!");
	            	}
	                case 1: // Russian Mafia
	            	{
	                   	SetPlayerPos(playerid,1652.7783,-1656.9902,22.5156);
				       	SetPlayerSkin(playerid,113);
				       	GivePlayerWeapon(playerid,27,9999);
				       	GivePlayerWeapon(playerid,29,9999);
				       	GivePlayerWeapon(playerid,31,9999);
			           	SendClientMessage(playerid,COLOR_TOMATO,"Attack Other Mafia!");
	            	}
	                case 2://Italian Mafia
	            	{
	                   	SetPlayerPos(playerid,1533.4248,752.3821,11.0234);
				       	SetPlayerSkin(playerid,126);
				       	GivePlayerWeapon(playerid,27,9999);
				       	GivePlayerWeapon(playerid,29,9999);
				       	GivePlayerWeapon(playerid,31,9999);
				       	SendClientMessage(playerid,COLOR_TOMATO,"Attack Other Mafia!");
	            	}
	        	}
			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
New Dialog - by DJRebis - 25.06.2013, 11:45
Re: New Dialog - by Josh_Main - 25.06.2013, 12:01
Re: New Dialog - by DJRebis - 25.06.2013, 12:36
Re: New Dialog - by dEcooR - 25.06.2013, 12:42
Re: New Dialog - by DJRebis - 25.06.2013, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)