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

[CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Plugin ID:
2757
Plugin Version:
1.6.9b
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allowing admins to restrict weapons for a list of defined players.
    Old 01-03-2012 , 01:28   [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]
    Reply With Quote #1


    DESCRIPTION:

    Made under the request of .:€S C 90:. admins.
    Unlike others I published here, this plugin has first been written by my (former) mate ZAP_Killer, I only took the following dev and publishing part afterwards.

    Its purpose is to prevent high skilled players from using weapons that server admins can define: ak47, awp, m4a1, etc...
    Both players and weapons can be managed by admins using two simple files that they can edit.
    When a defined player uses a weapon that has been added to the weapons list, he is slayed, and gets a message in chat saying he has to use another weapon.

    The plugin is used on our CS:S 30 slots Linux server and works fine ;)

    INSTALLATION:

    Place zk_wlbsid.smx in your cstrike/addons/sourcemod/plugins directory
    Place zk_wlbsid.sp in your cstrike/addons/sourcemod/scripting directory
    Create and place a file called zk_wlbsid_players.txt into your cstrike folder
    Create and place a file called zk_wlbsid_weapons.txt into your cstrike folder
    (This plugin requires SDK Tools, now included in Sourcemod)

    USAGE:

    1) - Add players you want to restrict in the zk_wlbsid_players.txt file.
    Only one SteamID by line. No blank line. No comment (like STEAM_0:0:1xxxxxxx // Player1).
    - Add weapons to restrict in the zk_wlbsid_weapons.txt file.
    Same rules: only one weapon by line, no blank line or comment.
    I attached example files so you can see how it should look like.

    2) At any time, in game, you can use zk_wlbsid_add command to add a player in the list of restricted players. This command only supports valid STEAM IDs.
    Example: As an admin, type zk_wlbsid_add STEAM_0:0:1234567 in console and the player will be instantly restricted.

    3)
    By default, the plugin is enabled. You don't need to touch zk_wlbsid_enabled since it's changed by the plugin automatically after a given timer.
    You have two ways to disable it:
    - set zk_wlbsid_timer_value 0 in your sourcemod.cfg or in your map configs.
    - if the plugin is already loaded and you want to disable it on the fly, type zk_wlbsid_stop in console.

    Admin Commands:

    Code:
    zk_wlbsid_load
    zk_wlbsid_stop
    zk_wlbsid_status
    zk_wlbsid_list_players
    zk_wlbsid_list_weapons
    zk_wlbsid_add <steamid>
    CVARS:

    Code:
    zk_wlbsid_load_details // Display the number of restricted players and credits at plugin load. (Def: 1)
    zk_wlbsid_timer_value // Number of seconds after which the plugin is automatically loaded. 0 to disable plugin.
    Changelog:

    Spoiler


    To do List:

    Spoiler


    Any feedback, help, or comment will be welcome.

    Regards,

    St00ne
    Attached Files
    File Type: txt zk_wlbsid_players_EXAMPLE.txt (58 Bytes, 829 views)
    File Type: txt zk_wlbsid_weapons_EXAMPLE.txt (114 Bytes, 1172 views)
    File Type: sp Get Plugin or Get Source (zk_wlbsid.sp - 1503 views - 14.5 KB)
    __________________

    *** *** ***
    -My plugins-

    Last edited by St00ne; 08-22-2019 at 17:13. Reason: Removed FCVAR_REPLICATED cvar on version cvar.
    St00ne is offline
    Azik
    Member
    Join Date: Aug 2011
    Location: France
    Old 01-03-2012 , 11:05   Re: [CS:S] Weapon Limiter by SteamID (v0.45)
    Reply With Quote #2

    :0 Good
    Azik is offline
    Send a message via Skype™ to Azik
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 01-08-2012 , 08:04   Re: [CS:S] Weapon Limiter by SteamID (v1.0)
    Reply With Quote #3

    Thx Azik.

    Update released:

    v0.45 -> v1.0

    The "Invalid timer handle" has been fixed, and the plugin is working properly without any error.
    Plugin status changed: ready for review.

    All comments are still welcome.
    St00ne.

    Last edited by St00ne; 08-11-2019 at 01:48.
    St00ne is offline
    jdlphenom
    New Member
    Join Date: Jan 2012
    Old 01-13-2012 , 03:44   Re: [CS:S] Weapon Limiter by SteamID (v1.0)
    Reply With Quote #4

    slaying is a bit extreme, can anyone change it to Freeze or slap?
    jdlphenom is offline
    deejay87
    Senior Member
    Join Date: Apr 2004
    Location: Pays du Glaude - France
    Old 01-13-2012 , 11:34   Re: [CS:S] Weapon Limiter by SteamID (v1.0)
    Reply With Quote #5

    Hi,
    If you only restrict with message is the better, why slay or freeze or slap
    __________________
    deejay87 is offline
    Send a message via MSN to deejay87 Send a message via Skype™ to deejay87
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 01-13-2012 , 17:23   Re: [CS:S] Weapon Limiter by SteamID (v1.0)
    Reply With Quote #6

    Hi,

    Quote:
    Originally Posted by deejay87 View Post
    Hi,
    If you only restrict with message is the better, why slay or freeze or slap
    because the author doesn't know how to do that yet.
    If someone knows, please give us a hand ;)

    You can read codes of the plugins below to have examples...
    http://forums.alliedmods.net/showthread.php?p=950174
    (restricts weapons for CTs, Ts, or all)
    http://forums.alliedmods.net/showthread.php?p=492550
    (restricts weapons for individual players via a console command)
    Maybe this one could help too: http://forums.alliedmods.net/showthread.php?p=1101458

    Until someone changes this, it will slay players and display a chat message to them.

    Regards,

    St00ne

    Last edited by St00ne; 01-30-2012 at 22:12.
    St00ne is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 01-30-2012 , 22:22   Re: [CS:S] Weapon Limiter by SteamID (v1.0)
    Reply With Quote #7

    Hi,

    I forgot to say there is a 60 seconds timer before the plugin starts.
    (1st posted edited)
    St00ne is offline
    DHJ
    Member
    Join Date: Feb 2007
    Old 04-11-2012 , 11:33   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.0]
    Reply With Quote #8

    Can you add a command for restricting players? So they get restrict instant?


    I love you if you do :>
    DHJ is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 04-13-2012 , 13:51   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.0]
    Reply With Quote #9

    Quote:
    Originally Posted by DHJ View Post
    Can you add a command for restricting players? So they get restrict instant?

    I love you if you do :>
    Hi DHJ,

    EDIT: plugin updated, command added...

    Regards,

    St00ne

    Last edited by St00ne; 08-11-2019 at 01:49.
    St00ne is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 04-22-2012 , 09:29   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.0]
    Reply With Quote #10

    Quote:
    Originally Posted by DHJ View Post
    Can you add a command for restricting players? So they get restrict instant?

    I love you if you do :>
    It's done, you can download the latest version (v1.6) at the top of this page. Use zk_wlbsid_add STEAM_0:0:1234567 to add a player in the list; the player will be instantly restricted.

    Regards,

    St00ne

    Last edited by St00ne; 04-22-2012 at 11:06.
    St00ne 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 23:20.


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