Dialogue Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialogue Help (
/showthread.php?tid=434106)
Dialogue Help -
Nick_Phelps - 01.05.2013
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+
Re: Dialogue Help -
zDivine - 01.05.2013
Could you provide some code please?
Re: Dialogue Help -
Nick_Phelps - 01.05.2013
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);
}
}
}
}