Forum

> > CS2D > Scripts > Close menu if player(id, x, y) ~= ..
Forums overviewCS2D overview Scripts overviewLog in to reply

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

17 replies
To the start Previous 1 Next To the start

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

Alistaire
User Off Offline

Quote
Is there like a way to make Lua close the menu if a player moves out of an entity zone?

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.

old Re: Close menu if player(id, x, y) ~= ..

DarkLight66
User Off Offline

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


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.

old Re: Close menu if player(id, x, y) ~= ..

Infinite Rain
Reviewer Off Offline

Quote
user DarkLight66 has written
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)


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

old Re: Close menu if player(id, x, y) ~= ..

DarkLight66
User Off Offline

Quote
Have you tried it with escape?

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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview