plugins/include/console.inc
changeset 3071 52e383b58df7
parent 3048 6a60e2409f04
child 3072 db9f0f574251
     1.1 --- a/plugins/include/console.inc	Fri Jul 02 18:17:16 2010 -0700
     1.2 +++ b/plugins/include/console.inc	Tue Jul 06 17:32:58 2010 -0500
     1.3 @@ -594,6 +594,17 @@
     1.4  native ResetConVar(Handle:convar, bool:replicate=false, bool:notify=false);
     1.5  
     1.6  /**
     1.7 + * Retrieves the default string value of a console variable.
     1.8 + *
     1.9 + * @param convar		Handle to the convar.
    1.10 + * @param default		Buffer to store the default value of the convar.
    1.11 + * @param maxlength		Maximum length of string buffer.
    1.12 + * @return				Number of bytes written to the buffer (UTF-8 safe).
    1.13 + * @error				Invalid or corrupt Handle.
    1.14 + */
    1.15 +native GetConVarDefault(Handle:convar, String:default[], maxlength);
    1.16 +
    1.17 +/**
    1.18   * Returns the bitstring of flags on a console variable.
    1.19   *
    1.20   * @param convar		Handle to the convar.