added amb923 - CheckCommandAccess() changes
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401405
This commit is contained in:
@@ -640,12 +640,23 @@ native bool:ReadCommandIterator(Handle:iter,
|
||||
descLen=0);
|
||||
|
||||
/**
|
||||
* Returns whether a client has access to a command. This takes into account
|
||||
* the override system built into SourceMod.
|
||||
* Returns whether a client has access to a given command string. The string
|
||||
* can also be any override string, as overrides can be independent of
|
||||
* commands. This important feature essentially allows you to create custom
|
||||
* flags using the override system.
|
||||
*
|
||||
* @param client Client index.
|
||||
* @param command Command name.
|
||||
* @param flags Default command flags.
|
||||
* @param command Command name. If the command is not found, the default
|
||||
* flags are used.
|
||||
* @param flags Flag string to use as a default, if the command or override
|
||||
* is not found.
|
||||
* @param override_only If true, SourceMod will not attempt to find a matching
|
||||
* command, and it will only use the default flags specified.
|
||||
* Otherwise, SourceMod will ignore the default flags if
|
||||
* there is a matching admin command.
|
||||
* @return True if the client has access, false otherwise.
|
||||
*/
|
||||
native bool:CheckCommandAccess(client, const String:command[], flags);
|
||||
native bool:CheckCommandAccess(client,
|
||||
const String:command[],
|
||||
flags,
|
||||
bool:override_only=false);
|
||||
|
||||
Reference in New Issue
Block a user