Hallo
ich möchte wenn ich auf den knopf abbrechen drücke das man wieder in den voringen dialog kommt wied geht das
if(dialogid == Spint_Army)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, Spint_Army_WAFFEN, DIALOG_STYLE_LIST, "Waffen", "9mm Pistole\nMP5\nM4\nSpray\nSniper\nFallschirm\nWaffen Set", "Auswählen", "Abbrechen");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, Spint_Army_KLEIDUNG, DIALOG_STYLE_LIST, "Kleidung", "Uniform \nUniform 2", "Auswählen", "Abbrechen");
}
if(listitem == 2)
{
if(bwmats>0)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
RemoveFrakMats(1, 5);
}
else{SendClientMessage(playerid, COLOR_RED, "Ihr habt keine Mats!");}
}
}
}
if(dialogid == Spint_Army_WAFFEN)
{
if(response)
{
if(bwmats>0)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 22, 100);
RemoveFrakMats(5, 6);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 29, 300);
RemoveFrakMats(5, 15);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 31, 250);
RemoveFrakMats(5, 15);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 41, 1000);
RemoveFrakMats(5, 10);
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 34, 15);
RemoveFrakMats(5, 50);
}
if(listitem == 5)
{
GivePlayerWeapon(playerid, 46, 1);
RemoveFrakMats(5, 5);
}
if(listitem == 6)
{
GivePlayerWeapon(playerid, 41, 1000);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 29, 100);
GivePlayerWeapon(playerid, 22, 100);
GivePlayerWeapon(playerid, 34, 15);
GivePlayerWeapon(playerid, 46, 1);
RemoveFrakMats(5, 46);
}
}
else{SendClientMessage(playerid, COLOR_RED, "Ihr habt keine Mats!");}
}
}
if(dialogid == Spint_Army_KLEIDUNG)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSkin(playerid, 287);
}
if(listitem == 1)
{
SetPlayerSkin(playerid, 61);
}
}
}
also wenn er hier Spint_Army_WAFFEN ist das wenn er auf abbrechen drückt das er wieder im Spint_Army ist