mSelection select gun problem - 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: mSelection select gun problem (
/showthread.php?tid=611067)
mSelection select gun problem -
Barnwell - 02.07.2016
Hi Guys i make weapon list in /melee CMD and i add guns.txt to scriptfiles
so when i do it in /melee its show skins not guns
I add everything to guns.txt
Re: mSelection select gun problem -
DaPower - 02.07.2016
Can you describe that more?
Re: mSelection select gun problem -
Gammix - 02.07.2016
I here to just promote my
dialogs.inc!
Here is one easy way of doing what you need with a better method:
pawn Код:
CMD:melee(playerid)
{
return ShowPlayerDialog(playerid, 50, DIALOG_STYLE_PREVMODEL, "Melee Weapons", "1\nBrass Knuckle\n2\nGolf club\n3\nNitestick\n4\nKnife", "Select", "Close");
}
public OnDialogResonse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == 50)
{
switch (listitem)
{
case 0: GivePlayerWeapon(playerid, 1, 1);
case 1: GivePlayerWeapon(playerid, 2, 1);
case 2: GivePlayerWeapon(playerid, 3, 1);
case 3: GivePlayerWeapon(playerid, 4, 1);
}
}