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

Simple Weapon Restriction


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
WhiteWolf
Junior Member
Join Date: Oct 2007
Plugin ID:
200
Plugin Version:
1.5d
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Restricts weapons
    Unapprover:
    Reason for Unapproving:
    Reported to not be working.
    Old 10-24-2007 , 00:51   Simple Weapon Restriction
    Reply With Quote #1

    Fairly simple weapon restriction plugin, listed/tested on CS:S but should work for any source based game.

    Note: Does not refund any money for lost items or alert the player that the weapon is restricted. This is due to simplicity of the need on my servers. I am simply releasing this plugin for anyone who can make use of it. I suggest advertising your restricted weapons.

    Note2: When restricting items, it is necessary to include the full name of the weapon. For example: sm_restrict weapon_awp

    Note3: Won't work with TF2 until I get the offsets for it.

    Commands/cvars:
    sm_restrict <weapon> ; restricts a weapon from being picked up/bought
    sm_round_restrict <weapon ; restricts a weapon from being retained the next round
    sm_unrestrict <weapon> ; removes a pickup/bought restriction
    sm_round_unrestrict ; removes a start of round weapon restriction

    cvars:
    sm_enable_restrict 1/0 ; enables buy/pickup restrictions
    sm_enable_round_restrict 1/0 ; enables/disables round-start restrictions
    sm_roundcheck_delay <float seconds> ; the seconds from player spawn items are checked/removed -- needs to be about 0.2 in my experimentation

    I'll entertain bug fixes and simple feature requests.

    Credit given where credit due:
    devicenull - Original code [that now doesn't work] and helping me with a couple portions and entertaining me while I bugged him.
    dalto - Sell!; offsets to Weapon_Equip
    Attached Files
    File Type: zip wwrestrict.zip (9.3 KB, 1298 views)

    Last edited by WhiteWolf; 12-05-2007 at 15:44.
    WhiteWolf is offline
    Send a message via ICQ to WhiteWolf Send a message via MSN to WhiteWolf
     



    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 10:34.


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