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

[Any] Per Map ConVar Enforcer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Plugin ID:
6719
Plugin Version:
0.0.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin is an extension to the original ConVar Enforcer plugin which adds per map support where you can enforce commands based on the map
    Old 09-16-2019 , 14:43   [Any] Per Map ConVar Enforcer
    Reply With Quote #1

    Description

    This plugin is an extension to the original ConVar Enforcer plugin which adds per map support where you can enforce commands based on the map

    Installation

    -To install this plugin you must install the original ConVar Enforcer plugin from the link below because this plugin uses natives from that plugin (since it's an extension)

    https://forums.alliedmods.net/showthread.php?p=2334694

    Configurations

    In the directory sourcemod/configs/mapcvarenf add your map cfg like : de_dust2.cfg and add your stuff line by line there and then restart the map to see the effect

    Direct Download
    Source Code (Github)
    __________________
    ambn is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 09-17-2019 , 00:11   Re: [Any] Per Map ConVar Enforcer
    Reply With Quote #2

    Doesn't placing mapname.cfg in your /cfg/ folder achieve that already?

    Last edited by Sreaper; 09-17-2019 at 01:18.
    Sreaper is offline
    OSWO
    Senior Member
    Join Date: Jul 2015
    Location: United Kingdom, London
    Old 09-19-2019 , 14:54   Re: [Any] Per Map ConVar Enforcer
    Reply With Quote #3

    this doesn't enforce just sets convar values,

    to enforce you must have a ConVarChanged Hook.

    https://github.com/OSCAR-WOS/SourceT...r/Misc.sp#L226
    https://github.com/OSCAR-WOS/SourceT...r/Hook.sp#L124
    g_Global.Convars == new StringMap
    __________________
    SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS

    Last edited by OSWO; 09-19-2019 at 14:57.
    OSWO is offline
    ambn
    Veteran Member
    Join Date: Feb 2015
    Location: Fun servers
    Old 10-14-2019 , 04:34   Re: [Any] Per Map ConVar Enforcer
    Reply With Quote #4

    Quote:
    Originally Posted by Sreaper View Post
    Doesn't placing mapname.cfg in your /cfg/ folder achieve that already?
    It doesn't enforce them, they can be changed in any other way by map or other plugins

    Quote:
    Originally Posted by OSWO View Post
    this doesn't enforce just sets convar values,

    to enforce you must have a ConVarChanged Hook.

    https://github.com/OSCAR-WOS/SourceT...r/Misc.sp#L226
    https://github.com/OSCAR-WOS/SourceT...r/Hook.sp#L124
    g_Global.Convars == new StringMap
    This plugins just add per map feature to the original enforcer plugin so if anything is to be blamed , it's the original plugin but tbh it works perfectly for me at leasat
    __________________
    ambn 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 12:50.


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