Cvars: Add OnCvarChanged global forward

I really tried to use "cvar_changed" as name, but it bothered me so much to look that weird I could not keep it.
This commit is contained in:
Arkshine
2015-01-16 23:14:15 +01:00
parent 34d91789c4
commit faeaf9259e
6 changed files with 39 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#include <newmenus>
#include <textparse_smc>
#include <textparse_ini>
#include <cvars>
/**
* Called just after server activation.

23
plugins/include/cvars.inc Normal file
View File

@ -0,0 +1,23 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#if defined _cvars_included
#endinput
#endif
#define _cvars_included
/**
* Called when a console variable's value is changed.
*
* @param cvarHandle Handle to the cvar that was changed
* @param oldValue String containing the value of the cvar before it was changed
* @param newValue String containing the new value of the cvar
* @param cvarName String containing the name of the cvar
*/
forward OnCvarChanged(cvarHandle, const oldValue[], const newValue[], const cvarName[]);