Raised This Month: $32 Target: $400
 8% 

[ANY]Admin all spectate


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-25-2016 , 13:15   Re: [ANY]Admin all spectate
Reply With Quote #211

insurgency
Code:
"Games"
{
	"insurgency"
	{
		"Offsets"
		{
			"IsValidObserverTarget"
			{
				"windows"	"419"
				"linux"		"420"
			}
		}
	}
}
__________________
Do not Private Message @me

Last edited by Bacardi; 02-25-2016 at 13:15.
Bacardi is offline
uurbyrkdr
Senior Member
Join Date: Apr 2015
Old 02-29-2016 , 13:47   Re: [ANY]Admin all spectate
Reply With Quote #212

Now, not working for CS:GO.
Can someone confirm this?
uurbyrkdr is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 02-29-2016 , 13:54   Re: [ANY]Admin all spectate
Reply With Quote #213

It works for me.
__________________
Wilczek is offline
uurbyrkdr
Senior Member
Join Date: Apr 2015
Old 02-29-2016 , 13:56   Re: [ANY]Admin all spectate
Reply With Quote #214

can you send me all files
gamedata and others
i don't know, where is the problem o.O
uurbyrkdr is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 02-29-2016 , 14:28   Re: [ANY]Admin all spectate
Reply With Quote #215

You can find gamedata here: https://bitbucket.org/Drifter321/adm...spec.games.txt

Also be sure to add an override for admin_allspec_flag. By default only admins with 'z' flag can see both teams.
__________________
Wilczek is offline
'-_-'<3zok<3'-_-'
Senior Member
Join Date: Feb 2010
Location: Norway
Old 03-07-2016 , 16:18   Re: [ANY]Admin all spectate
Reply With Quote #216

Quote:
Originally Posted by Wilczek View Post
You can find gamedata here: https://bitbucket.org/Drifter321/adm...spec.games.txt

Also be sure to add an override for admin_allspec_flag. By default only admins with 'z' flag can see both teams.
Would this be the correct way to setup overrides?
PHP Code:
Overrides
{
    
/**
     * By default, commands are registered with three pieces of information:
     * 1)Command Name         (for example, "csdm_enable")
     * 2)Command Group Name    (for example, "CSDM")
     * 3)Command Level        (for example, "changemap")
     *
     * You can override the default flags assigned to individual commands or command groups in this way.
     * To override a group, use the "@" character before the name.  Example:
     * Examples:
     *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
     *         "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
     *      "@mod_group"    "o"             //
     *        "@CSDM"            "b"                //
     * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
     * any setting that csdm_enable previously had.
     *
     * You can make a command completely public by using an empty flag string.
     */
     
    
"Groups"
{
    
"mod"
    
{
        
"flags"        "bcdfo"
        "immunity"        "0"
        "Overrides"
        
{
            
"sm_burn"        "deny"
            "sm_timebomb"        "deny"
            "sm_freeze"        "deny"
            "sm_firebomb"        "deny"
            "sm_freezebomb"        "deny"
            "sm_blind"        "deny"
            "sm_drug"        "deny"
            "sm_gravity"        "deny"
            "sm_noclip"        "deny"
            "sm_rename"        "deny"
            
[B]"admin_allspec_flag" "b"[/B]
        }
    }
}


Scratch this, everything was wrong with this, anyone have a good example of this override?

Last edited by '-_-'<3zok<3'-_-'; 03-07-2016 at 16:59. Reason: stupidity
'-_-'<3zok<3'-_-' is offline
Send a message via Skype™ to '-_-'<3zok<3'-_-'
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 03-07-2016 , 18:08   Re: [ANY]Admin all spectate
Reply With Quote #217

You need a global override for this, so it would be an admin_overrides.cfg file:

PHP Code:
Overrides
{
    
"admin_allspec_flag"        "b"

If you wish it to keep it group-restricted, you could add in an admin_groups.cfg file:
PHP Code:
"Groups"
{
    
"mod"
    
{
        
"flags"        "bcdfo"
        "immunity"        "0"
        "Overrides"
        
{
            
"sm_burn"        "deny"
            "sm_timebomb"        "deny"
            "sm_freeze"        "deny"
            "sm_firebomb"        "deny"
            "sm_freezebomb"        "deny"
            "sm_blind"        "deny"
            "sm_drug"        "deny"
            "sm_gravity"        "deny"
            "sm_noclip"        "deny"
            "sm_rename"        "deny"
            "admin_allspec_flag" "allow"
        
}
    }

__________________
Wilczek is offline
'-_-'<3zok<3'-_-'
Senior Member
Join Date: Feb 2010
Location: Norway
Old 03-08-2016 , 07:04   Re: [ANY]Admin all spectate
Reply With Quote #218

Quote:
Originally Posted by Wilczek View Post
You need a global override for this, so it would be an admin_overrides.cfg file:

PHP Code:
Overrides
{
    
"admin_allspec_flag"        "b"

If you wish it to keep it group-restricted, you could add in an admin_groups.cfg file:
PHP Code:
"Groups"
{
    
"mod"
    
{
        
"flags"        "bcdfo"
        "immunity"        "0"
        "Overrides"
        
{
            
"sm_burn"        "deny"
            "sm_timebomb"        "deny"
            "sm_freeze"        "deny"
            "sm_firebomb"        "deny"
            "sm_freezebomb"        "deny"
            "sm_blind"        "deny"
            "sm_drug"        "deny"
            "sm_gravity"        "deny"
            "sm_noclip"        "deny"
            "sm_rename"        "deny"
            "admin_allspec_flag" "allow"
        
}
    }

Are you 100% its still working for you? It was working for me before but doesnt anymore, I've recompiled the plugin, with the latest sourcemod and dhooks, it gives no errors but still doesnt work. Also updated the gamedata.
'-_-'<3zok<3'-_-' is offline
Send a message via Skype™ to '-_-'<3zok<3'-_-'
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 03-08-2016 , 09:20   Re: [ANY]Admin all spectate
Reply With Quote #219

Yes it is. I use SM 1.8-5868 on Windows.
__________________
Wilczek is offline
You9
Member
Join Date: Mar 2016
Old 05-09-2016 , 18:24   Re: [ANY]Admin all spectate
Reply With Quote #220

Using latest SM, dhooks and allow-spec.games.txt file, but it's not working. OnClientPostAdminCheck is fired but the IsValidTarget is never fired, someone know some solution?
You9 is offline
Reply


Thread Tools
Display Modes

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 21:04.


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