View Single Post
Chi_Nai
BANNED
Join Date: Apr 2018
Location: GB
Old 04-05-2018 , 04:11   Re: [L4D2]Level Difficulty Edit
Reply With Quote #7

Quote:
Originally Posted by Crasher_3637 View Post
I looked at the source code of the latest version of your plugin and decided to fix it up for you by adding information about the plugin. This is how it looks:

PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo =
{
    
name "[L4D & L4D2] Map-based Configs",
    
author "Chi_Nai",
    
version "1.2",
    
description "Allows for custom settings for each map.",
    
url "https://forums.alliedmods.net/showthread.php?t=306525"
};

public 
void OnAutoConfigsBuffered()
{
    
char sMapConfig[128];
    
GetCurrentMap(sMapConfigsizeof(sMapConfig));
    
Format(sMapConfigsizeof(sMapConfig), "cfg/sourcemod/map_cvars/%s.cfg"sMapConfig);
    if (
FileExists(sMapConfigtrue))
    {
        
strcopy(sMapConfigsizeof(sMapConfig), sMapConfig[4]);
        
ServerCommand("exec \"%s\""sMapConfig);
    }


Thank you for updating
Chi_Nai is offline
Send a message via ICQ to Chi_Nai Send a message via AIM to Chi_Nai Send a message via Yahoo to Chi_Nai Send a message via Skype™ to Chi_Nai