Cleaned up your code:
PHP Code:
#define PLUGIN_VERSION "0.1"
#include <sourcemod>
public Plugin:myinfo =
{
name = "Ben-Command",
author = "Ben-Yaa",
description = "Server commands manager",
version = PLUGIN_VERSION,
url = "http://www.RooT.co.il"
};
public OnPluginStart()
{
RegAdminCmd("sm_rr", Command_BCR, ADMFLAG_ROOT);
CreateConVar( "sm_bcomm", "1" );
CreateConVar( "bcomm_version", PLUGIN_VERSION, "CVAR Description here", FCVAR_PLUGIN | FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY );
}
public Action:Command_BCR(client, args)
{
ReplyToCommand(client, "\x01[\x03Ben-Command\x01] \x03Admin \x04%N \x03has restarted the round!", client);
return Plugin_Handled;
}
Just look at the difference between yours and mine lol.
ServerCommand("") executes a console command on the server.
__________________