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




Close menu if player(id, x, y) ~= ..
17 replies



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

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

Re: Close menu if player(id, x, y) ~= ..
Deleted UserAnd 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

Re: Close menu if player(id, x, y) ~= ..
Deleted User
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.
Re: Close menu if player(id, x, y) ~= ..
Deleted Usermsg('HAHA U FUCKED')
end
Re: Close menu if player(id, x, y) ~= ..
Deleted UserI don't think you can actually CLOSE a menu. You can, of course, remove all buttons, but not close it.




