Raised This Month: $32 Target: $400
 8% 

Quick and dirty weapon restriction


Post New Thread Reply   
 
Thread Tools Display Modes
Author
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Plugin ID:
4
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    Plugin fields not completed within a week of request, no author response
    Old 03-29-2007 , 22:13   Quick and dirty weapon restriction
    Reply With Quote #1

    This allows admins to restrict weapons. It does not repay the player if it removes a weapon.

    The other issue, is if players have a weapon out when it's restricted, it just stops working. It loses it's ammo display, and will not fire.

    Usage:
    Add "admin_restrict weapon_knife" or whatever to your server.cfg. You can have up to 32 restrictions at a time. Use "admin_unrestrict weaponname" to unrestrict a weapon.

    http://devicenull.org/sm_plugins/restriction.sp
    __________________
    Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/

    Last edited by Freecode; 07-01-2007 at 20:43.
    devicenull is offline
    k3rMz
    Junior Member
    Join Date: Dec 2006
    Old 07-07-2007 , 06:16   Re: Quick and dirty weapon restriction
    Reply With Quote #2

    were would i add the restrictions.sp file

    new to sm , so still learnin

    thanx
    k3rMz is offline
    janbanan
    Member
    Join Date: Jun 2007
    Old 07-07-2007 , 07:23   Re: Quick and dirty weapon restriction
    Reply With Quote #3

    http://www.sourcemod.net/compiler.php
    janbanan is offline
    devicenull
    Veteran Member
    Join Date: Mar 2004
    Location: CT
    Old 07-08-2007 , 23:50   Re: Quick and dirty weapon restriction
    Reply With Quote #4

    Take a look at http://forums.alliedmods.net/showthread.php?t=56863

    This one was more written as an example of what could be done.
    __________________
    Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
    devicenull is offline
    S1ugg0
    Junior Member
    Join Date: Aug 2007
    Location: Sweden
    Old 08-19-2007 , 04:23   Re: Quick and dirty weapon restriction
    Reply With Quote #5

    Hi devicenull.
    this night i had a problem with youre plugin, look below-->

    L 08/19/2007 - 00:27:01: [SM] Plugin encountered error 15: Array index is out of bounds
    L 08/19/2007 - 00:27:01: [SM] Displaying call stack trace for plugin "restriction.smx":
    L 08/19/2007 - 00:27:01: [SM] [0] Line 67, restriction.sp::RestrictWeapon()
    L 08/19/2007 - 00:27:01: [SM] [1] Line 48, restriction.sp::cmdRestrict()

    dont know what it is, just so you know.

    S1ugg0
    S1ugg0 is offline
    Parker133t
    New Member
    Join Date: Sep 2007
    Old 09-14-2007 , 14:13   Re: Quick and dirty weapon restriction
    Reply With Quote #6

    Can the weapon restriction be effected by win rounds?

    Such as if CT's have a certain number of win rounds over T's can weapon restrictions like that work this mod?

    ex. - CT's have 5+ round wins over T's, therfore AWP and Autosnipers will be disabled unless T's win more rounds...

    I know mani admin used to have a workaround for this, does this mod make it possible?
    Parker133t is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 09-18-2007 , 12:25   Re: Quick and dirty weapon restriction
    Reply With Quote #7

    Device, is this plugin still supported?
    __________________
    I'm a blast from the past!
    ferret 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 11:23.


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