PHP Code:
public plugin_cfg ( ) {
if ( get_pcvar_num ( Cvars [ CVAR_STATUS ] ) == 0 ) {
log_amx ( "Plugin paused" )
pause ( "a" )
}
}
what happens if server starts with the cvar value 0 than i want to change it to 1.
for example i want it always deactivated and only when i need/want, to activate it.
i think you could return FMRES_IGNORED; in TraceAttack forward if the cvar is 0.
also i saw this ( you always declare a new variable to use it in one switch.. )
PHP Code:
new iNum = random_num ( 1 , 3 )
switch ( iNum ) {
-->
switch ( random_num ( 1 , 3 ) ) {
__________________