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

UserRestrict


Post New Thread Reply   
 
Thread Tools Display Modes
Author
theY4Kman
Join Date: Jun 2007
Location: Yak
Plugin ID:
34
Plugin Version:
1.1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Administration plugin that allows admins to restrict certain players from using certain weapons
    Old 06-20-2007 , 19:54   UserRestrict
    Reply With Quote #1

    This plugin is no longer being developed!

    UserRestrict is an administration plugin that allows admins to restrict certain players from using certain weapons. To be able to use this, you must be a generic admin ('b' flag).

    Flags:
    • #t
      • The terrorist team.
    • #ct
      • The Counter Terrorist team
    • #bot
      • The bots
    • #all
      • Everyone
    Commands:
    • user_restrict
      • Usage: user_restrict <User ID> <weapon>
      • Example: user_restrict 2 ak47
      • Note: Executing "user_restrict" with no arguments brings up the UserRestrict menu
    • user_unrestrict
      • Usage: user_unrestrict <Steam ID> <weapon>
      • Example: user_unrestrict STEAM_ID_LAN ak47
    • Note: You can substitute team flags for the User ID or Steam ID. For example, instead of STEAM_ID_LAN, you can use #t.
    ConVars:
    • user_restrict_version
      • The current version of UserRestrict. This is read-only and is setup for HLSW and other 3rd party applications.
    Installation:
    • From .zip or .rar
      • Extract contents to your cstrike/ directory
    • From .smx and .cfg
      • Download UserRestrict.smx by using the "Get Plugin" link below and download UserRestrict.cfg by clicking on that link below. Place UserRestrict.smx in your addons/sourcemod/plugins folder and put UserRestrict.cfg in your addons/sourcemod/configs directory.
    Changelog:
    • 1.0.0
      • Initial Release
    • 1.1.0
      • Added team flags (#t, #ct, #bot, #all).

    Thanks so much to devicenull, teame06, FlyingMongoose, PimpinJuice...Pretty much all the active users in #sourcemod.
    Attached Files
    File Type: zip UserRestrict.zip (11.5 KB, 2665 views)
    File Type: sp Get Plugin or Get Source (UserRestrict.sp - 2758 views - 12.1 KB)
    File Type: rar UserRestrict.rar (10.6 KB, 1709 views)
    File Type: cfg userrestrict.cfg (290 Bytes, 1588 views)
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.

    Last edited by theY4Kman; 08-26-2007 at 15:32. Reason: Unrestrict menu worked, it was a user error
    theY4Kman is offline
    Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-20-2007 , 23:13   Re: UserRestrict
    Reply With Quote #2

    <3
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    kill0r
    Junior Member
    Join Date: Jun 2007
    Old 06-21-2007 , 02:30   Re: [PLUGIN] UserRestrict
    Reply With Quote #3

    n1
    kill0r is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-21-2007 , 02:39   Re: [PLUGIN] UserRestrict
    Reply With Quote #4

    Could you, per-chance, work in multiple weapon support? for instance, say I find a player questionable (cheating maybe but not sure), and all they do is snipe, it's sometimes near-impossible to tell. So it'd be nice to do this:
    user_restrict <steamid> awp g3sg9 sg550 scout
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    theY4Kman
    Join Date: Jun 2007
    Location: Yak
    Old 06-21-2007 , 06:17   Re: [PLUGIN] UserRestrict
    Reply With Quote #5

    Yes, I could. I'll be adding that and better user searching features tomorrow...
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.
    theY4Kman is offline
    Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
    magicyan
    Member
    Join Date: Nov 2005
    Old 06-21-2007 , 06:51   Re: [PLUGIN] UserRestrict
    Reply With Quote #6

    Hi,

    I have a little problem

    When i type user_restrict #all awp in the console, this message appears :
    11:50:03 L 06/21/2007 - 11:49:05: [SM] Native "GetUserAdmin" reported: Invalid client index 0
    11:50:03 L 06/21/2007 - 11:49:05: [SM] Displaying call stack trace:
    11:50:03 L 06/21/2007 - 11:49:05: [SM] [0] Line 120, UserRestrict.sp::RestrictMenu()



    Help me please
    __________________
    Serveur Test SourceMod => 77.111.201.216:27015

    Tuto 'SourceMod' in french
    http://www.support-cssource.info/viewtopic.php?t=184

    Last edited by magicyan; 06-21-2007 at 18:25.
    magicyan is offline
    Isias
    Senior Member
    Join Date: Apr 2006
    Old 06-21-2007 , 10:14   Re: [PLUGIN] UserRestrict
    Reply With Quote #7

    Nice work. Could you add features like autorestrict the weapon for the winning team and a possiblity to translate the messages give to the user once a weapon is restricted? And will this work map specific, like autorestrict the awp for example per .cfg?
    Isias is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 06-21-2007 , 13:54   Re: [PLUGIN] UserRestrict
    Reply With Quote #8

    Quote:
    Originally Posted by -<[PAGC]>- Isias View Post
    Nice work. Could you add features like autorestrict the weapon for the winning team and a possiblity to translate the messages give to the user once a weapon is restricted? And will this work map specific, like autorestrict the awp for example per .cfg?
    I am working on a different version of a restrict script that does this. Myself and theY4Kman have combined forces to complete mine quickly. He's still developing this one as it's simple. But mine, here, is almost complete and will be released soon and has a lot more features.
    ^BuGs^ is offline
    GriMz
    Senior Member
    Join Date: Jul 2007
    Old 07-26-2007 , 05:14   Re: UserRestrict
    Reply With Quote #9

    how about finding a way to restrict weopons based on KR, like lets say someone is padding their score with an awp or auto sniper, and have a KDR of 4.0 or greater then they cant use awps or autos, and maybe to cut down on the users that can buy smoke grenades or something, there is alot of potential in this..
    GriMz is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 07-26-2007 , 08:45   Re: UserRestrict
    Reply With Quote #10

    Grimz: http://forums.alliedmods.net/showthread.php?t=57475
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ 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 16:00.


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