Raised This Month: $ Target: $400
 0% 

Find lowest number..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
slurpycof
Senior Member
Join Date: Nov 2004
Old 04-20-2005 , 13:10  
Reply With Quote #3

If you want to check everyone, you can modify this code that I use in my frequent fragger program

Code:
 adm_check_slots(){     new maxslots = get_maxplayers()     new kickme = 0, playtime, unlimited = 0x7fffffff, adm_check_time     for(new i = 1; i <= maxslots; ++i){         if (!is_user_connected(i) && !is_user_connecting(i)) continue         if (get_user_flags(i) & ADMIN_RESERVATION) continue         playtime = get_user_time(i)         adm_check_time = (playtime + connecttime[i])         if(unlimited > adm_check_time){             unlimited = adm_check_time             kickme = i         }     }     return kickme }
slurpycof is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode