View Single Post
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-10-2018 , 09:12   Re: Working "No scope only" plugin for CS:GO?
Reply With Quote #3

Quote:
Originally Posted by HvG Community View Post
https://forums.alliedmods.net/showthread.php?t=234863

Above one seem to work and you can then try something like this:

Code:
//Your plugin (Hook round start)

public void Event_RoundStart(Event event, const char[] name, bool dontBroadcast) 
{ 
    if(GameRules_GetProp("m_bWarmupPeriod") == 1) 
        {
            ServerCommand("sm plugins load noscope.smx")
           }
    if(GameRules_GetProp("m_bWarmupPeriod") == 0)
        { 
            ServerCommand("sm plugins unload noscope.smx")
        }
}
Damn I totally missed that one plugin, what an idiot. Or I thought I read some comment that it didn't work anymore. My apologies.
Regarding that additional code, the weapon restrict plugin includes pre and post warmup CFGs, I guess I could just set noscope_enable "1" in prewarmup.cfg and then noscope_enable "0" in postwarmup.cfg.
Testing as soon as the map changes, thanks for your help!
__________________
Obyboby is offline