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

[CSS] Gun Menu v1.1.3 [2021/10/07]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Plugin ID:
7290
Plugin Version:
1.1.3
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Gun Menu for game modes such as Retake, Deathmatch etc. Without weapon spam.
    Old 09-13-2020 , 07:39   [CSS] Gun Menu v1.1.3 [2021/10/07]
    Reply With Quote #1

    Name: Gun Menu

    Description: Weapon selection menu with the ability to customize access to each of the types.
    The plugin blocks the buy menu and the buy zone. Bots are always given a random weapon.
    Weapons are issued only once after spawn (no spam by weapons ^_^).
    After the first choice of weapons on the server, the player is given weapons immediately.
    This choice is saved in the database (clientprefs) and on subsequent logins the previously selected set is issued.
    Also, the plugin gives out grenades (you can select only one type at a time, the maximum amount set by the corresponding cvar ammo_*_max) and armor. Counter-terrorists also receive defuse kits.
    All weapons thrown out and dropped from the corpses will be destroyed after the time set by the cvar (no spam by weapons, although the removal can be turned off).
    For each of the types of weapons, you can choose the option "Random" and then every time a random one will be issued from the available ones (grenades can be turned off altogether).
    There are no separate settings for admins.

    Installation: Place compiled plugin (css_gunmenu.smx) into the plugins folder (../addons/sourcemod/plugins/).
    Needed SM1.8+ for compile.
    The plugin creates a config named css_gun_menu.cfg

    CVars:
    • sm_gun_menu_primary - Allowed primary weapons
      Code:
      AWP - 1
      SG 550 - 2
      G3/SG1 - 4
      Scout - 8
      AK - 16
      M4A1 - 32
      SG 552 - 64
      AUG - 128
      Galil - 256
      FAMAS - 512
      MAC-10 - 1024
      MP5 - 2048
      TMP - 4096
      UMP 45 - 8192
      P90 - 16384
      M3 - 32768
      М4 - 65536 // aka xm1014
      M249 - 131072
    • sm_gun_menu_secondary - Allowed secondary weapons
      Code:
      Glock - 1
      USP - 2
      P228 - 4
      Desert Eagle - 8
      Five-SeveN - 16
      Dual Beretta - 32
    • sm_gun_menu_grenades - Allowed grenades (0 - disallow all grenades)
      Code:
      HE grenade - 1
      Stun grenade - 2
      Smoke grenade - 4
    • sm_gun_menu_armor - Give to player: 0 - nothing, 1 - armor, 2 - armor + helmet
    • sm_gun_menu_clear - Time after which the dropped weapon will be removed (-1 - disable cleaning)
    Changes in 1.1.3 [2021/10/07]:
    • Dropped C4 is no longer removed

    Screenshots:
    Primary weapons menu (allowed AWP and Scout only, sm_gun_menu_primary = 9)
    Secondary weapons menu
    Secondary weapons menu (the few pistols are prohibited, sm_gun_menu_secondary = 5)
    Grenades menu
    Grenades menu (flashbangs are resricted, sm_gun_menu_grenades = 5)
    Attached Files
    File Type: sp Get Plugin or Get Source (css_gunmenu 1.1.2.sp - 910 views - 15.7 KB)
    File Type: sp Get Plugin or Get Source (css_gunmenu 1.1.3.sp - 736 views - 15.9 KB)
    __________________

    Last edited by Grey83; 10-07-2021 at 04:04. Reason: New version
    Grey83 is offline
    Cats869
    Junior Member
    Join Date: Apr 2020
    Old 02-20-2021 , 13:16   Re: [CSS] Gun Menu
    Reply With Quote #2

    Hello, is there a way so that the player can select a different gun if they chose something before but now want something different? Thanks.
    Cats869 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-20-2021 , 13:39   Re: [CSS] Gun Menu
    Reply With Quote #3

    Cats869, player can choose weapon in any moment but new weapon he will get only after new spawn.
    __________________
    Grey83 is offline
    The Spirit of Morpheus
    New Member
    Join Date: Jun 2021
    Old 06-17-2021 , 00:21   Re: [CSS] Gun Menu
    Reply With Quote #4

    Hello,

    I installed Gun Menu exactly as documented, but it does not show up when I start a private server with bots! (it's normal CSS gameplay mode - no DM or any other custom game mode)

    Thanks for support,

    T.S.O.M.

    Edit: My folder structure looks like this: "\cstrike\addons\sourcemod\plugins\css_gunmen u 1.1.2.smx" - is it correct?

    I also get the following error message(s) in the developer console:

    No valid signature found for d:\steam library\steamapps\common\counter-strike source\cstrike\addons\metamod\bin\server.dll
    No valid signature found for d:\steam library\steamapps\common\counter-strike source\cstrike\addons\metamod\bin\win64\serve r.dll

    Last edited by The Spirit of Morpheus; 06-17-2021 at 00:47.
    The Spirit of Morpheus is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 06-17-2021 , 07:22   Re: [CSS] Gun Menu
    Reply With Quote #5

    The Spirit of Morpheus, maybe you should reinstall Metamod: https://forums.alliedmods.net/showthread.php?t=164647
    __________________
    Grey83 is offline
    The Spirit of Morpheus
    New Member
    Join Date: Jun 2021
    Old 06-17-2021 , 17:00   Re: [CSS] Gun Menu
    Reply With Quote #6

    Quote:
    Originally Posted by Grey83 View Post
    The Spirit of Morpheus, maybe you should reinstall Metamod: https://forums.alliedmods.net/showthread.php?t=164647
    Putting the "-insecure" argument into CS:S launch options solved the problem. However, there is something else that bothers me:

    Can I really select only one grenade type? When I select flashbang grenades, I cannot add HE and smoke grenades on top of that - unlike the standard CS:S buy menu! And how do I select NV goggles? How (which key/command) do I open up Gun Menu, when I want to select a different weapon/grenade for the next round?

    T.S.O.M.

    Last edited by The Spirit of Morpheus; 06-17-2021 at 17:30.
    The Spirit of Morpheus is offline
    Darkwob
    BANNED
    Join Date: Oct 2018
    Old 06-20-2021 , 14:45   Re: [CSS] Gun Menu
    Reply With Quote #7

    can you rewrite this for l4d2?
    Darkwob is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 10-07-2021 , 04:04   Re: [CSS] Gun Menu v1.1.3 [2021/10/07]
    Reply With Quote #8

    Changes in 1.1.3 [2021/10/07]:
    • Dropped C4 is no longer removed
    __________________

    Last edited by Grey83; 10-07-2021 at 04:05.
    Grey83 is offline
    nidzo
    Junior Member
    Join Date: Dec 2019
    Old 07-13-2022 , 23:17   Re: [CSS] Gun Menu v1.1.3 [2021/10/07]
    Reply With Quote #9

    Hello. This guns menu doesn't work on my server. I can clearly see it shown for like 0.5 second but then the native CSSDM menu is shown instead. Any suggestions? Thank you in advance.
    nidzo is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 07-14-2022 , 08:29   Re: [CSS] Gun Menu v1.1.3 [2021/10/07]
    Reply With Quote #10

    nidzo, you can change command in this string: RegConsoleCmd("sm_guns", Menu_PrimaryWeapon);
    __________________
    Grey83 is offline
    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

    Forum Jump


    All times are GMT -4. The time now is 08:53.


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