Posts: 180
Threads: 21
Joined: Jul 2012
Reputation:
0
is there any function that can return if player is in menu (ESC) or in win (alt+tab)?
Posts: 2,175
Threads: 235
Joined: Sep 2009
Reputation:
0
you can check in onplayerupdate if player is updating or not .. with GetTickCount();
Posts: 180
Threads: 21
Joined: Jul 2012
Reputation:
0
GetTickCount() returns how long is server running or do I understand it wrong ? O_o
Posts: 2,175
Threads: 235
Joined: Sep 2009
Reputation:
0
Yea but you can use it for check the difference from 2 times..
like
you get the start value GetTickCount...
then you finish the function and get it again .. the frist - the second you get the time
Posts: 180
Threads: 21
Joined: Jul 2012
Reputation:
0
yes but it will work both times since player is on server, so basically he is updating chat etc, well, I'l ltry this later