ConVar Value Type Restriction

Please post any questions about developing your plugin here. Please use the search function before posting!
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

ConVar Value Type Restriction

Postby decompile » Wed Nov 07, 2018 11:01 pm

Hey,

Is there currently a way to restrict the value of a ConVar to a specific value type?

Currently I'm using a server_cvar Hook to check for valid FLOAT value and cache it meanwhile. Something like "type:float" woulda be hella cool, without needing to store it under a seperate variable.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: ConVar Value Type Restriction

Postby Ayuto » Sun Nov 11, 2018 3:51 pm

decompile wrote:Is there currently a way to restrict the value of a ConVar to a specific value type?

No, not yet.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 24 guests