View Single Post
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-07-2006 , 22:34  
Reply With Quote #6

change
Code:
    if ( ! find_ent_by_class ( -1, "func_bomb_target" ) )     {         return PLUGIN_HANDLED     }         else     {         register_logevent ( "fn_triggerplanted" , 3, "1=triggered", "2=Planted_The_Bomb" )         register_logevent ( "fn_triggerroundstart" , 2, "1=Round_Start" )         register_forward ( FM_EmitSound, "fn_soundcheck" )     }         return PLUGIN_CONTINUE }
to
Code:
    if ( find_ent_by_class ( -1, "func_bomb_target" ) )     {         register_logevent ( "fn_triggerplanted" , 3, "1=triggered", "2=Planted_The_Bomb" )         register_logevent ( "fn_triggerroundstart" , 2, "1=Round_Start" )         register_forward ( FM_EmitSound, "fn_soundcheck" )     } }

You don't need to have any returns in plugin_init() and returning PLUGIN_HANDLED does nothing in plugin init. it would do the same as PLUGIN_CONTINUE

Change that and I will approve.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos