I'm making a computer Lua thing and it's obvious for you and me that when you walk away from a computer you can't control it anymore.
Forum
CS2D Scripts Close menu if player(id, x, y) ~= ..Close menu if player(id, x, y) ~= ..
17 replies 1
I'm making a computer Lua thing and it's obvious for you and me that when you walk away from a computer you can't control it anymore.
Alistaire has written
I'm making a computer Lua thing and it's obvious for you and me that when you walk away from a computer you can't control it anymore.
I have a wireless mouse and keyboard.
Alistaire has written
...can control it the next stage; at the other side of the world.
Just check the current position of the player when he is selecting a menu option. Skip it if he's out of bounds
And via ms100 hook the player will always be on the same pos (If speedhacker or something)
Factis699 has written
Emm you can just freeze them?
And via ms100 hook the player will always be on the same pos (If speedhacker or something)
And via ms100 hook the player will always be on the same pos (If speedhacker or something)
i have tried something like that before, but you need to also check when the player closes the menu, and there is no way to check when the player closes the menu by pressing escape (i tried it), and most ppl do that.
1
2
3
2
3
if player(id,'x')==10 and player(id,'y')==10 then 	parse(menuselect id 0) end
and it wouldn't work.
Wow 0-0
DarkLight66 has written
i have tried something like that before, but you need to also check when the player closes the menu, and there is no way to check when the player closes the menu by pressing escape (i tried it), and most ppl do that.
Factis699 has written
Emm you can just freeze them?
And via ms100 hook the player will always be on the same pos (If speedhacker or something)
And via ms100 hook the player will always be on the same pos (If speedhacker or something)
i have tried something like that before, but you need to also check when the player closes the menu, and there is no way to check when the player closes the menu by pressing escape (i tried it), and most ppl do that.
posiblur
if button = 0 (closed via ESC or Cross)
if button = 1-9
so it posiblur
i know it should trigger as button 0, but when i tried with escape it didn´t work, it worked via cross thought, and also i tried it with dedicated server.
msg('HAHA U FUCKED')
end
I don't think you can actually CLOSE a menu. You can, of course, remove all buttons, but not close it.
1