27.01.2018, 21:41
Just use gettickcount at onplayerupdate and save it in a player's variable and compare it at a timer that counts every few seconds to check if gettickcount > savedticksinvariable+4000 to see when was onplayerupdate last called supposedly its called many times in a second so gettickcount will never be bigger than opu's ticks+4000 only if the player is tabbed (paused) because only then opu is not being updated (called).