Forum

> > CS2D > Scripts > Close menu if player(id, x, y) ~= ..
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

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

17 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

Alistaire
User Off Offline

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

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

DarkLight66
User Off Offline

Zitieren
Factis699 hat geschrieben
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.

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

Infinite Rain
Reviewer Off Offline

Zitieren
user DarkLight66 hat geschrieben
Factis699 hat geschrieben
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

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

DarkLight66
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht