Raised This Month: $51 Target: $400
 12% 

Weapon Menu (Mattcook & xeroblood)


Post New Thread Reply   
 
Thread Tools Display Modes
Ember Featherwing
Junior Member
Join Date: Jan 2006
Old 01-02-2006 , 01:24  
Reply With Quote #31

I can't give out night-vision with this. And ammo_308 keeps coming up in the logs as an error.
Ember Featherwing is offline
poodoo*
New Member
Join Date: Jan 2006
Location: Singapore
Old 01-07-2006 , 01:42  
Reply With Quote #32

any idea if the galil set is working? i tried and it give me only the gun without ammo and kelvar.
poodoo* is offline
Send a message via MSN to poodoo*
umarsa
Senior Member
Join Date: Feb 2006
Location: U.K
Old 03-18-2006 , 08:20  
Reply With Quote #33

where do i download this mod from??
umarsa is offline
logantscott
New Member
Join Date: Mar 2006
Location: NW US
Old 03-18-2006 , 17:50  
Reply With Quote #34

I can't get nightvision either.
Nightvision problems - found a related post:

http://forums.alliedmods.net/showthread.php?t=24928
http://ww.forums.alliedmods.net/showthread.php?t=16805

AND here's the log

L 03/18/2006 - 14:26:09: [FUN] Item "item_nvgs" failed to create
L 03/18/2006 - 14:26:09: [AMXX] Displaying debug trace (plugin "weaponmenu.amxx")
L 03/18/2006 - 14:26:09: [AMXX] Run time error 10: native error (native "give_item")
L 03/18/2006 - 14:26:09: [AMXX] [0] weaponmenu.sma::GivePlayerItem (line 832)
L 03/18/2006 - 14:26:09: [AMXX] [1] weaponmenu.sma::GiveMenuItem (line 692)
L 03/18/2006 - 14:26:09: [AMXX] [2] weaponmenu.sma:layerMenuCmd (line 351)
__________________
-Cerulean AKA Cream Cheese AKA logantscott
logantscott is offline
Send a message via MSN to logantscott
logantscott
New Member
Join Date: Mar 2006
Location: NW US
Old 03-18-2006 , 19:43  
Reply With Quote #35

Here is my edited version; nightvision seems to work, and I fixed the ammo_308 error (galil error)

First of all, I have no idea what I'm doing. But as long as it works... here are the changes I made:

-Added #include <cstrike>
-Changed ammo_308 to ammo_556nato
-Changed "Nighvision Goggles" to read "Nightvision Goggles" on menu
-Changed "item_nvgs" to "nvgoggles"
-Added Nightvision fix

Here are lines 823-838, with nightvision fix

Code:
stock GivePlayerItem( id, nItemIdx )     {     if( !is_user_alive(id) || (nItemIdx < 0) || (nItemIdx >= MAX_ITEMS) )         return // Invalid User or Item         if( (nItemIdx == 4) && (get_cvar_num("sv_weaponmenu_smoke") < 1) )         return // Smoke Nades Restricted            if( nItemIdx == 2 ) // If item is Flashbang, give it twice         give_item( id, g_szItemsList[nItemIdx] )     give_item( id, g_szItemsList[nItemIdx] )             if( nItemIdx == 6 ) // If item is Nightvision, use cs_set_user_nvg(index, [nvgoggles =1])         cs_set_user_nvg( id, 1)     return }
Attached Files
File Type: sma Get Plugin or Get Source (weaponmenu.sma - 964 views - 25.0 KB)
__________________
-Cerulean AKA Cream Cheese AKA logantscott
logantscott is offline
Send a message via MSN to logantscott
ZipCrash
Junior Member
Join Date: Mar 2005
Old 05-07-2006 , 00:01  
Reply With Quote #36

Got a request for ya...

This plugin rocks the only thing it's missing is an admin level. I would like for it to be assigned a certian admin level so I could use weither or not I want certian admins to have access to this. I've had it on my server and a few admins abuse it too much so I have to remove now.
__________________
ZipCrash is offline
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 05-07-2006 , 00:08  
Reply With Quote #37

Quote:
Originally Posted by ZipCrash
I would like for it to be assigned a certian admin level so I could use weither or not I want certian admins to have access to this. I've had it on my server and a few admins abuse it too much so I have to remove now.
You can easily do this yourself by changing the source code:
Quote:
register_clcmd( "amx_weaponmenu", "ShowWeaponMenu", ADMIN_MENU, "Shows The Weapon Menu" )
register_clcmd( "weaponmenu", "ShowWeaponMenu", ADMIN_MENU, "Shows The Weapon Menu" )
Simply change ADMIN_MENU to whatever flag you want, more info HERE
For example if you want only someone with the flag O to have access, change ADMIN_MENU to ADMIN_LEVEL_C
Once that is changed simply recompile and you're good to go!
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
ZipCrash
Junior Member
Join Date: Mar 2005
Old 05-07-2006 , 00:47  
Reply With Quote #38

ah ok thanks! I knew there had to be a way to fix it myself but I'm not really expeirenced with AMX and couldn't find the right command.
__________________
ZipCrash is offline
Freddy
Junior Member
Join Date: Mar 2006
Old 05-19-2006 , 03:19  
Reply With Quote #39

and this is A Admin Buy menu Partically?
__________________
The World Evolves Around us all.. Untill you Die!

[img]http://forums.protocol42.com/images/rank/rank_dev.gif
[/img]
Freddy is offline
Montana
New Member
Join Date: Jun 2006
Location: belgium
Old 06-21-2006 , 10:11   I dont now where i most place the files ...
Reply With Quote #40

Hellow guys ...

I dont now where i most place the files??

can u send me a mail :: [email protected]

greetz ...
Montana is offline
Send a message via MSN to Montana
Reply



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

Forum Jump


All times are GMT -4. The time now is 01:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode