public example_function( id ) { new szCurrent = find_ent_by_class( -1, "weapon_knife" ) while( szCurrent != 0 ) { szCurrent = find_ent_by_class( szCurrent, "weapon_knife" ) client_print( id, print_chat, "Example Print" ) } return PLUGIN_HANDLED }