Harry56, do you mean chat command, like
?
Code:
public void OnPluginStart()
{
RegConsoleCmd("sm_test", Cmd_Test, "Description");
}
public Action Cmd_Test(int client, int args)
{
if (args < 1)
{
PrintToChat(client, "[SM] Usage: !test <Number>");
return Plugin_Handled;
}
char arg[5];
GetCmdArg(1, arg, sizeof(arg));
int num = StringToInt(arg);
PrintToChat(client, "[SM] You are selected number %i", num);
return Plugin_Handled;
}
__________________