View Single Post
Re: New AMX Plug In For RealBot
Old
  (#4)
Willem
Guest
 
Status:
Posts: n/a
Default Re: New AMX Plug In For RealBot - 09-03-2004

Hello, if you want to use the fillslots function too, start Terrans second amxplugin ( called playertrack ) also.
After change this part of his realbot_control :
public checkSlots() {

// new players[32]
new snum = 0
new fnum = get_cvar_num("tn_bc_fillslots")
new tcount = get_cvar_num("tn_pt_terror")
new ctcount = get_cvar_num("tn_pt_ct")
new speccount = get_cvar_num("tn_pt_spec")
new ucount = get_cvar_num("tn_pt_unknown")
// log_message("[TN-BC] number of taken slots: %d/%d",snum,fnum)

snum = tcount + ctcount + ucount + speccount

// trivial approach without further checks:
if (snum < fnum) server_cmd("realbot add")
if (snum > fnum) server_cmd("realbot remove 1")
  
Reply With Quote