View Single Post
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-09-2018 , 13:50   Re: Working "No scope only" plugin for CS:GO?
Reply With Quote #2

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")
        }
}
HvG Community is offline