Raised This Month: $ Target: $400
 0% 

Weapon Restrictions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 01-17-2009 , 14:34   Re: Weapon Restrictions
Reply With Quote #11

Quote:
Originally Posted by Sille View Post
Hey.

I'm running this weapon restriction together with this "winning team restriction": http://forums.alliedmods.net/showthread.php?p=542780

It works fine except some miner bugs and that the plugin restrict players to pickup restricted weapons if the are in winning team. I want them to be able to do that.

Is is possible to make something like sm_allow_pickup 0|1 to this weapon restriction plugin? I would really like to have that.

Due to the pickup restriction following happens on my server:
  • Players in the winning team that try to pickup restricted weapons today lose all there ammo in the pistol.
  • If someone in the same team picks up a restricted weapon, one of the one on the team that have one lose it so there still are the same amount of weapons in the team.
I don't support that plugin that red posted and when used alone, weapon restrictions performs as operated. I will add a feature request to my list of stuff to do for the future and see about incorporating another cvar, but at this time I'm not going to add in one thing.

Quote:
Originally Posted by HolyKnight View Post
Our WCS Server recently moved from Mani to SM with the hopes for better support. We have used this plug-in to restrict the AWP and both Auto-Snipes (AS). We have a couple races that are built around the ability to utilize either the AWP or AS. From what I've read so far it doesn't appear that we have addressed scripting the sm_unrestrict command within the confines of a WCS race. If you have the time, please take a look at this patch of code and offer a few suggestions.

*****Attached Code*****

"name" "Shadow Shock"
"author" "HOLLIDAY"
"shortdescription" "Shadow Shock,Reflect,Fading Cloak of Shadows,AWP!"
"required_level" "140"
"maximum_level" "0"
"allow_only" "0"
"teamlimit" "1"
"preloadcmd" "0"
"player_spawn_cmd" "es est_playplayer event_var(userid) plats\hall_elev_stop.wav;es es_delayed 1.6 est_playplayer event_var(userid) weapons\explode3.wav;es es_xdelayed 1.8 est_unrestrict event_var(userid) weapon_awp"
"round_start_cmd" "0"
"round_end_cmd" "0"
"numberofskills" "4"
"numberoflevels" "4"
"skillnames" "Shadow Shock|Reflect|Fading Cloak of Shadows|AWP!"
"skilldescr" "Shock Enemy|Shock attacker|Invisibility that fades in and out|Switch from primary Weapon to AWP!"
"skillcfg" "player_attacker|player_victim|player_spawn|p layer_ultimate"

As you can see, in the red text, we are utilizing an EST cmd to unrestrict the weapon. The pertinent mods and plug-ins that we are using are as follows:

CS:S, WCS(WarCraft Mod) .75
SourceMod Version: 1.1.0-dev Moving to 1.10 production
Metamod:Source version 1.7.0
EventScripts v1.5.0.171
EST .418d

Thanks in advance for your time. I am by no means a true code monkey thus the issue. I have a CompSci degree but I am an Operations Manager for the Air Force in practice. Take care.
You cannot unrestrict guns per client unfortunately, and it is based solely off of teams. I will look at how difficult this is, but in all honesty, I am fearful of bloating this plugin more with how many extra arrays this will take.
__________________
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
 



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 07:14.


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