Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Attacker:IsWorld() and string.find( Inflictor:GetClass(), "prop_phys" )) then
- umsg.Start( "PlayerKilledSelfTooMuchDamage" )
- umsg.Entity( Victim )
- umsg.End()
- MsgAll( Victim:Nick() .. " has done too much useless damage!\n" )
- return end
- if (Attacker == Victim) and (Victim:Team() == TEAM_GHOST) then
- if ((Victim.SetFictiveAttacker != nil) and (Victim.SetFictiveInflictor != nil)) then
- umsg.Start( "PlayerKilledByPlayer" )
- umsg.Entity( Victim )
- umsg.String( Victim.SetFictiveInflictor:GetClass() )
- umsg.Entity( Victim.SetFictiveAttacker )
- umsg.End()
- MsgAll( Victim.SetFictiveAttacker:Nick() .. " killed " .. Victim:Nick() .. " using " .. Victim.SetFictiveInflictor:GetClass() .. "\n" )
- else
- umsg.Start( "PlayerKilledSelf" )
- umsg.Entity( Victim )
- umsg.End()
- MsgAll( Attacker:Nick() .. " suicided!\n" )
- end
- return end
- if ( Attacker:IsPlayer() ) then
- umsg.Start( "PlayerKilledByPlayer" )
- umsg.Entity( Victim )
- umsg.String( Inflictor:GetClass() )
- umsg.Entity( Attacker )
- umsg.End()
- MsgAll( Attacker:Nick() .. " killed " .. Victim:Nick() .. " using " .. Inflictor:GetClass() .. "\n" )
- if (Inflictor:IsPlayer()) then
- MsgAll( Inflictor:Nick() .. " was the Inflictor player\n" )
- end
- return end
- umsg.Start( "PlayerKilled" )
- umsg.Entity( Victim )
- umsg.String( Inflictor:GetClass() )
- umsg.String( Attacker:GetClass() )
- umsg.End()
- MsgAll( Victim:Nick() .. " was killed by " .. Attacker:GetClass() .. "\n" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement