View Single Post
Problem with AMX script
Old
  (#1)
pinstripebert
Guest
 
Status:
Posts: n/a
Default Problem with AMX script - 25-02-2004

I'm trying to get this script working that will automatically add/remove bots to keep the server at a minimum amount of players (4 bots, 3 bots 1 player, 2 bots 2 players, etc). It works fine to begin, puts 4 bots in. However, when the first player joins the player count goes up to 5, so the program kicks a bot (using "realbot remove 1"). The problem is that after this happens the player count stays at 5, so next cycle it kicks another bot, and so on untill it is trying to remove bots when there are none. I tried using the
Code:
  get_playersnum(flag = 0)
  get_players(players[32], &num ,const flags[]="", const team[]="")
functions to get the count, but they both produce the same problem.

Does anyone have any ideas to help me????
  
Reply With Quote