Forum

> > CS2D > Scripts > Menu glitch by pressing Slot Keys
Forums overviewCS2D overview Scripts overviewLog in to reply

English Menu glitch by pressing Slot Keys

6 replies
To the start Previous 1 Next To the start

old Menu glitch by pressing Slot Keys

Apache uwu
User Off Offline

Quote
I have ran into a little error, if the button is disabled with () tags it is still possible to press slot keys and "emulate" the menu button press. That causes some problems as the button disabled is suppose to protect the client from pressing it.

Anyone who is facing this problem can check if the button is disabled like this...

1
2
3
4
5
text="(disable)"

if text:sub(1,1)=="(" and text:sub(string.length(text),1)==")" then
--disabled
end

old Re: Menu glitch by pressing Slot Keys

Apache uwu
User Off Offline

Quote
Yes, very annoying, now I have to add another check to see if it's disabled. I could just remove it all together (players then can't use slot keys) but I'd rather keep it so it looks nicer.

old Re: Menu glitch by pressing Slot Keys

EnderCrypt
User Off Offline

Quote
yeah i remember this on my server, the script wouldnt allow people to select the magic, if mana wasent enough, then some people started to press 1,2,3 etc... wow that was annoying, (later i started to get errors on bugs and all )

old Re: Menu glitch by pressing Slot Keys

archmage
User Off Offline

Quote
Yes, very annoying. My weapon placing script uses a menu to select weapons and you are able to disable them, but because of this they are not disabled. I hope DC fixes this soon.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview