PHP Code:
while( ( target = find_ent_by_class( target, classnames[0] ) ) || ( target = find_ent_by_class( target, classnames[1] ) ) )
i++;
This will enter in an infinite loop.
->
PHP Code:
if( !find_ent_by_class( -1, "func_bomb_target" ) && !find_ent_by_class( -1, "info_bomb_target" ) )
pause("a");
Don't return any value in plugin_init.
PHP Code:
if( ( !is_user_alive( id ) ) || ( !user_has_weapon( id, CSW_C4 ) ) ) return PLUGIN_HANDLED;
else {
Not really important, but you don't need else statement if you return at previous checks.
Would be same to reverse checks (if is_user_alive and user_has_weapon) and put following code into block.
__________________