Forum

> > CS2D > Scripts > Menu glitch by pressing Slot Keys
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Menu glitch by pressing Slot Keys

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Menu glitch by pressing Slot Keys

Apache uwu
User Off Offline

Zitieren
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

alt Re: Menu glitch by pressing Slot Keys

Apache uwu
User Off Offline

Zitieren
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.

alt Re: Menu glitch by pressing Slot Keys

EnderCrypt
User Off Offline

Zitieren
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 )

alt Re: Menu glitch by pressing Slot Keys

archmage
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht