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

Weapon Restrictions


Post New Thread Reply   
 
Thread Tools Display Modes
Derek
Senior Member
Join Date: Sep 2007
Old 10-09-2008 , 17:28   Re: Weapon Restrictions
Reply With Quote #281

I of course did that as thats how they were restricted from the start.
__________________
Derek
Owner
XFactorServers
Game Server Hosting
Derek is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-09-2008 , 18:31   Re: Weapon Restrictions
Reply With Quote #282

Plugin updated. See the OP for details.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Isias
Senior Member
Join Date: Apr 2006
Old 10-10-2008 , 02:43   Re: Weapon Restrictions
Reply With Quote #283

Added german translation (UTF - 8 )
Attached Files
File Type: txt restrict.phrases.txt (555 Bytes, 106 views)
Isias is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-10-2008 , 08:21   Re: Weapon Restrictions
Reply With Quote #284

Sweet! It'll be in the download file on the next update.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Derek
Senior Member
Join Date: Sep 2007
Old 10-11-2008 , 18:30   Re: Weapon Restrictions
Reply With Quote #285

The latest update overwrites the weapon_restriction.cfg everytime the maps changes or server restarts so you can't keep your default settings.
__________________
Derek
Owner
XFactorServers
Game Server Hosting
Derek is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-11-2008 , 19:53   Re: Weapon Restrictions
Reply With Quote #286

Huh? Thats...weird considering there isn't any file writing code in there.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
ayuki
Member
Join Date: May 2008
Old 10-16-2008 , 15:45   Re: Weapon Restrictions
Reply With Quote #287

FLASHBANG RESTRICT TO 0 AMMO IS LIMITED
__________________

ayuki is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-16-2008 , 20:36   Re: Weapon Restrictions
Reply With Quote #288

There was a bug in the older version. Get the latest version.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
|GsX| GrimReaper
Senior Member
Join Date: Sep 2008
Old 10-16-2008 , 20:54   Re: Weapon Restrictions
Reply With Quote #289

Something for the TODO list please:

We call it "Up by 5", but basically build in functionality so that if a team is winning by x rounds, they are totally restricted, like Mani had.

You'd need sm_restrict_winning 0|x "0=off | set to how many rounds leading before winning team is restricted"

You'd have to get the score for T and CT, do some math etc. You could then either restrict any weapons set for > -1 or go further to alter the parameters so you could use something like sm_restrict_awp_winning 0|1.

I might take a crack at this and send you the resulting code, rather than post it, if I can figure out how to do it.
|GsX| GrimReaper is offline
|GsX| GrimReaper
Senior Member
Join Date: Sep 2008
Old 10-16-2008 , 22:08   Re: Weapon Restrictions
Reply With Quote #290

WOW!!! It's official, I'm a n00b. I can't make heads or tails of the extensive coding you've done.

It seems this would be allot of work, but I think it's well worth it.

You'd need to hook the round_start event and do the score check and restricting then. I don't understand all the Trie stuff, but could be used to store the data I think.

You'd need the sm_restrict_winning for an if statement in round_start, then somthing like new CT_Rounds_Won = GetTeamScore(3) and new T_Rounds_Won = GetTeamScore(2) then do CT - T and T - CT to determine who's winning. Then you'd have to get the original values of the cvars, so that when you do sm_restrict on a weapon/team, you could reset the previous restrictions once the winning team is no longer pwning so badly.

I think you probably get my idea, without me typing bad syntax any further. Here's a link to the description of how Mani worked: http://www.mani-admin-plugin.com/ind...d=30&Itemid=25

Maybe to reset things, you could just read the config file again. Then if a team is winning, you might be able to simply check for isweaponrestricted for each weapon in the list for that team and set them to sm_restrict 0, I dunno, I'm just rambling, so going to bed, please reply.

Last edited by |GsX| GrimReaper; 10-16-2008 at 22:30.
|GsX| GrimReaper 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 04:27.


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