Posts: 78
Threads: 25
Joined: Sep 2007
Reputation:
0
Hi!
Is it possible to detect if player has pressed ESC?
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
OnPlayerUpdate isn't called.
Posts: 78
Threads: 25
Joined: Sep 2007
Reputation:
0
Isn't it skipped from calling also when player isn't moving?
Posts: 482
Threads: 3
Joined: Dec 2009
Reputation:
0
It's possible but why do u need it
Posts: 78
Threads: 25
Joined: Sep 2007
Reputation:
0
I just found that (well of course they do, just that I didn't think of it) timers go on even when players are paused.
I have a script that allows position change after the timer ends, but when falling people just press ESC and wait until the timer ends, after that... they seem to look like using some hacks, but it is just the script being used with ESC.
Posts: 482
Threads: 3
Joined: Dec 2009
Reputation:
0
Oh Ok good luck with your scripting any more questions just ask
Posts: 78
Threads: 25
Joined: Sep 2007
Reputation:
0
But wait, isn't "returning" something else from "calling"?
I mean, the script actually calls OnPlayerUpdate every time the timer runs... I don't know on what conditions OnPlayerUpdate returns 0, but I think it does that when SA-MP server fails to receive data - not when data isn't received (because it isn't asked).
But this is still weird why doesn't it work.
[EDIT]
Oh, will check this way now.