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

[TF2] Weapon Zone Restriction


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
4993
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Restrict weapons on some area definied by DevZones AND trigger_multiple brushes.
    Old 01-09-2016 , 14:32   [TF2] Weapon Zone Restriction
    Reply With Quote #1


    [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)
    Attached Files
    File Type: smx TF2_WeaponZoneRestrictor.smx (6.9 KB, 304 views)
    File Type: sp Get Plugin or Get Source (TF2_WeaponZoneRestrictor.sp - 322 views - 3.8 KB)
    __________________

    Last edited by Arkarr; 01-09-2016 at 15:55.
    Arkarr is offline
    Werewolf_UK
    AlliedModders Donor
    Join Date: Oct 2010
    Location: United Kingdom
    Old 01-09-2016 , 15:15   Re: [TF2] Weapon Zone Restriction
    Reply With Quote #2

    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.
    __________________
    Werewolf_UK is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 01-09-2016 , 15:54   Re: [TF2] Weapon Zone Restriction
    Reply With Quote #3

    Quote:
    Originally Posted by sgt_phsco View Post
    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
    __________________

    Last edited by Arkarr; 01-09-2016 at 15:54.
    Arkarr is offline
    Werewolf_UK
    AlliedModders Donor
    Join Date: Oct 2010
    Location: United Kingdom
    Old 01-10-2016 , 10:11   Re: [TF2] Weapon Zone Restriction
    Reply With Quote #4

    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.
    __________________
    Werewolf_UK is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 01-10-2016 , 10:18   Re: [TF2] Weapon Zone Restriction
    Reply With Quote #5

    Quote:
    Originally Posted by sgt_phsco View Post
    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.
    __________________
    Arkarr is offline
    Reply


    Thread Tools
    Display Modes

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


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