SA-MP Forums Archive
Can i detect variable afk? - 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)
+--- Thread: Can i detect variable afk? (/showthread.php?tid=625627)



Can i detect variable afk? - henkas - 04.01.2017

Hello!
i wondering if its possible to detect like example this variable, if he afk 20sec he get killed or set again to spawn

if(team[playerid] == BLUE)
{


Re: Can i detect variable afk? - Yaa - 04.01.2017

use this https://sampforum.blast.hk/showthread.php?tid=525585

and under your code is

PHP код:
if(IsPlayerPause(playerid)) 
about afk time is
PHP код:
if(TimeSincePaused(playerid) == 20



Re: Can i detect variable afk? - oMa37 - 04.01.2017

Quote:
Originally Posted by Yaa
Посмотреть сообщение
use this https://sampforum.blast.hk/showthread.php?tid=525585

and under your code is

PHP код:
if(IsPlayerPause(playerid)) 
about afk time is
PHP код:
if(TimeSincePaused(playerid) == 20
Pretty old & un-optimized.

Try this; https://sampforum.blast.hk/showthread.php?tid=625089