View Single Post
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 06-28-2014 , 09:10   Re: You won't kill hostages anymore
Reply With Quote #7

PHP Code:
public plugin_cfg ( ) {
    
    
    if ( 
get_pcvar_num Cvars [  CVAR_STATUS ] ) == ) {
        
        
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 )    
switch ( 
iNum ) {
    
-->
    
switch ( 
random_num ) ) { 
__________________

My PC Themes . .
red_bull2oo6 is offline