TTT SWEP Help

Say I wanted to have a green light flash on the players screen after they got hit by a gun. How would I script that?

ALSO

If the gun turns the player into a zombie, but shows that they killed themselves, how would I make it so the Traitor gets points?

Instead of running Ent:Kill( ) on the player when they are killed, Apply DamageInfo to them.

You’d want to set the damage type to what ever type of damage enum you want to use, and set the attacker as the traitor that shot him originally, and set the damage to the player health and max damage to the players health too. That way the kill is properly associated, then run it on the player using

[lua]local _dmginfo = DamageInfo( );

// Set the info vars

// Apply it
ply:TakeDamageInfo( _dmginfo )[/lua]