Dialogue Help
#3

Formatting of Secret Service Menu
Код HTML:
			else if(listitem == 3) // SS
			{
			    if(PlayerInfo[playerid][pDivision] == 6)
       			{
					ShowPlayerDialog(playerid, SESS, DIALOG_STYLE_LIST, "Secret Service","Clothing\nEquiptment", "Purchase", "Cancel");
				}
			}
		}
	}
RESPONSE CODE
Код HTML:
if(dialogid == SESS) // SE Uniforms
	{
 		if(response)
		{
			if(listitem == 0) // SE Uniforms
			{
				ShowPlayerDialog(playerid, SESSSKINS, DIALOG_STYLE_LIST, "Secret Service Clothing","Probie\nAgent\nDirectors\nWoman", "Put On", "Cancel");
			}
			if(listitem == 1) //SE Uniforms
			{
				ShowPlayerDialog(playerid, SESSGUNS, DIALOG_STYLE_LIST, "Secret Service Equiptment","Spas 12\nGrenades\nSniper\nRocket Launcher", "Put On", "Cancel");
			}
		}
	}
	if(dialogid == SESSSKINS) // SE Uniforms
	{
 		if(response)
		{
			if(listitem == 0) // SE Uniforms
			{
				SetPlayerSkin(playerid, 240);
				PlayerInfo[playerid][pModel] = 240;
			}
			if(listitem == 1) //SE Uniforms
			{
				SetPlayerSkin(playerid, 60);
				PlayerInfo[playerid][pModel] = 60;
			}
			if(listitem == 2) //SE Uniforms
			{
				SetPlayerSkin(playerid, 120);
				PlayerInfo[playerid][pModel] = 120;
			}
			if(listitem == 3) //SE Uniforms
			{
				SetPlayerSkin(playerid, 93);
				PlayerInfo[playerid][pModel] = 93;
			}
		}
	}
	if(dialogid == SESSGUNS) // SE Uniforms
	{
 		if(response)
		{
			if(listitem == 0) // SE Uniforms
			{
			    if(PlayerInfo[playerid][pRank] >= 3)
			    {
				GivePlayerValidWeapon(playerid, 27, 99999);
				}
			}
			if(listitem == 1) //SE Uniforms
			{
			    if(PlayerInfo[playerid][pRank] >= 4)
				{
				GivePlayerValidWeapon(playerid, 16, 99999);
				}
			}
			if(listitem == 2) //SE Uniforms
			{
			    if(PlayerInfo[playerid][pRank] >= 3)
			    {
				GivePlayerValidWeapon(playerid, 34, 99999);
				}
			}
			if(listitem == 3) //SE Uniforms
			{
			    if(PlayerInfo[playerid][pRank] >= 5)
			    {
				GivePlayerValidWeapon(playerid, 36, 99999);
				}
			}
		}
	}
Reply


Messages In This Thread
Dialogue Help - by Nick_Phelps - 01.05.2013, 00:57
Re: Dialogue Help - by zDivine - 01.05.2013, 01:00
Re: Dialogue Help - by Nick_Phelps - 01.05.2013, 01:03

Forum Jump:


Users browsing this thread: 1 Guest(s)