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

[CS:S/CS:GO] AWP Win Limit Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Plugin ID:
3945
Plugin Version:
1.0.0.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Restrict AWPs for team that is dominating
Old 10-24-2013 , 11:18   [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #1

DESCRIPTION:
Allow you to restrict AWPs for a team if they are winning by a certain number of rounds.

This plugin was created by request of Monochrome (https://forums.alliedmods.net/showpo...postcount=1442)

This plugin will remember your original weapon_restrict settings for the AWP and set them back to the old settings if this plugin is unloaded, disabled, or the team no longer is dominating the other.

CVars


Change Log


REQUIREMENTS:
CSS/CS:GO Weapon Restrict
The include files for weapon_restrict and autoexecconfig, if you wish to compile yourself.

INSTALLATION:
Drag and drop, edit config file (will be auto-created).

CREDITS:
Monochrome for the request and idea.
Attached Files
File Type: smx AWP_win_limit.smx (9.2 KB, 818 views)
File Type: sp Get Plugin or Get Source (AWP_win_limit.sp - 881 views - 6.6 KB)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-24-2013 at 12:28. Reason: Update from 1.0.0.0 to 1.0.0.1
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-24-2013 , 11:27   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #2

If you recompile with _DEBUG set to 1, you'll get log spew like this (log files look like LYYYYMMDD.log):

Debug Log


If the plugin fails to load, check your addons/sourcemod/logs folder for error log and find the reason in there. Error files look like: errors_YYYYMMDD.log
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-24-2013 at 11:30.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-24-2013 , 12:43   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #3

Plugin updated:

Code:
1.0.0.1	*	Modified code with Dr!fter's suggestions using Restrict_GetRestrictValue for original values of weapon_restrict awp limits
	+	Added code to disable this plugin if weapon_restrict is unloaded
__________________
View my Plugins | Donate
TnTSCS is offline
TrollfateeR
Junior Member
Join Date: Nov 2013
Old 11-18-2013 , 13:24   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #4

Where and how to set the Cvars?
TrollfateeR is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 11-18-2013 , 13:31   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #5

Quote:
Originally Posted by TrollfateeR View Post
Where and how to set the Cvars?
Stop spamming
__________________
luki1412 is offline
ocidius
Senior Member
Join Date: Oct 2014
Old 01-12-2015 , 00:59   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #6

Hi, is it possible to make change something ??
i would like to restrict weapons (ssg08 awp g3sg1 sg550 scar20) when a team is winning by 3
Can you change it for me please
perhaps by CVAR when a team win by "X"
"restrict_weapon awp" set to "1"/"0"
"restrict_weapon g3sg1" set to "1"/"0"
"restrict_weapon ssg08" set to "1"/"0"
etc ......

Best regards
OCIDIUS

Last edited by ocidius; 01-12-2015 at 01:02.
ocidius is offline
ocidius
Senior Member
Join Date: Oct 2014
Old 02-10-2015 , 17:34   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #7

Possible or not ??
ocidius is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 02-10-2015 , 18:09   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #8

very possible. Not sure when I would get around to this request though.
__________________
View my Plugins | Donate
TnTSCS is offline
ocidius
Senior Member
Join Date: Oct 2014
Old 02-13-2015 , 19:47   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #9

perhaps it would be better if you can restrict a weapon group for a score like win a game by3
and had a cfg which define the weapon group

.....
ocidius is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 02-16-2015 , 05:39   Re: [CS:S/CS:GO] AWP Win Limit Restrict
Reply With Quote #10

Yes - that's what I was going to do - much like how I handle the restrictions in the KDR plugin I have... which might be what you're looking for anyways.
__________________
View my Plugins | Donate
TnTSCS is offline
Reply



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 08:09.


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