Question[TTT] Callout before death

Posts 12 of 2 · Page 1 of 1
[TTT] Callout before death
Just wondering if this exists, where if someone hits you it will display an auto (insert name here) is a traitor! of course only working if they are in your sight. this be really helpful because I'm never fast enough to hit that bind , or get caught up in the gunfight and forget to press it. If this is possible or some other method is present that be great!
Literally just coded it on my phone probs won't work tbh
gameevent.Listen( "player_hurt" )
hook.Add( "player_hurt", "", function(stuff)
local attacker = Player(stuff.attacker)
local hurt = Player(stuff.userid)
if hurt == LocalPlayer() then
LocalPlayer():ConCommand("say "..attacker:Nick().." is attacking me!")
end
end)
Posts 12 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?