You forgot to put id at the function, post here your mute plugin and the flag vip has if you can't get it done by yourself
PHP Code:
public your_function( id ) { if( !( get_user_flags( id ) & put here your vip flag ) ) { client_print( id, print_chat, " NO ACCESS" ) } else { //Mute code } }