From 0b742e54bde24c4c28be55de428a245259ff6a13 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 13 Feb 2004 21:20:59 +0000 Subject: [PATCH] kicking reason is displayed (Steam) --- plugins/admin.sma | 5 ++--- plugins/admin_mysql.sma | 5 ++--- plugins/adminslots.sma | 7 +++---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/plugins/admin.sma b/plugins/admin.sma index 407f1660..d96522de 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -164,7 +164,7 @@ accessUser( id, name[] = "" ) if (result & 2) { #if !defined NO_STEAM - client_cmd(id,"echo ^"* You have no entry to the server...^";%s",g_cmdLoopback) + client_cmd(id,g_cmdLoopback) #else client_cmd(id,"echo ^"* You have no entry to the server...^";disconnect") @@ -195,11 +195,10 @@ public client_infochanged(id) #if !defined NO_STEAM 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) #else public client_connect(id) #endif - return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE \ No newline at end of file diff --git a/plugins/admin_mysql.sma b/plugins/admin_mysql.sma index 4658ae2c..cf420666 100755 --- a/plugins/admin_mysql.sma +++ b/plugins/admin_mysql.sma @@ -192,7 +192,7 @@ accessUser( id, name[]="" ) if (result & 1) client_cmd(id,"echo ^"* Invalid Password!^"") if (result & 2) { #if !defined NO_STEAM - client_cmd(id,"echo ^"* You have no entry to the server...^";%s",g_cmdLoopback) + client_cmd(id,g_cmdLoopback) #else client_cmd(id,"echo ^"* You have no entry to the server...^";disconnect") #endif @@ -221,11 +221,10 @@ public client_infochanged(id) #if !defined NO_STEAM 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) #else public client_connect(id) #endif - return get_cvar_num( "amx_mode" ) ? accessUser( id ) : PLUGIN_CONTINUE \ No newline at end of file diff --git a/plugins/adminslots.sma b/plugins/adminslots.sma index 2c5e0765..f8889e08 100755 --- a/plugins/adminslots.sma +++ b/plugins/adminslots.sma @@ -28,7 +28,7 @@ public plugin_init() #if !defined NO_STEAM 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) #else @@ -48,7 +48,7 @@ public client_connect(id) } #if !defined NO_STEAM - client_cmd(id,"echo ^"Dropped due to slot reservation^";%s" , g_cmdLoopback) + client_cmd(id,g_cmdLoopback) #else if ( is_user_bot(id) ) server_cmd("kick #%d", get_user_userid(id) ) @@ -79,5 +79,4 @@ setVisibleSlots( players , maxplayers , limit ) set_cvar_num( "sv_visiblemaxplayers" , num ) } -#endif - +#endif \ No newline at end of file