i´m trying to edit the status command... the poblem with this is that all ways to edit is give me the server as client wich used the command... (but i need the client that wrote "status" in console^^)
http://wiki.alliedmods.net/Commands_...d_Scripting%29
it says that some commands would not work with OnClientCommand() cause they where created with the CON_COMMAND interface...
so i tryed... (only test code to see if its working...)
// ConsoleCMD
// client -> server but A client used the command
Code:
public OnPluginStart()
{
RegConsoleCmd("status", Command_Status)
}
public Action:Command_Status(client, args)
{
PrintToConsole(client,"TEST")
return Plugin_Handled
}
// CommandListener
// client -> server but A client used the command
Code:
public OnPluginStart()
{
AddCommandListener(baninfo_status, "status");
}
public Action:baninfo_status(client, const String:command[], args)
{
PrintToConsole(client,"TEST")
return Plugin_Handled
}
// OnClientCommand
// not working at all... (it continue...)
Code:
public Action:OnClientCommand(client, args)
{
new String:cmd[16]
GetCmdArg(0, cmd, sizeof(cmd));
if (StrEqual(cmd, "status"))
{
PrintToConsole(client,"TEST")
return Plugin_Handled
}
return Plugin_Continue
}
// admin command
// client -> server but A client used the command
Code:
public OnPluginStart()
{
RegAdminCmd("status",baninfo_status,0,"BANINFO")
}
public Action:baninfo_status(client, args)
{
PrintToConsole(client,"TEST")
return Plugin_Handled
}
so the question is HOW CAN I print my own status text... i want to build own status information and include baninformations...
so is this possible at all? or is there a way to UNregister the main status command?