Try this:
PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
#define PLUGIN_AUTHOR "Hexah"
#define PLUGIN_VERSION "1.00"
#define NAME " Arena.LaLeagane.Ro "
public Plugin myinfo =
{
name = "",
author = PLUGIN_AUTHOR,
description = "",
version = PLUGIN_VERSION,
url = "csitajb.it"
};
public void OnPluginStart()
{
AddCommandListener(OnNameCmd, "sm_rtd");
AddCommandListener(OnNameCmd, "sm_lvl");
}
public Action OnNameCmd(int client, const char[] name, int argc)
{
char sName[128];
GetClientName(client, sName, sizeof(sName));
if (StrContains(sName, NAME) != -1)
{
return Plugin_Continue;
}
ReplyToCommand(client, "[SM] You need to have", NAME, "in your name in order to use this command!");
return Plugin_Stop;
}
I assume that the cmds already exists.
__________________