I have been trying to create a way to set a players color to red when they have inflicted damage to another player. This only goes for the TEAM_PRISONER so when they attack a TEAM_GUARD with for example a weapon_m4a1 and a weapon_ak47 it would set there color to p:SetPlayerColor(246, 165, 14, 255).
if ply:Team(“TEAM_PRISONER”) and ply:CauseDamage(“TEAM_GUARD”) then
p:SetPlayerColor(246, 165, 14, 255)
Its totally fake but something along them lines if you understand. Thanks in advance.