Many of us who use sourcebans can use this as a temporary fix:

1. disable your sourcebans plugin by renaming it to "sourcebans.smx-disabled"

2. verify that tf/addons/sourcemod/configs/admins.cfg contains all your current 
admins and reserved-slot holders etc.

3. place the script (below) into the /tf/addons/sourcemod/configs/ directory, 
name it "fix.php", change to that directory on your command line, and execute 
the script with "php fix.php > admins-new.cfg"

4. check that it worked... look at the admins-new.cfg and compare it to 
admins.cfg to see if the conversion worked.

5. delete your admins.cfg and rename admins-new.cfg to admins.cfg and restart 
your server.

That will, at least, give your admins back their powers.

Here's the script:

--------------------------------------
<?                                                                              
                                       
                                                                                
                                        
$f = file_get_contents("admins.cfg");                                           
                                        
                                                                                
                                        
$f = explode('"',$f);                                                           
                                        
                                                                                
                                        
foreach($f as $line) {                                                          
                                       
        if(substr($line,0,6)=="STEAM_") {                                       
                                        
                $a=explode(':',substr($line,8));                                
                                       
                echo '[U:1:'.($a[1]*2+$a[0]).']"';                              
                                       
        }                                                                       
                                        
        else echo $line.'"';                                                    
                                       
}                                                                               
                                        
                                                                                
                                        
?>                                                                              
                                       
--------------------------------------

Of course, this assumes you have php and can run it from the command line. It's 
what I came up with, though, and I thought I'd share it since it worked for us.

cheers,

 - Peter


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds

Reply via email to