rewrote console command implementation internally

admin commands on the way but still not done
removed weird restriction

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40519
This commit is contained in:
David Anderson
2007-02-17 07:54:20 +00:00
parent 49d96d4322
commit 6b28bec27f
3 changed files with 299 additions and 74 deletions
+1 -2
View File
@@ -115,7 +115,7 @@ native RegConsoleCmd(const String:cmd[], ConCmd:callback, const String:descripti
#if 0
/**
* Creates a console command as an administrative command. If the command does not exist,
* it is created. This command cannot be used to create duplicate admin commands.
* it is created.
*
* @param cmd String containing command to register.
* @param callback A function to use as a callback for when the command is invoked.
@@ -125,7 +125,6 @@ native RegConsoleCmd(const String:cmd[], ConCmd:callback, const String:descripti
* @param description Optional description to use for help.
* @param flags Optional console flags.
* @noreturn
* @error If this command has already been registered as an admin command.
*/
native RegAdminCmd(const String:cmd[],
ConCmd:callback,