如题,下者付点通币...哈哈...
if( SZplayer >= (lplayers+1) ){
client_print(0,print_chat,"*【外网】: %s(%s)进入会员通道,希望减员时她再连接.",name,userip)
server_cmd("kick #%d ^"会员通道, 请耐心等待^"",get_user_userid(id));
return PLUGIN_HANDLED
}
client_print(0,print_chat,"*【外网】: %s(%s)连线中, NOsXe 玩家将被踢除一人.",name,userip)
if( SZplayer == lplayers ){
set_task(20.0,"checkkick");//延迟20秒躲开很多会员同时挤进服时卡服务器//
}
return PLUGIN_HANDLED
}
//***寻找NOSXE高分玩家作弊嫌疑者并踢除***//
public checkkick(){
new maxplayers = get_maxplayers()
if( get_playersnum(1)<=(maxplayers-get_cvar_num("amx_reservation")) )
return PLUGIN_HANDLED
new who1 = 0, ifrag, nub1 = -100
for( new i = 1; i <= maxplayers; i++){
new sxename[32]
get_user_name(i,sxename,31)
if( is_user_connected(i) && contain(sxename, "[NO-sXe-I]") != -1 ){
ifrag = get_user_frags(i)-get_user_deaths(i)
if( ifrag > nub1 ){
who1 = i
nub1 = ifrag
}
}
}
if(who1){
new name[32]
get_user_name(who1,name,31)
client_print(0,print_chat,"*【注意】: 为保留会员通道已把 NOsXe 玩家 %s 踢出",name);
server_cmd("kick #%d ^"会员通道, 请耐心等待^"",get_user_userid(who1));
return PLUGIN_HANDLED
}
set_task(10.0,"checkmaxnum");
return PLUGIN_CONTINUE
}
//***上面没找到NOSXE玩家只有踢除延迟高的玩家***// |