27.03.2015, 14:47
Check if OnPlayerUpdate isn't called by doing so:
And in your timer to increase the players playtime:
Thereby you can detect if the player is AFK.
pawn Код:
public OnPlayerUpdate(playerid)
{
Update[playerid] = GetTickCount();
}
pawn Код:
if(GetTickCount() > (Update[i] + 500)) return 1;