Posts: 296
Threads: 55
Joined: Jan 2010
Reputation:
0
Hello everyone, i wanna make that everytime someone pauses,
his blip should dissapear from the minimap(radar)
and his name colour should turn into a grey colour,
when he comes back from AFK everything should turn to normal,
his colour and his blip should be visible again on the minimap.
Can somebody tell me how to do it?
Thanks, regards.
Posts: 133
Threads: 37
Joined: Jun 2010
Reputation:
0
I would love to see someone do this I would also use this script for my RP.
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
It's been done on one server, but I'm not sure how. I'd like to see some working code on this too!
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
OnPlayerUpdate doesn't get called, when player is paused.
So make a timer and check if OnPlayerUpdate isn't called for example 5 seconds then hide the marker and set player color.
Posts: 253
Threads: 15
Joined: Jul 2006
Reputation:
0
You could use the fps counter code to achieve the paused effect. Less intensive than OnPlayerUpdate.
Posts: 655
Threads: 49
Joined: Sep 2007
Reputation:
0
Hint: OnPlayerUpdate returns 0 if the player is in Escape/ Alt+Tab (minimized game) mode.
You can work something based on that.
Maybe setting a variable on onplayerupdate... and a timer sets it to normal after it checks it's value.
Or using unix time, if more then 2 seconds passed and the unix isn't updated then it's paused.
Posts: 655
Threads: 49
Joined: Sep 2007
Reputation:
0
OOOps.
I meant it's not called. Sorry.
PS: I'll look on that fps counter code.
Posts: 296
Threads: 55
Joined: Jan 2010
Reputation:
0
or maybe when a player preses the esc key, could it be posible that way?