Raised This Month: $51 Target: $400
 12% 

[Any] ConVar Bounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Yaser2007
Junior Member
Join Date: May 2022
Location: Iran
Plugin ID:
8533
Plugin Version:
1.2
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sets a cvar bounds.
    Old 08-14-2023 , 15:35   [Any] ConVar Bounds
    Reply With Quote #1

    Description:
    with this plugin, you can set bounds for game convar (if exist a convar on the game/mod)

    For add cvar, go to cvar_bounds.cfg

    How to Install:
    cvar_bounds.cfg ===> addons/sourcemod/configs folder
    cvar_bounds.smx ===> addons/sourcemod/plugins folder
    cvar_bounds.sp === > addons/sourcemod/scripting folder
    Attached Files
    File Type: sp Get Plugin or Get Source (cvar_bounds.sp - 22 views - 1.8 KB)
    File Type: cfg cvar_bounds.cfg (119 Bytes, 15 views)

    Last edited by Yaser2007; 01-31-2024 at 06:57.
    Yaser2007 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 08-15-2023 , 07:44   Re: [Any] ConVar Bounds
    Reply With Quote #2

    It's better to add some checks and use LogError() instead of SetFailState().
    In addition, it is better to read the config every time the map is started, and not just when the plugin is launched.

    P.S. string variables and arrays are best created outside of loops.
    Attached Files
    File Type: sp Get Plugin or Get Source (cvar_bounds 1.3.0.sp - 48 views - 1.7 KB)
    __________________

    Last edited by Grey83; 08-15-2023 at 07:45.
    Grey83 is offline
    Yaser2007
    Junior Member
    Join Date: May 2022
    Location: Iran
    Old 01-31-2024 , 06:58   Re: [Any] ConVar Bounds
    Reply With Quote #3

    Quote:
    Originally Posted by Grey83 View Post
    It's better to add some checks and use LogError() instead of SetFailState().
    In addition, it is better to read the config every time the map is started, and not just when the plugin is launched.

    P.S. string variables and arrays are best created outside of loops.
    Thanks, Merged in original attachment
    Yaser2007 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 09:41.


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