Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. if (Attacker:IsWorld() and string.find( Inflictor:GetClass(), "prop_phys" )) then
  2.  
  3. umsg.Start( "PlayerKilledSelfTooMuchDamage" )
  4. umsg.Entity( Victim )
  5. umsg.End()
  6.  
  7. MsgAll( Victim:Nick() .. " has done too much useless damage!\n" )
  8.  
  9. return end
  10.  
  11. if (Attacker == Victim) and (Victim:Team() == TEAM_GHOST) then
  12.  
  13. if ((Victim.SetFictiveAttacker != nil) and (Victim.SetFictiveInflictor != nil)) then
  14. umsg.Start( "PlayerKilledByPlayer" )
  15.  
  16. umsg.Entity( Victim )
  17. umsg.String( Victim.SetFictiveInflictor:GetClass() )
  18. umsg.Entity( Victim.SetFictiveAttacker )
  19.  
  20. umsg.End()
  21.  
  22. MsgAll( Victim.SetFictiveAttacker:Nick() .. " killed " .. Victim:Nick() .. " using " .. Victim.SetFictiveInflictor:GetClass() .. "\n" )
  23.  
  24. else
  25. umsg.Start( "PlayerKilledSelf" )
  26. umsg.Entity( Victim )
  27. umsg.End()
  28.  
  29. MsgAll( Attacker:Nick() .. " suicided!\n" )
  30. end
  31.  
  32. return end
  33.  
  34. if ( Attacker:IsPlayer() ) then
  35.  
  36. umsg.Start( "PlayerKilledByPlayer" )
  37.  
  38. umsg.Entity( Victim )
  39. umsg.String( Inflictor:GetClass() )
  40. umsg.Entity( Attacker )
  41.  
  42. umsg.End()
  43.  
  44. MsgAll( Attacker:Nick() .. " killed " .. Victim:Nick() .. " using " .. Inflictor:GetClass() .. "\n" )
  45. if (Inflictor:IsPlayer()) then
  46. MsgAll( Inflictor:Nick() .. " was the Inflictor player\n" )
  47. end
  48.  
  49. return end
  50.  
  51. umsg.Start( "PlayerKilled" )
  52.  
  53. umsg.Entity( Victim )
  54. umsg.String( Inflictor:GetClass() )
  55. umsg.String( Attacker:GetClass() )
  56.  
  57. umsg.End()
  58.  
  59. MsgAll( Victim:Nick() .. " was killed by " .. Attacker:GetClass() .. "\n" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement