how to - 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: how to (
/showthread.php?tid=267231)
how to -
marc.vdwerf - 07.07.2011
Im trying to make a simple afk script, because im just getting started with scripting.
But i have a question.
How can i make a cmd that shows you how long somebody is afk?
Re: how to -
Hipflop - 07.07.2011
Well, when you make a /afk command. Start a timer.
When you want to look how somebody is afk, just show the timer.
Re: how to -
marc.vdwerf - 07.07.2011
and how can i combine those timer with a person and the /back cmd?
Then when a person types /back the timer stopt and shows a message how long hes been afk?
Re: how to -
Hipflop - 07.07.2011
Well, give the timer a variable.
Attach a variable to the timer, and when the player types /back kill the timer.
Then format the time in a string and SendClientMessage the string
Re: how to -
marc.vdwerf - 07.07.2011
thnx that will help
Re: how to -
Hipflop - 07.07.2011
Your welcome
Re: how to -
Harry_Sandhu - 08.07.2011
marc.vdwerf you want to make afk system like RC-RP
![Huh?](images/smilies/confused.gif)
?