Quote:
Originally Posted by Bilal Pro
Example.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new cvar // new array
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar = register_cvar("cvar_on", "1") // were registering the cvar
}
and then at your function.
PHP Code:
public function(id)
{
if (!(cvar == 1)) // if it isnt 1 ! = not
{
return PLUGIN_HANDLED
}
// continue code
}
EDIT: u can get the flags info at. addons/amxmodx/configs/users.ini
|
Seriously, stop trying to help. You don't know what you are doing.
__________________