Jump to content

Recommended Posts

Posted

๐Ÿ“‹ Plugin Information

  • Name: Weapons Menu
  • Version: 1.1
  • Author: Steams.ro
  • Description: This plugin adds a weapons menu at spawn with temporary save option for Counter-Strike servers.

โœจ Features

๐ŸŽฏ Core Features

  • Automatic spawn menu - Players receive a weapons menu when they spawn
  • 3 weapon loadouts - AK-47, M4A1, or AWP with full equipment
  • Temporary save system - Players can save their weapon choice for the current session
  • Manual menu access - Open the menu anytime with /guns command
  • Free weapons - All weapons are completely free, no money deduction
  • CT defuse kit - Counter-Terrorists automatically receive defuse kit

๐Ÿ”ซ Weapon Loadouts

Each loadout includes:

  • Primary weapon (AK-47 / M4A1 / AWP)
  • Secondary weapon (Desert Eagle)
  • Grenades:
    • 1x HE Grenade
    • 2x Flashbang
    • 1x Smoke Grenade
  • Full armor (Kevlar + Helmet)
  • Maximum ammunition for all weapons

๐ŸŽฎ How It Works

First Spawn

  1. Player spawns for the first time
  2. Menu appears automatically with 3 weapon options
  3. Player selects their preferred loadout
  4. A second menu asks: "Save this choice?"
    • Yes โ†’ Weapon will be given automatically at next spawn
    • No โ†’ Menu will appear again at next spawn

After Saving

  • Player receives saved weapon automatically at each spawn
  • No menu appears (unless they use /guns)
  • Can change weapon anytime with /guns command
  • Can reset saved weapon from the menu

On Disconnect

  • All saved preferences are cleared
  • When reconnecting, player starts fresh (menu appears again)

๐Ÿ’ฌ Commands

Command Description Access
/guns Opens the weapons menu manually All players
say /guns Opens the weapons menu (public chat) All players
say_team /guns Opens the weapons menu (team chat) All players

๐Ÿ“ Menu Options

Main Menu: [MENU] Choose your weapons

  1. โ€ข AK-47 + Deagle & Nades
  2. โ€ข M4A1 + Deagle & Nades
  3. โ€ข AWP + Deagle & Nades
  4. (blank line)
  5. โ€ข Reset saved weapon (appears only if weapon is saved)

Save Menu: [SAVE WEAPON] Save this choice?

  1. Yes - Save this weapon
  2. No - Don't save

๐Ÿ”” Automatic Messages

The plugin displays an informational message every 30 seconds:

Type /guns to open the weapons menu!

This reminds players they can access the menu anytime.


โš™๏ธ Technical Details

Requirements

  • AMX Mod X 1.9.0 or higher
  • ReAPI module
  • Counter-Strike 1.6 or CS:GO (with ReGameDLL)

Includes Required

#include < amxmodx >
#include < reapi >

Storage

  • Type: Temporary (session-based)
  • Persistence: No database, memory only
  • Duration: Until player disconnects

Ammunition Provided

Weapon Backup Ammo
AK-47 / M4A1 / AWP 90 bullets
Desert Eagle 35 bullets
HE Grenade 1 grenade
Flashbang 2 grenades
Smoke Grenade 1 grenade

๐Ÿ›ก๏ธ Security & Validation

Player Checks

The plugin verifies:

  • โœ… Player is alive
  • โœ… Player is not a bot
  • โœ… Player is not HLTV
  • โœ… Valid player connection

Menu Safety

  • Menu automatically closes after 90 seconds
  • Menu is destroyed after selection
  • No memory leaks

๐ŸŽจ Customization

Change Announcement Interval

Modify line in plugin_init():

set_task( 30.0, "ShowInfoMessage", .flags = "b" );
//        ^^^^ Change this number (in seconds)

Add More Weapons

Add new menu items in ShowWeaponsMenu():

menu_additem( menu, "\rโ€ข \wYour Weapon \d+\w Deagle \d&\w Nades\w" );

Then add the case in Weapons_Handler():

case 3: give_weapons( id, "weapon_name", WEAPON_ID );

Modify Loadouts

Edit give_weapons() function:

rg_give_item( id, "weapon_name", GT_REPLACE );
rg_set_user_bpammo( id, WEAPON_ID, amount );

๐Ÿ› Troubleshooting

Menu doesn't appear

  • Check if player is alive
  • Verify ReAPI is installed
  • Check if another plugin blocks menus

Weapons not given

  • Ensure ReAPI module is loaded
  • Check server logs for errors
  • Verify weapon names are correct

Save doesn't work

  • This is normal - save is temporary only
  • Preferences clear on disconnect
  • This is by design, not a bug

๐Ÿ“Š Weapon Stats Reference

Primary Weapons

Weapon Damage Fire Rate Magazine Price (normally)
AK-47 High Fast 30 $2500
M4A1 Medium-High Fast 30 $3100
AWP Very High Slow 10 $4750

Note: In this plugin, all weapons are FREE!


๐Ÿ“ž Support

For issues or suggestions:

  • Author: Steams.ro
  • Version: 1.1
  • Check server console for error messages
  • Verify all requirements are installed

๐Ÿ“œ License & Credits

  • Created by: Steams.ro
  • Plugin Type: Free & Open Source
  • Compatible with: ReAPI-based servers

๐Ÿ”„ Changelog

Version 1.1

  • โœ… Added temporary save system
  • โœ… Added /guns command
  • โœ… Added automatic informational messages
  • โœ… Added reset option in menu
  • โœ… Removed permanent storage (nVault)
  • โœ… English translation
  • โœ… Improved menu design

Version 1.0

  • ๐ŸŽ‰ Initial release
  • ๐ŸŽฏ Basic weapons menu at spawn
  • ๐Ÿ”ซ 3 weapon loadouts
  • ๐Ÿ›ก๏ธ Automatic equipment distribution

Last Updated: November 10, 2025

ย 

weapons_menu.amxx weapons_menu.sma

×
×
  • Create New...