kicking reason is displayed (Steam)

This commit is contained in:
Felix Geyer 2004-02-13 21:20:59 +00:00
parent eeaebf4d03
commit 0b742e54bd
3 changed files with 7 additions and 10 deletions

View File

@ -164,7 +164,7 @@ accessUser( id, name[] = "" )
if (result & 2) { if (result & 2) {
#if !defined NO_STEAM #if !defined NO_STEAM
client_cmd(id,"echo ^"* You have no entry to the server...^";%s",g_cmdLoopback) client_cmd(id,g_cmdLoopback)
#else #else
client_cmd(id,"echo ^"* You have no entry to the server...^";disconnect") client_cmd(id,"echo ^"* You have no entry to the server...^";disconnect")
@ -195,11 +195,10 @@ public client_infochanged(id)
#if !defined NO_STEAM #if !defined NO_STEAM
public ackSignal(id) public ackSignal(id)
server_cmd("kick #%d", get_user_userid(id) ) server_cmd("kick #%d ^"You have no entry to the server...^"", get_user_userid(id) )
public client_authorized(id) public client_authorized(id)
#else #else
public client_connect(id) public client_connect(id)
#endif #endif
return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE

View File

@ -192,7 +192,7 @@ accessUser( id, name[]="" )
if (result & 1) client_cmd(id,"echo ^"* Invalid Password!^"") if (result & 1) client_cmd(id,"echo ^"* Invalid Password!^"")
if (result & 2) { if (result & 2) {
#if !defined NO_STEAM #if !defined NO_STEAM
client_cmd(id,"echo ^"* You have no entry to the server...^";%s",g_cmdLoopback) client_cmd(id,g_cmdLoopback)
#else #else
client_cmd(id,"echo ^"* You have no entry to the server...^";disconnect") client_cmd(id,"echo ^"* You have no entry to the server...^";disconnect")
#endif #endif
@ -221,11 +221,10 @@ public client_infochanged(id)
#if !defined NO_STEAM #if !defined NO_STEAM
public ackSignal(id) public ackSignal(id)
server_cmd("kick #%d", get_user_userid(id) ) server_cmd("kick #%d ^"You have no entry to the server...^"", get_user_userid(id) )
public client_authorized(id) public client_authorized(id)
#else #else
public client_connect(id) public client_connect(id)
#endif #endif
return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE

View File

@ -28,7 +28,7 @@ public plugin_init()
#if !defined NO_STEAM #if !defined NO_STEAM
public ackSignal(id) public ackSignal(id)
server_cmd("kick #%d", get_user_userid(id) ) server_cmd("kick #%d ^"Dropped due to slot reservation^"", get_user_userid(id) )
public client_authorized(id) public client_authorized(id)
#else #else
@ -48,7 +48,7 @@ public client_connect(id)
} }
#if !defined NO_STEAM #if !defined NO_STEAM
client_cmd(id,"echo ^"Dropped due to slot reservation^";%s" , g_cmdLoopback) client_cmd(id,g_cmdLoopback)
#else #else
if ( is_user_bot(id) ) if ( is_user_bot(id) )
server_cmd("kick #%d", get_user_userid(id) ) server_cmd("kick #%d", get_user_userid(id) )
@ -80,4 +80,3 @@ setVisibleSlots( players , maxplayers , limit )
set_cvar_num( "sv_visiblemaxplayers" , num ) set_cvar_num( "sv_visiblemaxplayers" , num )
} }
#endif #endif