(2019-04-15, 11:39 AM)Natsu Wrote: "find out when player is AFK by the function or a callback" -?the fastest method.
Code:
if(NetStats_MessagesRecvPerSecond(playerid) == 1)
{
//Player is AFK.
}
I am not want only find?out, i am want know what?about cancelling server desync in O:MP?when player in AFK, as it done?in?MTA, but with callback that show that player now is?AFK,?for opportunity to write your self AFK system for players. I mean when player pressing ESC, he don't must "get stucked"?on server, but it should be tracked