10.09.2012, 19:30
When I type the command /FEquip at the equip point, it displays the first dialogue. but upon selecting one of the options it does not display the next dialogue. Here's any relevant code;
Here's case 2600, it displays this when you type the command;
But when you select either 2601 (Uniform) or 2602 (Equipment) it does not display the following dialogue:
Case 2601 (Uniform);
Case 2602, equipment;
pawn Код:
command(fequip, playerid, params[])
{
if(Player[playerid][Faction] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 257.0886,77.9438,1003.6406))
{
ShowPlayerDialog(playerid, 2600, DIALOG_STYLE_LIST, "California Fire & Rescue", "Uniform\nEquipment", "Get", "Cancel");
}
pawn Код:
case 2600:
{
if(!response)return 1;
{
switch(listitem)
{
case 0:ShowPlayerDialog(playerid, 2601, DIALOG_STYLE_LIST, "Fire & Rescue - Uniform", "Beige Firesuit\nYellow Firesuit\nBlack Firesuit", "OK", "Cancel");
case 1:ShowPlayerDialog(playerid, 2602, DIALOG_STYLE_LIST, "Fire & Rescue - Equipment", "Chainsaw\nFire Extinguisher\nNight Vision Goggles\nShovel", "OK", "Cancel");
}
}
}
Case 2601 (Uniform);
pawn Код:
case 2601:
{
if(!response)return 1;
{
switch(listitem)
{
case 0:
{
SetPlayerSkin(playerid, 277);
}
case 1:
{
SetPlayerSkin(playerid, 278);
}
case 2:
{
SetPlayerSkin(playerid, 279);
}
}
}
}
pawn Код:
case 2602:
{
if(!response)return 1;
{
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid, 9, 1);
SetPlayerHealth(playerid, 100);
}
case 1:
{
GivePlayerWeapon(playerid, 42, 99999);
SetPlayerHealth(playerid, 100);
}
case 2:
{
GivePlayerWeapon(playerid, 44, 1);
SetPlayerHealth(playerid, 100);
}
case 3:
{
GivePlayerWeapon(playerid, 6, 1);
SetPlayerHealth(playerid, 100);
}
}
}
}