1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-28 00:16:34 +02:00
parent 3afa513b4a
commit a31c8cbccb
2 changed files with 5 additions and 5 deletions

View file

@ -792,13 +792,13 @@ CreateThread(function()
local ped = PlayerPedId()
-- Prüfe, ob der Spieler im Ragdoll-Zustand ist
if
if isPedInRagdoll(ped) then
-- Bestimme den Angreifer
-- Prüfe, ob der Spieler im Ragdoll-Zustand ist
if isPedInRagdoll(ped) then
-- Bestimme den Angreifer (verwende den letzten Angreifer, wenn innerhalb von 3 Sekunden)
local attacker = nil
if lastDamager and (GetGameTimer() - lastDamageTime) < 3000 then
attacker = lastDamager
local attacker = lastDamager
-- Prüfe ob die Waffe eine Airsoft-Waffe ist
if isAirsoftWeapon(lastDamageWeapon) then