|
BANNED
Join Date: Apr 2018
Location: GB
|
04-05-2018
, 04:11
Re: [L4D2]Level Difficulty Edit
|
#7
|
Quote:
Originally Posted by Crasher_3637
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(sMapConfig, sizeof(sMapConfig));
Format(sMapConfig, sizeof(sMapConfig), "cfg/sourcemod/map_cvars/%s.cfg", sMapConfig);
if (FileExists(sMapConfig, true))
{
strcopy(sMapConfig, sizeof(sMapConfig), sMapConfig[4]);
ServerCommand("exec \"%s\"", sMapConfig);
}
}
|
Thank you for updating
|
|
|
|