AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Weapon Zone Restriction (https://forums.alliedmods.net/showthread.php?t=277457)

Arkarr 01-09-2016 14:32

[TF2] Weapon Zone Restriction
 
2 Attachment(s)

[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)

Werewolf_UK 01-09-2016 15:15

Re: [TF2] Weapon Zone Restriction
 
I've given this a try on my server, but I don't see any settings to define where the areas should be. I can see the config to define which weapons get blocked, but no other configs.

Arkarr 01-09-2016 15:54

Re: [TF2] Weapon Zone Restriction
 
Quote:

Originally Posted by sgt_phsco (Post 2381703)
I've given this a try on my server, but I don't see any settings to define where the areas should be. I can see the config to define which weapons get blocked, but no other configs.

You have to install Devzones first, and then type !zones and create a zone wich contain name's contain "TF2WZR_", so for exemple : TF2WZR_zone1

Werewolf_UK 01-10-2016 10:11

Re: [TF2] Weapon Zone Restriction
 
Tried this again on the server with Arkarr present to test it. We were able to create zones which worked properly, but when the map restarted it didn't save the zones.

Arkarr 01-10-2016 10:18

Re: [TF2] Weapon Zone Restriction
 
Quote:

Originally Posted by sgt_phsco (Post 2381935)
Tried this again on the server with Arkarr present to test it. We were able to create zones which worked properly, but when the map restarted it didn't save the zones.

Problems come from DevZones.


All times are GMT -4. The time now is 04:38.

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