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

Simple Restrictions [CSS/CSPROMOD]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
karuru
Junior Member
Join Date: Feb 2010
Plugin ID:
1497
Plugin Version:
1.3.5
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin restricts weapons for any mod.
    Unapprover:
    Reason for Unapproving:
    Multiple errors reported. Author inactive.
    Old 02-26-2010 , 18:15   Simple Restrictions [CSS/CSPROMOD]
    Reply With Quote #1



    Hi there,

    Here is my Simple Restrictions plugin. It allows you to restrict weapons for CSS and CSPROMOD.
    But it also works with any other mod in wich you can buy items with the "buy" command.
    If you want a restrict plugin with a lot of features you're wrong here, this plugin can just restrict a weapon, not more.
    I want to keep this plugin simple, as the name already says, so please don't request a lot of new features ;) but feel free to report bugs!
    You may also look at the repositority of this plugin for recent snapshots.
    Big thanks to MistaGee. He helped me a lot with this plugin.


    Installation:


    Put the simplerestrictions.smx into /addons/sourcemod/plugins/ folder.
    Put the restrictedweapon.wav into /sound/admin_plugin/actions/ folder.


    How to use:


    Following commands are available:

    • sm_restrict <item>
    Restricting a weapon is much easier since 1.3!
    For example, you want to restict the AWP
    Just type /restrict awp in the chat.
    You can also write /restrict weapon_awp it's equal.

    • sm_unrestrict <item>
    The unrestrict command works the same way as the resrict command.
    Just write /unrestrict awp oder /unrestrict weapon_awp in the chat.

    • restrictions
    If you type /restrictions in the chat, it will display you all weapons wich are restricted. Every player can use this.

    • Restrict permanent
    If you change the map or restart the server, the restrictions wich you entered with the command are gone.
    If you want to restrict a weapon permanent, just put the command "sm_restrict <item>" in your server.cfg.
    Of course you have to replace <item> with the weapon you want to restrict.


    • Weapon list
    Here's a list for you with some things you can restrict, the list is for CSS but should also work with CSPROMOD.
    IMPORTANT: For some weapons there are two names, so you have to restrict both names because you can buy it with both names ;)

    Code:
    hegrenade / hegren
    flashbang / flash
    smokegrenade
    glock
    p228
    deagle
    fiveseven
    elite
    m3
    xm1014
    tmp
    ump45
    mp5navy / mp5
    p90
    galil
    ak47
    m4a1
    aug
    sg552
    m249
    scout
    awp / magnum
    sg550
    g3sg1
    vest / kevlar
    vesthelm
    Settings:

    the file simple_restrictions.cfg will be created in /cfg/sourcemod/ after the first start of the plugin.
    It has the following settings:

    Code:
    // Displays the restrict message in the CenterText.
    // Default: "1"
    sm_restrict_centertext "1"
    
    // Displays the restrict message in the Chat.
    // Default: "0"
    sm_restrict_chattext "0"
    
    // Displays the restrict message in the HintText.
    // Default: "0"
    sm_restrict_hinttext "0"
    
    // Does not restrict the knife when sm_restrict_all is active.
    // Default: "0"
    sm_restrict_knife "0"
    
    // Emits sound to player.
    // Default: "1"
    sm_restrict_sound "1"
    
    // Restricts all weapons.
    // Default: "0"
    sm_restrict_all "0"
    
    // Does not restrict the knife if sm_restrict_all is active.
    // Default: "0"
    sm_restrict_knife "0"


    Changelog:



    • 1.3.5 You can now restrict all or all but knife, also roundstart event added
    • 1.3 Restriction works now in properly in CSS and the restrict method is more simple
    • 1.2 Restricted weapons can't be picked up anymore
    • 1.1 Added sm_unrestrict <item>
    • 1.0 First Release



    Known Bugs - Will be fixed soon:


    • Pickup restriction doesn't work in cspromod yet (i don't have the pickup event yet)
    Attached Files
    File Type: zip sound.zip (35.0 KB, 1617 views)
    File Type: sp Get Plugin or Get Source (simplerestrictions.sp - 3759 views - 7.7 KB)

    Last edited by karuru; 03-25-2010 at 11:22.
    karuru is offline
    Send a message via ICQ to karuru Send a message via MSN to karuru
    Steno
    New Member
    Join Date: Feb 2010
    Old 02-27-2010 , 09:07   Re: Simple Restrictions
    Reply With Quote #2

    Thanks!
    It works great on my server!
    :-*
    Steno is offline
    Send a message via ICQ to Steno
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 02-28-2010 , 10:44   Re: Simple Restrictions
    Reply With Quote #3

    we there is already 2 plugins that does the same even more. Whats the diff you have?
    __________________
    shustas is offline
    karuru
    Junior Member
    Join Date: Feb 2010
    Old 02-28-2010 , 16:15   Re: Simple Restrictions
    Reply With Quote #4

    I can just find two other restriction plugins.
    [CSS] Weapon Restrict and UserRestrict
    The problem is, with those plugins you can't restrict weapons of any other mod than CS:S, for example cspromod.
    with mine plugin you can restrict every weapon wich you can buy via the "buy" command, and it is not limited to CS:S ;)
    more compatible, less complicated
    karuru is offline
    Send a message via ICQ to karuru Send a message via MSN to karuru
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 03-01-2010 , 09:02   Re: Simple Restrictions
    Reply With Quote #5

    I can see one big problem with this, it dosnt stop people from autobuying the weapon or rebuying it or even picking it up. Also as far as i can remember when you buy guns via the menu you buy them without the weapon_ in front atleast in css (if i recall correctly).You could als buy the awp by doing buy magnum along with a few other weapons you can buy with different names.You do these things and it becomes less simple after You linked to my restrict above feel free to have a look what i did for the problems above.
    Dr!fter is offline
    karuru
    Junior Member
    Join Date: Feb 2010
    Old 03-01-2010 , 10:16   Re: Simple Restrictions
    Reply With Quote #6

    it works if you buy items out of the menu.

    and that you can pick up weapons wich are restricted is a problem yes, but i will add it to the next version

    Last edited by karuru; 03-01-2010 at 10:37.
    karuru is offline
    Send a message via ICQ to karuru Send a message via MSN to karuru
    stephane50
    Senior Member
    Join Date: Jan 2009
    Old 03-02-2010 , 11:45   Re: Simple Restrictions
    Reply With Quote #7

    ps: in the console says ca
    Unknown command: restrictions
    __________________
    Serv cz 91.191.158.243:27015 A s s a s s i n Mod
    Serv cz 91.191.159.111:27015 Call of duty Mod
    Admin ldr Zelko Rct
    stephane50 is offline
    karuru
    Junior Member
    Join Date: Feb 2010
    Old 03-02-2010 , 13:16   Re: Simple Restrictions
    Reply With Quote #8

    hi,
    @ YouzAMenace

    If you buy items over the menu in css then the weapons are not restricted... i have to fix this
    in cspromod all works fine
    I'm already working on a new version

    @ stephane50

    i will fix this, but this doesn't affect the plugin, should work anyway ;)
    __________________
    My Jabber ID: [email protected]
    karuru is offline
    Send a message via ICQ to karuru Send a message via MSN to karuru
    karuru
    Junior Member
    Join Date: Feb 2010
    Old 03-02-2010 , 15:03   Re: Simple Restrictions
    Reply With Quote #9

    1.2 released
    __________________
    My Jabber ID: [email protected]
    karuru is offline
    Send a message via ICQ to karuru Send a message via MSN to karuru
    stephane50
    Senior Member
    Join Date: Jan 2009
    Old 03-03-2010 , 08:57   Re: Simple Restrictions
    Reply With Quote #10

    how to put the command in the menu admin
    __________________
    Serv cz 91.191.158.243:27015 A s s a s s i n Mod
    Serv cz 91.191.159.111:27015 Call of duty Mod
    Admin ldr Zelko Rct
    stephane50 is offline
    Reply



    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 13:45.


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