Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function playerDeath( victim, weapon, killer )
- if( killer ~= victim and killer:IsPlayer( ) ) then
- Role = { }
- Role [ 0 ] = "Innocent"
- Role [ 1 ] = "Traître"
- Role [ 2 ] = "Détective"
- victim:SendLua( " chat.AddText( Color( 255, 150, 0 ), 'Vous avez été tué par: ', Color( "..255*(killer:GetRole() == ROLE_TRAITOR and 1 or 0)..", "..255*(killer:GetRole() == ROLE_INNOCENT and 1 or 0)..", "..255*(killer:GetRole() == ROLE_DETECTIVE and 1 or 0).." ), '"..killer:GetName().." ("..Role[killer:GetRole()]..")' )" )
- end
- end
- hook.Add( "PlayerDeath", "OnPlayerDeath", playerDeath )
Advertisement
Add Comment
Please, Sign In to add comment