Hallo Leute,
also ich habe mich an einem Plugin versuch, mit dem man per cvar eine cfg ausführt, executed.
Leider kommt bei mir immer, nachdem ich den Kommand in die Konsole eingebe:
exec <filename> [path id]: execute a script file
Hier mal mein Plugin:
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <sourcemod>
#define TCFG "tcfgs/train0.cfg"
public Plugin:myinfo =
{
name = "Karows",
author = "Karow",
description = "Plugin 1",
version = "1.2",
url = ""
};
public OnPluginStart()
{
RegConsoleCmd("sm_train",Command_train);
}
public Action:Command_train(clients, args)
{
ServerCommand("exec", TCFG)
}
|
Kann mir da jemand helfen?
Danke