From 2338cc2c4b996a79ffedcb6c23cc5f6e303b3793 Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 27 Apr 2021 21:54:49 +0200 Subject: [PATCH] afk hits mit wanteds --- ReallifeGamemode.Client/util/weapondamage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Client/util/weapondamage.ts b/ReallifeGamemode.Client/util/weapondamage.ts index b7391a36..49f3bc55 100644 --- a/ReallifeGamemode.Client/util/weapondamage.ts +++ b/ReallifeGamemode.Client/util/weapondamage.ts @@ -31,8 +31,8 @@ export default function weapondamageUtil(globalData: IGlobalData) { if ((isTargetInPolygon(sourceEntity.position) || isInAnyNoDMPolygon) && getWantedCount() === 0) { return true; } - if (globalData.IsAfk == true) { - mp.gui.chat.push("afkhit"); + + if (globalData.IsAfk == true && getWantedCount() === 0) { return true; }