Raised This Month: $218 Target: $400
 54% 

[ANY] Force Active Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Plugin ID:
5517
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Force clients to use an active weapon either via commands or console variables.
    Old 02-06-2017 , 01:59   [ANY] Force Active Weapon
    Reply With Quote #1

    Force Active Weapon


    Description:
    A very niche plugin which allows you to force the active weapon for clients.

    ConVars:
    • sm_forceactiveweapon_version - N/A - Version Control
    • sm_forceactiveweapon_status - 1 - Status of the plugin.
    • sm_forceactiveweapon_forceslot - 0 - Slot to force all clients to use. (0 = primary, 1 = secondary, 2 = melee, etc)

    Commands:
    • sm_forceactiveweapon <target> <slot> (Example: sm_forceactiveweapon @all 2) (melee)

    Special Thanks:
    • Karma Charger - Leading me into the find with the weapon integer in OnPlayerRunCmd.
    • Mitch - General bugs and ideas.
    • Headline - Donating a penny to me.

    Code Repository | Download | Plugin Updates | Report Bugs | Donate
    __________________
    Accepting Paid Commissions (Be sure to check if what you want exists before you ask)
    My [Dev] Website | Discord: Drixevel#5049

    Last edited by Drixevel; 03-01-2017 at 18:12.
    Drixevel is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 02-06-2017 , 01:59   Re: [ANY] Force Active Weapon
    Reply With Quote #2

    __________________
    Accepting Paid Commissions (Be sure to check if what you want exists before you ask)
    My [Dev] Website | Discord: Drixevel#5049

    Last edited by Drixevel; 02-06-2017 at 02:00.
    Drixevel is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 02-06-2017 , 02:14   Re: [ANY] Force Active Weapon
    Reply With Quote #3

    add a convar for if a player doesn't have a weapon in the slot being forced. i.e. if you force every one on secondary and a player doesn't have a pistol then it will force them to -1 (no active weapon).
    and thanks
    __________________

    Last edited by Mitchell; 02-06-2017 at 02:16.
    Mitchell is offline
    xF . Tick Tock Man
    Member
    Join Date: Feb 2015
    Old 02-26-2017 , 16:22   Re: [ANY] Force Active Weapon
    Reply With Quote #4

    Nifty Plugin - Thanks for the effort!

    Quick Question, is there a way to remove the restriction as a whole or per player?
    xF . Tick Tock Man 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 03:16.


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