Check For Player Status - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Check For Player Status (
/showthread.php?tid=194614)
Check For Player Status [SOLVED Thanks :D] -
[SOB]Chris - 30.11.2010
I want to know if there is any way to know if the player is paused or writing?
Re: Check For Player Status -
randomkid88 - 30.11.2010
OnPlayerUpdate isn't called when someone is paused. I don't think so for typing.
Re: Check For Player Status -
The_Moddler - 30.11.2010
Paused ->
https://sampforum.blast.hk/showthread.php?tid=186129
Writing -> You can't detect..
Re: Check For Player Status -
Scenario - 30.11.2010
What about an idle player? Like if they bring up the player menu, or just stay in-game for some time, but don't do anything...?
Re: Check For Player Status -
Hiitch - 30.11.2010
Quote:
Originally Posted by RealCop228
What about an idle player? Like if they bring up the player menu, or just stay in-game for some time, but don't do anything...?
|
Umm, for the whole 'or just stay in-game for some time but don't do anything'...
You could try to make a timer, and in that timer, get the X Y and Z coords of the player, save them, and check them after the timer resets, and if they are the same, then do something that tells you that the player is 'afk.'
Not sure if it may work, but hey, ideas are work a try, right?
Re: Check For Player Status -
Scenario - 30.11.2010
Quote:
Originally Posted by Hiitch
Umm, for the whole 'or just stay in-game for some time but don't do anything'...
You could try to make a timer, and in that timer, get the X Y and Z coords of the player, save them, and check them after the timer resets, and if they are the same, then do something that tells you that the player is 'afk.'
Not sure if it may work, but hey, ideas are work a try, right?
|
Perhaps, but having a lot of timers isn't really ideal. Although maybe using "y_timers" (by ******) would help...
Re: Check For Player Status -
Hiitch - 30.11.2010
Quote:
Originally Posted by RealCop228
Perhaps, but having a lot of timers isn't really ideal. Although maybe using "y_timers" (by ******) would help...
|
Indeed, but if there were a more efficient way to do it (y_timers), and I knew how to do it, I would definitely give the code out.
Re: Check For Player Status -
Scenario - 30.11.2010
Quote:
Originally Posted by Hiitch
Indeed, but if there were a more efficient way to do it (y_timers), and I knew how to do it, I would definitely give the code out.
|
I guess I'll have to give it a shot sometime in the future then...
P.S. Nice quote!