Raised This Month: $12 Target: $400
 3% 

Working "No scope only" plugin for CS:GO?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-09-2018 , 07:25   Working "No scope only" plugin for CS:GO?
Reply With Quote #1

Hi, I'd like to get a plugin to force noscope with scoped weapons DURING WARMUPS.
I am using Dr!fter's Weapon restrict plugin to set warmups, so, whenever a scoped weapon is chosen for warmups, this plugin should disable scoping for the players.
Once the warmup is over, the plugin should revert the scoping to normal.
I've browsed the plugins but they are quite old and most were not working anymore or had unsolved bugs (haven't tested myself, I just based this on the latest posts in each thread).
Thanks!!
__________________
Obyboby is offline
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
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
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-10-2018 , 17:32   Re: Working "No scope only" plugin for CS:GO?
Reply With Quote #4

Get your shit together man!!

Yea that should work aswell
HvG Community 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 16:08.


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