30.04.2016, 16:57
If you're using the one I linked, this should do it:
pawn Код:
#include <a_samp>
#include <AutoAFK>
public OnPlayerPause(playerid) {
printf("PlayerID : %d has paused.", playerid);
return 1;
}
public OnPlayerResume(playerid) {
printf("Player ID : %d is now back!", playerid);
return 1;
}
//To check if player is paused:
IsPlayerPaused(playerid);