public OnPlayerUpdate(playerid) { if(IsPlayerConnected(playerid)) { print("[system] Work!"); if(GetPVarInt(playerid, "AFKTime") > 0 && !IsPlayerNPC(playerid)) SetPVarInt(playerid, "AFKTime", 0); } return 1; }