MitnickP56 Posted May 29, 2015 Share Posted May 29, 2015 Hello, I trying to make script "Off Enter" Not this in keyboard just block function (command) Enter/Exit from Esc-> settings ->binds. Construction: addCommandHandler("trickent", off-1 outputChatBox(OFF by getPlayerName) else on-2 outputChatBox(ON by getPlayerName) Command -> Blocking this from all players. I have no idea how to making it, with handbrake and freeze is easy but here rly I don't know. Link to comment
jingzhi Posted June 3, 2015 Share Posted June 3, 2015 Hello, I trying to make script "Off Enter" Not this in keyboard just block function (command) Enter/Exit from Esc-> settings ->binds.Construction: addCommandHandler("trickent", off-1 outputChatBox(OFF by getPlayerName) else on-2 outputChatBox(ON by getPlayerName) Command -> Blocking this from all players. I have no idea how to making it, with handbrake and freeze is easy but here rly I don't know. Dont understand what you talking bout Link to comment
MitnickP56 Posted June 5, 2015 Author Share Posted June 5, 2015 Hello, I trying to make script "Off Enter" Not this in keyboard just block function (command) Enter/Exit from Esc-> settings ->binds.Construction: addCommandHandler("trickent", off-1 outputChatBox(OFF by getPlayerName) else on-2 outputChatBox(ON by getPlayerName) Command -> Blocking this from all players. I have no idea how to making it, with handbrake and freeze is easy but here rly I don't know. Dont understand what you talking bout Player cant press enter ( died ) when map continues. Link to comment
WhoAmI Posted June 5, 2015 Share Posted June 5, 2015 addEventHandler ( "onClientKey", root, function ( key ) if key == "enter" then cancelEvent ( ) end end ) c-side. Link to comment
MitnickP56 Posted June 13, 2015 Author Share Posted June 13, 2015 addEventHandler ( "onClientKey", root, function ( key ) if key == "enter" then cancelEvent ( ) end end ) c-side. Working, really thanks. 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