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

[CSGO] Gun Menu 1.2 [2016/03/06]


Post New Thread Reply   
 
Thread Tools Display Modes
Ryan2
Senior Member
Join Date: Jul 2020
Old 03-02-2021 , 12:50   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #111

Quote:
Originally Posted by Grey83 View Post
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
Ryan2 is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-02-2021 , 13:56   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #112

Ryan2, secondary weapon menu is not displayed or secondary weapon is not given regardless of the choice?
__________________
Grey83 is offline
Ryan2
Senior Member
Join Date: Jul 2020
Old 03-03-2021 , 01:10   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #113

Quote:
Originally Posted by Grey83 View Post
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.
Ryan2 is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 09-01-2021 , 01:41   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #114

@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 View Post
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.
paulo_crash is offline
m0ssie
Junior Member
Join Date: Jul 2022
Old 03-15-2023 , 04:50   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #115

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.
m0ssie is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-15-2023 , 14:50   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #116

m0ssie, can I get a link to a comment containing the source of the plugin being used?
__________________
Grey83 is offline
m0ssie
Junior Member
Join Date: Jul 2022
Old 03-16-2023 , 05:13   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #117

i just used the plugin that have been tagged in the main post of this topic.
m0ssie is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-16-2023 , 10:48   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #118

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;

__________________
Grey83 is offline
heyDxn
New Member
Join Date: Apr 2023
Old 04-12-2023 , 15:05   Re: [CSGO] Gun Menu 1.2 [2016/03/06]
Reply With Quote #119

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.
heyDxn is offline
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 04:32.


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