Skip to content
View in the app

A better way to browse. Learn more.

CsArenaX

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PLUGIN] Round Weapon Selector

Featured Replies

🔫 ROUND WEAPON SELECTOR

Nume: round_weapon_selector
Versiune: 1.1
Autor: Unguru
Compatibil: AMX Mod X 1.8.1 | 1.8.2 | 1.8.3 | 1.9.0 | 1.10.0

🖼 Poză demonstrativă

Round Weapon Selector

📜 Descriere

Pluginul ROUND WEAPON SELECTOR pentru CS 1.6 permite alegerea armelor la începutul fiecărei runde.

  • M4A1 + Deagle + Grenade (HE + 2 Flash + Smoke)
  • AWP + Deagle + Grenade
  • AK47 + Deagle + Grenade
🎯 Ideal pentru servere Classic / Mix / Public.

⚙ Instalare & Compilare

  1. Puneți fișierul round_weapon_selector.sma în:
    addons/amxmodx/scripting
  2. Compilați folosind compile.exe
  3. Puneți fișierul rezultat round_weapon_selector.amxx în:
    addons/amxmodx/plugins
  4. Adăugați în:
    addons/amxmodx/configs/plugins.ini
    round_weapon_selector.amxx
  5. Asigurați-vă că modulul hamsandwich este activ.
  6. Restart server.

📜 Cod Plugin

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    register_plugin("Round Weapon Selector", "1.1", "Unguru")
    RegisterHam(Ham_Spawn, "player", "player_spawn", 1)
}

public player_spawn(id)
{
    if(!is_user_alive(id))
        return

    set_task(0.5, "show_weapon_menu", id)
}

public show_weapon_menu(id)
{
    if(!is_user_alive(id))
        return

    new menu = menu_create("\yAlege armele pentru runda:", "menu_handler")

    menu_additem(menu, "M4A1 + Deagle + Grenazi", "1")
    menu_additem(menu, "AWP + Deagle + Grenazi", "2")
    menu_additem(menu, "AK47 + Deagle + Grenazi", "3")

    menu_setprop(menu, MPROP_EXIT, MEXIT_NEVER)
    menu_display(id, menu)
}

public menu_handler(id, menu, item)
{
    if(item == MENU_EXIT)
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }

    new data[6], name[64]
    new access, callback
    menu_item_getinfo(menu, item, access, data, charsmax(data), name, charsmax(name), callback)

    new key = str_to_num(data)

    strip_user_weapons(id)
    give_item(id, "weapon_knife")

    give_item(id, "weapon_deagle")
    cs_set_user_bpammo(id, CSW_DEAGLE, 35)

    give_item(id, "weapon_hegrenade")
    give_item(id, "weapon_flashbang")
    give_item(id, "weapon_flashbang")
    give_item(id, "weapon_smokegrenade")

    switch(key)
    {
        case 1:
        {
            give_item(id, "weapon_m4a1")
            cs_set_user_bpammo(id, CSW_M4A1, 90)
        }
        case 2:
        {
            give_item(id, "weapon_awp")
            cs_set_user_bpammo(id, CSW_AWP, 30)
        }
        case 3:
        {
            give_item(id, "weapon_ak47")
            cs_set_user_bpammo(id, CSW_AK47, 90)
        }
    }

    menu_destroy(menu)
    return PLUGIN_HANDLED
}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.