plugins/include/console.inc
changeset 1301 a9e6cd2953f2
parent 1120 deea3b1a62aa
child 1330 ab94316bb52b
     1.1 --- a/plugins/include/console.inc	Fri Aug 10 05:59:03 2007 +0000
     1.2 +++ b/plugins/include/console.inc	Fri Aug 10 09:16:58 2007 +0000
     1.3 @@ -469,6 +469,20 @@
     1.4  native SetConVarString(Handle:convar, const String:value[], bool:replicate=false, bool:notify=false);
     1.5  
     1.6  /**
     1.7 + * Resets the console variable to its default value.
     1.8 + *
     1.9 + * @param convar		Handle to the convar.
    1.10 + * @param replicate		If set to true, the new convar value will be set on all clients.
    1.11 + *						This will only work if the convar has the FCVAR_REPLICATED flag
    1.12 + *						and actually exists on clients.
    1.13 + * @param notify		If set to true, clients will be notified that the convar has changed.
    1.14 + *						This will only work if the convar has the FCVAR_NOTIFY flag.
    1.15 + * @noreturn
    1.16 + * @error				Invalid or corrupt Handle.
    1.17 + */
    1.18 +native ResetConVar(Handle:convar, bool:replicate=false, bool:notify=false);
    1.19 +
    1.20 +/**
    1.21   * Returns the bitstring of flags on a console variable.
    1.22   *
    1.23   * @param convar		Handle to the convar.
    1.24 @@ -521,15 +535,6 @@
    1.25   */
    1.26  native GetConVarName(Handle:convar, const String:name[], maxlength);
    1.27  
    1.28 -/**
    1.29 - * Resets the console variable to its default value.
    1.30 - *
    1.31 - * @param convar		Handle to the convar.
    1.32 - * @noreturn
    1.33 - * @error				Invalid or corrupt Handle.
    1.34 - */
    1.35 -native ResetConVar(Handle:convar);
    1.36 -
    1.37  funcenum ConVarQueryFinished
    1.38  {	
    1.39  	/**