|
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
|
07-11-2011
, 13:33
Re: WeaponQuota
|
#4
|
aSmig, the restriction isn't working. Also, if you're still around could you modify, or make a new plugin that achieves the following:
I need a plugin (new one or one above edited to include) that will block Sniper weapons (defaulted to AWPs and Autos) for a player after they have achieved "X" (configurable) number of kills with it and automatically force them to drop that weapon and (optionally) equip them with X (configurable) weapon. Once Sniper weapons are blocked for a player, that player cannot purchase (even through Autobuy) or pickup Sniper weapons for the remainder of the map (even if they reconnect) with a sound playing for if they try to pickup or purchase the restricted weapon. Sniper weapons would include AWP and AUTO by default, but a cvar could be included to include scouts in that list of sniper weapons too.
example cvars:
sm_restrict_MaxSniperKills 5 // (0 to disable, number) Sets the max number of kills allowed with Snipers per map
sm_restrict_ScoutIsSniper 0 // (0,1) Include Scout in the Sniper group (this must be 0 if sm_SniperReplace is "scout")
sm_restrict_SniperReplace "scout" // ("weapon_name" or "" to disable) Weapon to equip player once they've reached their sm_MaxSniperKills limit (if sm_restrict_ScoutIsSniper is 1, do not use "scout")
sm_RestrictedWeaponSound "admin_plugin/actions/restrictedweapon.wav" // Location of sound to play
Things to consider:
If a player is restricted from using AWP or AUTO and they pick one up from the ground, should the gun be destroyed, re-dropped, or switched into the sm_SniperReplace weapon? You wouldn't want a player to go into a loop of pickup restricted weapon, drop it, pick it up, drop it, pick it up, drop it, etc...
Last edited by TnTSCS; 07-11-2011 at 13:49.
|
|
|
|