Desaster Posted November 18, 2013 Posted November 18, 2013 how to unbind all keys if the client isn't logged in then to re-bind them ?
Desaster Posted November 19, 2013 Author 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 )
csiguusz Posted November 19, 2013 Posted November 19, 2013 "onClientKey" event is client-sided only and the account functions are only for server-side.
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