
   #include <amxmod>
   #include <amxmisc>
   new rslots = 4  //Reserved slots
   public round_start(id) {
   new reserved_ppl = 0;
   new ppl_play = 0;
   new tslots_b = 0;
   new tslots = get_maxplayers();
   if (rslots) {
   for ( new p=1; p<=get_maxplayers(); p++ )
     {
       if (get_user_flags(p)&ADMIN_RESERVATION)
       {
        reserved_ppl++
       }
     }
   if (reserved_ppl > rslots)
   {
   reserved_ppl = rslots
   }
   }
   tslots = tslots - rslots
   tslots_b = tslots - 4
   ppl_play = get_playersnum() - reserved_ppl
   if (tslots == ppl_play || ppl_play>=tslots_b)
   {
   server_cmd("sv_allowdownload 0")
   // client_print( id , print_notify , "sv_allowdownload 0" )
   } else {
   server_cmd("sv_allowdownload 1")
   // client_print( id , print_notify , "sv_allowdownload 1" )
   }
   return PLUGIN_CONTINUE
   }
   public plugin_init() {
   register_plugin("download_stop","1.0","Manip")
   register_event("ResetHUD","round_start","bc")
   server_cmd("sv_allowdownload 1")
   return   PLUGIN_CONTINUE
   }
