iFoReX Posted April 9, 2012 Author Share Posted April 9, 2012 I dont know where is it ._. I dont find Link to comment
Jaysds1 Posted April 9, 2012 Share Posted April 9, 2012 when you type in "/o" in the chat, you could press "z". Do you want it by it's self? if so: function elplayer( thePlayer ) attachElements ( thePlayer, elobjeto, 0, 0, 0) end addEventHandler("onPlayerJoin",root,function() bindKey(source,"z", "down", elplayer) end) Link to comment
Jaysds1 Posted April 9, 2012 Share Posted April 9, 2012 When you type in the command "/o", Do you want to make the z button available? or do you want the key to be pressed anytime? Link to comment
iFoReX Posted April 9, 2012 Author Share Posted April 9, 2012 I want when the player press z he attach to the object I dont want anything with the /o Link to comment
Jaysds1 Posted April 9, 2012 Share Posted April 9, 2012 ok, try the code I previously posted. If you restart the code, your going to have to do /reconnnct while in-game. function elplayer( thePlayer ) attachElements ( thePlayer, elobjeto, 0, 0, 0) end addEventHandler("onPlayerJoin",root,function() bindKey(source,"z", "down", elplayer) end) 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