PHP Code:
#include <amxmodx>
new gPcvar_Maxplayers;
public plugin_init( )
gPcvar_Maxplayers = register_cvar( "amx_maxplayers", "0" );
public client_connect( id ) {
if( get_playersnum() >= get_pcvar_num( gPcvar_Maxplayers ) ) {
if( !( get_user_flags( id ) & ADMIN_RESERVATION ) ) {
client_cmd( id, " connect 123.123.123.123:27015" );
}
}
}
The space bypasses the update.
__________________