KingMofo Posted June 17, 2010 Share Posted June 17, 2010 Hello all. I have a little problem. I have just made a custom chat system for my server members/moderators/administrators. It's all working fine except the binds. When i try to bind the key "i" from the script like this... bindKey(source, "i", "down", "chatbox member") When it is done from the script, it won't put the chatbox active when you press that button. However, if i bind the same key to the same command while in-game, it works. Could anyone explain why this is or a way to get around it? I want to do this as it will be annoying telling all of my members/staff to bind the i key for member/staff chat. Thanks in advanced! Link to comment
50p Posted June 17, 2010 Share Posted June 17, 2010 Make sure source is the player element. Also, if "member" is command's argument, put it in a separate string as another argument. bindKey(source, "i", "down", "chatbox", "member" ) Link to comment
KingMofo Posted June 17, 2010 Author Share Posted June 17, 2010 Make sure source is the player element. Also, if "member" is command's argument, put it in a separate string as another argument. bindKey(source, "i", "down", "chatbox", "member" ) You are a life saver! Thank you, it worked! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now