25.12.2018, 22:07
That's a very badass code WHO WROTE THAT?
Jk, with all seriousness, here's a little include i created that helps you with everything related to players tabbing out of the game c:
https://gist.github.com/RogueDrifter...1b9d5739b8409e
Tabbing out is the 'pause' and 'resume', the 'afk' ones are when someone doesn't move for too long hence they become afk
Jk, with all seriousness, here's a little include i created that helps you with everything related to players tabbing out of the game c:
https://gist.github.com/RogueDrifter...1b9d5739b8409e
pawn Код:
//Functions:
//__________
IsPlayerPaused(playerid);
IsPlayerAFK(playerid);
//Callbacks:
//__________
OnPlayerPause(playerid);
OnPlayerResume(playerid);
OnPlayerAFK(playerid);
OnPlayerReturn(playerid);