plugins/include/console.inc
changeset 3389 68d3e56f4bb7
parent 3361 cafdb4df0e3f
child 3967 ceafb87d38a7
     1.1 --- a/plugins/include/console.inc	Fri Sep 09 15:29:17 2011 -0400
     1.2 +++ b/plugins/include/console.inc	Sat Sep 10 12:08:38 2011 -0400
     1.3 @@ -739,8 +739,8 @@
     1.4  
     1.5  /**
     1.6   * Returns whether a client has access to a given command string.  The string 
     1.7 - * can also be any override string, as overrides can be independent of 
     1.8 - * commands.  This important feature essentially allows you to create custom 
     1.9 + * can be any override string, as overrides can be independent of 
    1.10 + * commands.  This feature essentially allows you to create custom 
    1.11   * flags using the override system.
    1.12   *
    1.13   * @param client		Client index.
    1.14 @@ -760,6 +760,28 @@
    1.15  							   bool:override_only=false);
    1.16  
    1.17  /**
    1.18 + * Returns whether an admin has access to a given command string.  The string 
    1.19 + * can be any override string, as overrides can be independent of 
    1.20 + * commands.  This feature essentially allows you to create custom flags
    1.21 + * using the override system.
    1.22 + *
    1.23 + * @param id			AdminId of the admin.
    1.24 + * @param command		Command name.  If the command is not found, the default 
    1.25 + *						flags are used.
    1.26 + * @param flags			Flag string to use as a default, if the command or override 
    1.27 + *						is not found.
    1.28 + * @param override_only	If true, SourceMod will not attempt to find a matching 
    1.29 + *						command, and it will only use the default flags specified.
    1.30 + *						Otherwise, SourceMod will ignore the default flags if 
    1.31 + *						there is a matching admin command.
    1.32 + * @return				True if the admin has access, false otherwise.
    1.33 + */
    1.34 +native bool:CheckAccess(AdminId:id, 
    1.35 +							   const String:command[],
    1.36 +							   flags,
    1.37 +							   bool:override_only=false);
    1.38 +
    1.39 +/**
    1.40   * Returns true if the supplied character is valid in a ConVar name.
    1.41   *
    1.42   * @param c			Character to validate.