Desaster Posted November 18, 2013 Share Posted November 18, 2013 how to unbind all keys if the client isn't logged in then to re-bind them ? Link to comment
Desaster Posted November 19, 2013 Author Share Posted November 19, 2013 well I know now that I must enter in my fuctions if isGuestAccout but why this won't work ? addEventHandler( "onClientKey", root, function(button,press) sourceAccount = getPlayerAccount ( source ) if isGuestAccount ( sourceAccount ) then if button == "F6" or button == "F1" then cancelEvent() end end end ) Link to comment
csiguusz Posted November 19, 2013 Share Posted November 19, 2013 "onClientKey" event is client-sided only and the account functions are only for server-side. 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