会员进入踢NOSXE玩家或高延迟者
如题,下者付点通币...哈哈...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
get_user_name(i,sxename,31)
if( is_user_connected(i) && contain(sxename, "") != -1 ){
ifrag = get_user_frags(i)-get_user_deaths(i)
if( ifrag > nub1 ){
who1 = i
nub1 = ifrag
}
}
}
if(who1){
new name
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玩家只有踢除延迟高的玩家***// 顶一下啊啊:lol 没源码大家下的时候注意:Q 没缘码,不要下啊!
页:
[1]