[Need Help With An Idea] - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Need Help With An Idea] (
/showthread.php?tid=111523)
[Need Help With An Idea] -
Doppeyy - 02.12.2009
I want to make a dialog for weapons but give a special twist to it.
I want that the first thing you see is type of weapons example:
pawn Код:
Rifles
Shotguns
Pistols
And so on.
And after that you get the types of lets say shotguns and then if you click sawn offs i want a empty line where you can type in the dialog and then you type how much bullets you want.
Is this idea possible to do ? or is it just a dream ?
I hope someone can help me with this.
/Artix
Re: [Need Help With An Idea] -
Rac3r - 02.12.2009
Код:
WeaponModelID[MAX_PLAYERS];
Very possible, when you select the weapon, store the weapon modelid to a var. Then show the new input dialog box. When they enter the bullet count, use the stored var as the modelid, use the textinput from the dialog function for the bullets.
EDIT: If you need more helping coding this, just ask. No point me showing you code, if you understand how to do it.