SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 24/01/2009, 07:43 PM   #1
klavins21
Big Clucker
 
Join Date: Dec 2007
Posts: 54
Reputation: 0
Default [FS]Spawn Weapon Menu

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
klavins21 is offline   Reply With Quote
Old 25/01/2009, 03:03 AM   #2
Sandra18[NL]
Huge Clucker
 
Join Date: Jun 2007
Posts: 401
Reputation: 54
Default Re: [FS]Spawn Weapon Menu

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.
Sandra18[NL] is offline   Reply With Quote
Old 25/01/2009, 08:09 AM   #3
SuperS0nic
Big Clucker
 
Join Date: Jan 2009
Posts: 169
Reputation: 0
Default Re: [FS]Spawn Weapon Menu

Thanks, im using this on my server, cuz im to lazy to make this myself. xD
SuperS0nic is offline   Reply With Quote
Old 25/01/2009, 08:12 AM   #4
Serbish
Gangsta
 
Join Date: Apr 2008
Location: Luxembourg
Posts: 606
Reputation: 31
Default Re: [FS]Spawn Weapon Menu

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
Serbish is offline   Reply With Quote
Old 25/01/2009, 10:12 AM   #5
klavins21
Big Clucker
 
Join Date: Dec 2007
Posts: 54
Reputation: 0
Default Re: [FS]Spawn Weapon Menu

I tested it, and it worked for me
klavins21 is offline   Reply With Quote
Old 25/01/2009, 01:07 PM   #6
Sandra18[NL]
Huge Clucker
 
Join Date: Jun 2007
Posts: 401
Reputation: 54
Default Re: [FS]Spawn Weapon Menu

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.

Sandra18[NL] is offline   Reply With Quote
Old 25/01/2009, 02:41 PM   #7
klavins21
Big Clucker
 
Join Date: Dec 2007
Posts: 54
Reputation: 0
Default Re: [FS]Spawn Weapon Menu

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
klavins21 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS]Weapon Menu + Player Menu + Vehicle Menu! [Good For Stunt Server] AlexHitman Filterscripts 4 27/07/2014 08:34 PM
[FilterScript] [FS] **Weapon Menu 0.3 Only ** V1ceC1ty Filterscripts 25 16/02/2012 12:48 PM
[FilterScript] [FS] Weapon Menu mascii Filterscripts 8 08/04/2010 08:19 AM
Weapon menu bug Naxix Help Archive 0 07/03/2010 10:53 AM


All times are GMT. The time now is 05:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.