new who = 0, nub2 = 0
new maxplayers = get_maxplayers()
new stats[8], body[8]
for(new i = 1; i < maxplayers; ++i){
get_user_wstats( i, 0, stats, body)
if ( (stats[1] - stats[0]) >= nub2 ) {
who = i
nub2 = stats[1] - stats[0]
}
}
checkkick() {
new who = 0
new worst = 1<<31
new score
new maxplayers = get_maxplayers()
for(new i = 1; i <= maxplayers; ++i){
if ( !is_user_connected(i) && !is_user_connecting(i) )
continue
if (get_user_flags(i)&ADMIN_RESERVATION)
continue
score = get_user_frags(i) - get_user_deaths(i)
if ( score < worst ) {
worst = score
who = i
}
}
if(who){
server_cmd("kick #%d^"你已被会员挤出,等下再试^"", get_user_userid(who) )
}
return who
}