Quote:
Originally Posted by abdul-rehman
try this:
Code:
public client_putinserver( id ) { if ( check_admins_online() ) { static new_flags
new_flags = read_flags( "bz" ) // Set his new flags set_user_flags( id, new_flags ) } } check_admins_online() { static id
new count = 0 for( id = 1; id <= maxplayers; id ++ ) { if ( is_user_connected( id ) && (get_user_flags( id ) & ADMIN_BAN)) count++ } // Return number of online admins return count;
}
|
Yeah, something like you said but it doesn't work. The code is just.....full of errors.