Guest User

Untitled

a guest
May 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. local function rape (pl, args)
  2.  
  3. local teams = {TEAM_MOB1, TEAM_MOB, TEAM_GANG1, TEAM_GANG}
  4. if teams.HasValue(pl:Team()) then Notify(pl, 1, 4, "You cannot rape people!") end
  5.  
  6. local trace = {}
  7. trace.start = pl:EyePos()
  8. trace.endpos = pl:EyePos() + pl:GetAimVector() * 85
  9. trace.filter = pl
  10. local tr = util.TraceLine(trace)
  11. local victum = tr.Entity
  12.  
  13. if (IsValid(victum) and victum:IsPlayer()) then
  14. pl:EmitSound("vo\npc\male01\pain09.wav", 500, 200)
  15. victum:TakeDamage(10, pl)
  16. Notify(pl, 0, 4, "You have raped " .. victum:Nick() .. " in the butt") else
  17. Notify(pl, 1, 4, "You must be looking at a player to rape them!") end
  18. return ""
  19. end
  20. AddChatCommand("/rape", rape)
Add Comment
Please, Sign In to add comment