AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Cvars (https://forums.alliedmods.net/showthread.php?t=316207)

Thommen 05-12-2019 12:06

Cvars
 
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.

Cruze 05-13-2019 05:44

Re: Cvars
 
Game?

Thommen 05-13-2019 07:59

Re: Cvars
 
CS:GO

Cruze 05-13-2019 10:04

Re: Cvars
 
Add that cvar in server.cfg or gamemode_*.cfg

Franc1sco 05-13-2019 10:07

Re: Cvars
 
In cfg/sourcmod/sourcemod.cfg it would be executed the latest regardless the gamemode or gametype

Thommen 05-14-2019 05:56

Re: Cvars
 
Unfortunately, none of your solutions works.
Maybe something else?

Franc1sco 05-14-2019 05:59

Re: Cvars
 
Try with:
Code:

sm_cvar ammo_grenade_limit_breachcharge 1
sm_cvar force a cvar to change even when it are protected.

Thommen 05-14-2019 07:39

Re: Cvars
 
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.


All times are GMT -4. The time now is 08:00.

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