SA-MP Forums Archive
[FilterScript] [FS]Spawn Weapon Menu - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Spawn Weapon Menu (/showthread.php?tid=62853)



[FS]Spawn Weapon Menu - klavins21 - 24.01.2009

Hello, yestarday I made this Spawn weapon menu for my server, and now I`m releasing it. It has 5pages, when player spawns menu opens and he pick ewry tipe of weapons one by one. when he is at last page and picked last weapon, menu goes away and player is unfreezed. This is basic scripting, so I think they aren`t any bugs

Download it here (allowed mirrors)


P.S - Sorry for my bad english


Re: [FS]Spawn Weapon Menu - Sandra18[NL] - 25.01.2009

Did you test THIS filterscript? I bet you didn't. Since the menu's gets created in "OnFilterScriptExit()"


And both callbacks "OnFilterScriptInit()" and "OnFilterScriptExit()" only loads in "FILTERSCRIPT" is defined.

Line 16:
Code:
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
But you did not define 'FILTERSCRIPT', so those 2 callbacks will not get called.
To solve, put above line 16:
Code:
#define FILTERSCRIPT
(And offcourse put the CreateMenu's in the OnFilterScriptInit()-callback instead the OnFilterScriptExit()-callback.


Re: [FS]Spawn Weapon Menu - SuperS0nic - 25.01.2009

Thanks, im using this on my server, cuz im to lazy to make this myself. xD


Re: [FS]Spawn Weapon Menu - Serbish - 25.01.2009

Put more informations about it else no one will download it.
Example how you could do that:

* What is it?
* How does it works?
* Features
* Screens
* Download


Re: [FS]Spawn Weapon Menu - klavins21 - 25.01.2009

I tested it, and it worked for me


Re: [FS]Spawn Weapon Menu - Sandra18[NL] - 25.01.2009

Quote:
Originally Posted by klavins21
I tested it, and it worked for me
No, you did not test this Filterscript as a filterscript. I think you copy/pasted these codes from your gamemode.




Re: [FS]Spawn Weapon Menu - klavins21 - 25.01.2009

Quote:
Originally Posted by =>Sandra<=
Quote:
Originally Posted by klavins21
I tested it, and it worked for me
No, you did not test this Filterscript as a filterscript. I think you copy/pasted these codes from your gamemode.

you right