Raised This Month: $ Target: $400
 0% 

[L4D(2)]Key Bindder


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Plugin ID:
1578
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    let client to bind their keys from a menu
    Unapprover:
    Reason for Unapproving:
    Unapproved on author's request
    Old 03-31-2010 , 23:06   [L4D(2)]Key Bindder
    Reply With Quote #1

    NOT WORKING ANYMORE , VALVE BLOCKS IT

    Usage:
    This plugin bring up a menu to ask client they want to bind their keys or not.
    Command : sm_bind

    Someone said that server cant EXECUTE command from server to client
    But i tested ClientCommand is work in L4D/2, so i make this plugin.

    CVARs :
    Code:
    l4d2_bind_mode 1 
    Bind Mode: (0: auto bind player's buttons when player join ,1: player need to confirm it using menu)
     
     
    l4d2_bind_autodisplay 0
    1 = auto display menu after the player join the server(only work with l4d2_bind_mode 1)
    Type them in server.cfg

    Setup:
    1.extract the zip to sourcemod folder

    2.config sourcemod/configs/bind/bind.txt & panel.txt
    You can add command like that
    (client will bind or run this command)

    1.
    Code:
    bind g sm_buy;bind j pack;bind l exit
    2.
    Code:
    bind g sm_buy
    bind j pack
    crosshair 1
    2.5 panel.txt you can type like
    Code:
    After press Yes
    These buttons will be changed
    B   ----- fast access to backpack
    J -------- admin menu
    your words in here will display in the panel

    3. then you can join the server and ask the client to type !bind to bind their buttons or run your commands

    CHANGE LOG
    1.2 added customable menu
    1.1 added 2 cvar
    1.0 44 views
    P.S. You can also bind a key to connect your server like
    http://forums.alliedmods.net/showthread.php?t=82123
    Attached Files
    File Type: zip serverbind.zip (6.4 KB, 1188 views)
    File Type: sp Get Plugin or Get Source (sm_bind.sp - 1841 views - 3.2 KB)
    __________________

    Last edited by alexip121093; 01-31-2011 at 05:40.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Jo-Barf_Creepy
    Member
    Join Date: Mar 2010
    Location: Denmark
    Old 04-06-2010 , 10:32   Re: [L4D(2)]Key Bindder
    Reply With Quote #2

    I did not really understand, does it automaticly bind it without questions, or does it bind after a question?
    I think it would be easier if you could say !bind "<player>" "<key>" "<Command>"
    Nice plugin idea anyway. Thanks.
    Jo-Barf_Creepy is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-06-2010 , 21:05   Re: [L4D(2)]Key Bindder
    Reply With Quote #3

    I can make it auto bind to client,but it is unfair so the player need to confirm using a menu
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Parsa
    New Member
    Join Date: Mar 2010
    Location: Finland
    Old 04-07-2010 , 13:08   Re: [L4D(2)]Key Bindder
    Reply With Quote #4

    screw the unfairnes
    just give people what they want.
    can't wait to test it on my friend and unbind hes w,a,s and d. or but bind "mouse1" "say i pooped my pants" or something
    ofc i would also help my friends who cant use console and bind theyr sm_admin menus for them =).
    Parsa is offline
    triggerman
    Senior Member
    Join Date: Jun 2009
    Old 04-07-2010 , 15:34   Re: [L4D(2)]Key Bindder
    Reply With Quote #5

    that option to block the server from executing commands is default off in L4d/2 so this should work fine.
    __________________
    triggerman is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-08-2010 , 05:27   Re: [L4D(2)]Key Bindder
    Reply With Quote #6

    updated to 1.1

    I have released it to Chinese half year ago and they work it fine with L4D/L4D2
    alexip121093 is offline
    Send a message via MSN to alexip121093
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-08-2010 , 07:58   Re: [L4D(2)]Key Bindder
    Reply With Quote #7

    Quote:
    Originally Posted by EHG View Post
    Ah, I just noticed why it works the way you did it.
    You are running it OnClientPostAdminCheck

    The client doesn't block is then.
    And Valve fails again..
    No,Sever execute ClientCommand to clients work fine all the time except the client switch off it using a client cvar
    alexip121093 is offline
    Send a message via MSN to alexip121093
    naris
    AlliedModders Donor
    Join Date: Dec 2006
    Old 04-08-2010 , 23:05   Re: [L4D(2)]Key Bindder
    Reply With Quote #8

    Quote:
    Originally Posted by Parsa View Post
    screw the unfairnes
    just give people what they want.
    can't wait to test it on my friend and unbind hes w,a,s and d. or but bind "mouse1" "say i pooped my pants" or something
    ofc i would also help my friends who cant use console and bind theyr sm_admin menus for them =).
    Aaaand here's why Valve blocked servers from executing client commands...
    naris is offline
    DJ_WEST
    Senior Member
    Join Date: Jul 2005
    Location: Russian Federation
    Old 04-08-2010 , 23:16   Re: [L4D(2)]Key Bindder
    Reply With Quote #9

    ClientCommand working for me too and other players on my server. I use "bind g drop" in one of my old plugins (for weapon drop) and it working fine, but the game client after changelevel do "unbind g".
    __________________
    DJ_WEST is offline
    triggerman
    Senior Member
    Join Date: Jun 2009
    Old 04-09-2010 , 01:15   Re: [L4D(2)]Key Bindder
    Reply With Quote #10

    Quote:
    Originally Posted by EHG View Post
    And you are basing this on what?
    Did you test on multiple accounts?
    Did you have other people test for you?

    All the acounts I have used, clean installs, have had this feature enabled.

    I have also tested ClientCommand on a multitude of people and they were all blocked.
    basing it on the conversation in this thread...
    http://forums.alliedmods.net/showthread.php?t=82123
    __________________
    triggerman 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 18:21.


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