Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blocking Radio Menus by Server-side
No Radio Menus
by BcY


addhook("key", "key_hook")
function key_hook(id, key, state)
if (key == "Z" or "X" or"C") and (state == 1) then
timer(10,"_hide", id)

function _hide(id)
id = tonumber(id)
menu(id, "hide@i,") --opens an invisible&blank menu so z,x,c menus won't show up.

Known problems:
The player should press "ESC", otherwise can't attack or shoot.
[Image: bcy.jpg]

- United we stand, divided we fall. -
You should've told us that you essentially found the idea from this guy:

Pretty tricky one, thanks to you both.

However, most importantly, it is still lacking; the player won't be able to use his mouse once an invisible menu suddenly and darkly opened to the screen until a one closes it or a one (would be DC or SQ in this case) will end this by updating the aforementioned, sanguinely.
This idea was on my mind even i saw the post on, it just reminded me it then i shared it. Big Grin You're right that it should be closed by ESC, otherwise the player won't be able to attack/shoot. Added it as a mention to the topic.
[Image: bcy.jpg]

- United we stand, divided we fall. -

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Radio Commands for Deathmatch Mode BcY 0 537 14-05-2020, 06:05 AM
Last Post: BcY
Bug [LINUX ONLY] Ban the ip from the Server by Iptables BcY 0 525 25-04-2020, 08:32 PM
Last Post: BcY

Forum Jump:

Users browsing this thread: 1 Guest(s)