Dialogue Help
#1

Okay so, I just made up a dialogue for a Secret Service part of my faction, but whenever I click on a selection Ex. Equipment it changes my players skin to a random one... If I could get some help with this I would be happy to send you a REP+
Reply
#2

Could you provide some code please?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)