12.12.2012, 05:10
Can anyone help me for alt tabbed detection?
i got afk detection my problem is alt tab detection
thanks in advance
i got afk detection my problem is alt tab detection
thanks in advance
public OnPlayerUpdate(playerid)
{
if(IsPlayerAltTabbing(playerid))
{
SendClientMessage(playerid,-1,"You just alt tab, and kicked!");
Kick(playerid);
}
return 1;
}
public OnPlayerUpdate(playerid) { if(IsPlayerAltTabbing[playerid] > 0) { playerTabbed[playerid] = 1; playerTabTime[playerid] += 1; } else { playerTab[playerid] = 0; playerTabTime[playerid] = 0; } return 1; }