Raised This Month: $ Target: $400
 0% 

[CSGO]I need block Weapon menu and Pick up


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 02-24-2023 , 11:55   [CSGO]I need block Weapon menu and Pick up
Reply With Quote #1

Needs a plugin that will block the opening of the weapon menu and lifting weapons from the ground.

mp_buytime 0 does not work

and how i can enable the option for players to get defuse from the beginning of the round

Last edited by Danielej1; 02-24-2023 at 14:32.
Danielej1 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-24-2023 , 13:49   Re: [CSGO]I need block Weapon menu and Pick up
Reply With Quote #2

indeed, mp_freezetime is also time for purchade weapons. Then comes mp_buytime.


here script to disable all func_buyzones. Using on event round_start should work.
PHP Code:
    int func_buyzone = -1;
    
    while((
func_buyzone FindEntityByClassname(func_buyzone"func_buyzone")) != -1)
    {
        
AcceptEntityInput(func_buyzone"Disable");
        
// Disable
        // SetTeam_None
        // SetTeam_AllTeams
        // SetTeam_CTOnly
        // SetTeam_TerroristOnly
    

But you could try to restrict buying specific weapons and grenades.
https://github.com/ambaca/Bacardi-Du...xt#L2954-L2962
Code:
"mp_buy_allow_grenades" = "1" min. 0.000000 max. 1.000000
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
- Whether players can purchase grenades from the buy menu or not.

"mp_buy_allow_guns" = "255" min. 0.000000 max. 255.000000
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
- Whether players can purchase guns: pistols (1), SMGs (2), rifles (4), shotguns (8), sniper rifles (16), heavy MGs (32).
in gamemode_*_server.cfg
Code:
mp_buy_allow_grenades 0
mp_buy_allow_guns 0
unfortunally players can still buy taser gun


*edit
You can also cleanup dropped weapons
Code:
weapon_max_before_cleanup 1
weapon_auto_cleanup_time 1
__________________
Do not Private Message @me

Last edited by Bacardi; 02-24-2023 at 14:03.
Bacardi is offline
Naathy
Member
Join Date: Mar 2022
Location: Brazil
Old 02-24-2023 , 14:17   Re: [CSGO]I need block Weapon menu and Pick up
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
indeed, mp_freezetime is also time for purchade weapons.
Wrong. mp_freezetime is the time players should be freeze at the start of the round. This does not affect buy time.
__________________
Owner of NGServers

Contact
Discord | Steam | Github
Naathy is offline
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 02-24-2023 , 14:34   Re: [CSGO]I need block Weapon menu and Pick up
Reply With Quote #4

Code:
SourcePawn Compiler 1.10
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

plugin.sp(3) : error 010: invalid function or declaration
plugin.sp(5) : error 010: invalid function or declaration
plugin.sp(11) : error 054: unmatched closing brace ("}")
plugin.sp(1) : warning 203: symbol is never used: "func_buyzone"

3 Errors.
and how i can enable the option for players to get defuse for free from the beginning of the round

Last edited by Danielej1; 02-24-2023 at 14:34.
Danielej1 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-24-2023 , 15:31   Re: [CSGO]I need block Weapon menu and Pick up
Reply With Quote #5

https://github.com/ambaca/Bacardi-Du...xt#L3100-L3104

Could be it a time, try to look cvars ?
Code:
"mp_defuser_allocation" = "2" ( def. "0" ) min. 0.000000 max. 2.000000
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
- How to allocate defusers to CTs at start or round: 0=none, 1=random, 2=everyone
__________________
Do not Private Message @me
Bacardi is offline
Danielej1
Senior Member
Join Date: Jul 2022
Location: Poland
Old 02-24-2023 , 16:16   Re: [CSGO]I need block Weapon menu and Pick up
Reply With Quote #6

and on lifting grenades/weapons
and, ideally, not being able to throw away weapons
Danielej1 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-24-2023 , 21:21   Re: [CSGO]I need block Weapon menu and Pick up
Reply With Quote #7

Use command:
find mp_death_drop_

You could try look and read those cvars yourself...
__________________
Do not Private Message @me
Bacardi is offline
Tanttinen
Junior Member
Join Date: Jan 2023
Old 02-25-2023 , 09:58   Re: [CSGO]I need block Weapon menu and Pick up
Reply With Quote #8

you can use mp_buytime [Seconds] to limit players from opening the buy menu
Tanttinen 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 21:57.


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