24.07.2013, 05:21
Here you go:
PHP код:
if(dialogid == weapon)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid,melee,DIALOG_STYLE_LIST,"Melee","Brass Knuckles ($500)\nGolf Club ($500)\nNight Stick ($500)\nKnife ($1000)\nBaseball Bat ($750)\nShovel ($500)\nPool Cue ($500)\nSword ($2000)","Buy","Close");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,pistols,DIALOG_STYLE_LIST,"Pistols","9mm ($5000)\nSilenced Pistol ($7000)\nDesert Eagle ($100000)","Buy","Close");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid,shotguns,DIALOG_STYLE_LIST,"Shotguns","Shotgun ($50000)\nSawn-off Shotgun ($250000)\nCombat Shotgun ($500000)","Buy","Close");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid,smgs,DIALOG_STYLE_LIST,"SMGs","Tec 9 ($25000)\nUZI ($25000)\nMP5 ($100000)","Buy","Close");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid,assault,DIALOG_STYLE_LIST,"Assault Rifles","M4 ($500000)\nAK-47 ($500000)","Buy","Close");
}
if(listitem == 5)
{
ShowPlayerDialog(playerid,rifles,DIALOG_STYLE_LIST,"Rifles/Snipers","Sniper ($1000000)\nCountry Rifle ($750000)","Buy","Close");
}
}
return 1;
}