kicking reason is displayed (Steam)
This commit is contained in:
parent
eeaebf4d03
commit
0b742e54bd
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user