[TF2] Weapon Zone Restriction
Description
This plugin allow you to restrict the usage of some weapons in specific area, for exemple, no construction in some point, you restrict the PDA of the engineer, or you simply don't want to get backstabed on this spot ? Restrict the knife.
Original idea here :
https://forums.alliedmods.net/showpo...39&postcount=1
Please, install Dev Zones first !
https://forums.alliedmods.net/showthread.php?p=2023591
Bugs :
None... yet.
Commands & Cvar :
Command
sm_tf2wzr_rc - Reaload the config file, require admin flag config.
Cvar
sm_tf2wzr_admin_immunity "0" - If set to 1, the admin with the flag SLAY will be affected as well by zones.
Installation :
1) Put TF2_WeaponZoneRestrictor.smx in your plugin folder : sourcemode/plugins
2) Restart server, reload map or reload plugins folder.
3) Find the config file in your configs folder (TF2_WeaponZoneRestrictor.ini) and add the item index you want to block :
Code:
// Write your weapons id here. A list of all weapons ID can be found here :
// https://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_Indexes
200
123
175
23
1
140
...
4) Create the zones, using
Dev Zones,
your zone's name should contain "TF2WZR_"
5) Type sm_tf2wzr_rc to reload the config file and you are done !
Require 'devzones.inc' to compille.
Request and think to do :
None... yet !
Screenshot :
(any for the moment)