Raised This Month: $32 Target: $400
 8% 

Cvars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Thommen
Member
Join Date: May 2019
Old 05-12-2019 , 12:06   Cvars
Reply With Quote #1

Hi, i need your help.
I have a plugin which gives breach charge to the player, but i don't want him to have 3 ammo but only one.
The only thing i know is that cvar: ammo_grenade_limit_breachcharge 1
But i don't know where should I set it, should there be a file or something?
Or maybe I should make a cvar in plugin, unfortunately i don't know how.
Can anybody help me, please?

Regards.
Thommen is offline
Cruze
Veteran Member
Join Date: May 2017
Old 05-13-2019 , 05:44   Re: Cvars
Reply With Quote #2

Game?
__________________
Taking paid private requests! Contact me
Cruze is offline
Thommen
Member
Join Date: May 2019
Old 05-13-2019 , 07:59   Re: Cvars
Reply With Quote #3

CS:GO
Thommen is offline
Cruze
Veteran Member
Join Date: May 2017
Old 05-13-2019 , 10:04   Re: Cvars
Reply With Quote #4

Add that cvar in server.cfg or gamemode_*.cfg
__________________
Taking paid private requests! Contact me
Cruze is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-13-2019 , 10:07   Re: Cvars
Reply With Quote #5

In cfg/sourcmod/sourcemod.cfg it would be executed the latest regardless the gamemode or gametype
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Thommen
Member
Join Date: May 2019
Old 05-14-2019 , 05:56   Re: Cvars
Reply With Quote #6

Unfortunately, none of your solutions works.
Maybe something else?
Thommen is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-14-2019 , 05:59   Re: Cvars
Reply With Quote #7

Try with:
Code:
sm_cvar ammo_grenade_limit_breachcharge 1
sm_cvar force a cvar to change even when it are protected.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 05-14-2019 at 05:59.
Franc1sco is offline
Send a message via MSN to Franc1sco
Thommen
Member
Join Date: May 2019
Old 05-14-2019 , 07:39   Re: Cvars
Reply With Quote #8

Also doesn't help.
Maybe it's not the proper cvar, i have to check it, i just wanted to limit the charge ammo to 1 so this cvar makes sense.
Thommen 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 16:09.


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