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

addbind("Z")
addbind("X")
addbind("C")

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

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

Known problems:
The player should press "ESC", otherwise can't attack or shoot.
Reply
#2
You should've told us that you essentially found the idea from this guy: http://www.unrealsoftware.de/forum_posts...post422388

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.
Reply
#3
This idea was on my mind even i saw the post on UnrealSoftware.de, 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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
Flag Counter