CS:GO server_cvar event for created ConVar

Please post any questions about developing your plugin here. Please use the search function before posting!
Jake
Junior Member
Posts: 19
Joined: Sun Oct 04, 2015 7:54 pm

CS:GO server_cvar event for created ConVar

Postby Jake » Sun May 29, 2016 9:13 pm

Is there a way for the server_cvar event to work with custom created cvars?
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: CS:GO server_cvar event for created ConVar

Postby Ayuto » Sun May 29, 2016 9:15 pm

The server_cvar event only gets fired for ConVars that have the NOTIFY flag. I recommend to use OnConVarChanged if you don't want to add that flag.
Jake
Junior Member
Posts: 19
Joined: Sun Oct 04, 2015 7:54 pm

Re: CS:GO server_cvar event for created ConVar

Postby Jake » Sun May 29, 2016 10:13 pm

Gotcha, thanks :smile:

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 107 guests