AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Gun Menu 1.2 [2016/03/06] (https://forums.alliedmods.net/showthread.php?t=259355)

Ryan2 03-02-2021 12:50

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Quote:

Originally Posted by Grey83 (Post 2738594)
This version will show a menu every round.

Only issue is !guns doesn't seem to work. It is fine I will one of the previous versions you have created.

Thank you :)

Grey83 03-02-2021 13:56

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Ryan2, secondary weapon menu is not displayed or secondary weapon is not given regardless of the choice?

Ryan2 03-03-2021 01:10

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Quote:

Originally Posted by Grey83 (Post 2738974)
Ryan2, secondary weapon menu is not displayed or secondary weapon is not given regardless of the choice?

Right when I join my server I get the option to select a weapon with gun menu. On round 2 if I type !guns no menu will appear.

Using the plugin in OP if I type !guns on round 2 the menu will appear fine.

paulo_crash 09-01-2021 01:41

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
@Grey83 would it be possible to implement so that the utilities / grenades see random only for some players?

I'm currently using the following setting in the "SpawnItems" option:
Code:

        "SpawnItems"
        {
                // Armor amount to give
                "armor" "100"

                // Whether to give a helmet. If you want to disable armor, you must
                // set this to "no" as well as setting armor to 0.
                "helmet" "yes"

                // How much should give a flashbangs (0 - 2)
                "flashbangs" "2"

                // Whether to give a smoke grenade
                "smokegrenade" "yes"

                // Whether to give an HE grenade
                "hegrenade" "yes"

                // Whether to give an incendiary grenade
                "incgrenade" "yes"

                // Whether to give a TA grenade
                "tagrenade" "no"

                // How much should give a Health Shots (0 - 4)
                "healthshot" "0"

                // Whether to give defusekits to CTs
                "defusekits" "no"
        }

I would like the activated grenades not to be gived to all players, just to some and randomly, for example each player would receive only one of these grenades.

Something like this plugin: https://forums.alliedmods.net/showthread.php?t=294225
Quote:

Originally Posted by potatoz (Post 2497603)
aswell as one that gives each player a 20% chance to get either a he-nade or smoke, same goes with an independant 50% chance to get a flashbang on spawn.

I even thought about using it, but I don't like this AWP per round limit.

m0ssie 03-15-2023 04:50

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Hi,

sorry for opening a new question so late.

But i try to set up multiple cfgs for my server and it worked fine so far.

The problem ist that i cant disable the Plugin in generel.
Which sm command can i use for this?

If i try to set sm_guns 0 via the rcon i get the following message:

L 03/15/2023 - 08:47:22: [SM] Exception reported: Client index 0 is invalid
L 03/15/2023 - 08:47:22: [SM] Blaming: csgo_gunmenu 1.2.smx
L 03/15/2023 - 08:47:22: [SM] Call stack trace:
L 03/15/2023 - 08:47:22: [SM] [0] GetClientTeam
L 03/15/2023 - 08:47:22: [SM] [1] Line 479, /home/forums/content/files/2/5/6/7/1/3/152559.attach::Command_GunMenu

Thanks for helping me.

Grey83 03-15-2023 14:50

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
m0ssie, can I get a link to a comment containing the source of the plugin being used?

m0ssie 03-16-2023 05:13

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
i just used the plugin that have been tagged in the main post of this topic.

Grey83 03-16-2023 10:48

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
m0ssie, replace these lines (477 - 486):
PHP Code:

public Action:Command_GunMenu(client_indexargs)
{
    new 
Teams:client_team Teams:GetClientTeam(client_index);
    if (
IsClientInGame(client_index) && (((client_team == CS_TEAM_T) && g_AllowT) || ((client_team == CS_TEAM_CT) && g_AllowCT)))
    {
        if (
g_PrimaryMenu != INVALID_HANDLEDisplayMenu(g_PrimaryMenuclient_indexMENU_TIME_FOREVER);
        else if (
g_SecondaryMenu != INVALID_HANDLEDisplayMenu(g_SecondaryMenuclient_indexMENU_TIME_FOREVER);
    }
    return 
Plugin_Continue;


with these:
PHP Code:

public Action:Command_GunMenu(clientargs)
{
    new 
Teams:team;
    if (
client && IsClientInGame(client)
    && ((
team Teams:GetClientTeam(client)) == CS_TEAM_T && g_AllowT || team == CS_TEAM_CT && g_AllowCT))
    {
        if (
g_PrimaryMenuDisplayMenu(g_PrimaryMenuclientMENU_TIME_FOREVER);
        else if (
g_SecondaryMenuDisplayMenu(g_SecondaryMenuclientMENU_TIME_FOREVER);
    }
    return 
Plugin_Handled;



heyDxn 04-12-2023 15:05

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Hey, not sure if theres a way to disable this under certain modes? So for example I have a knife only config but when enabled users get the guns they chose originally and even on restart players get to choose guns through the menu.


All times are GMT -4. The time now is 04:12.

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