Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function rape (pl, args)
- local teams = {TEAM_MOB1, TEAM_MOB, TEAM_GANG1, TEAM_GANG}
- if teams.HasValue(pl:Team()) then Notify(pl, 1, 4, "You cannot rape people!") end
- local trace = {}
- trace.start = pl:EyePos()
- trace.endpos = pl:EyePos() + pl:GetAimVector() * 85
- trace.filter = pl
- local tr = util.TraceLine(trace)
- local victum = tr.Entity
- if (IsValid(victum) and victum:IsPlayer()) then
- pl:EmitSound("vo\npc\male01\pain09.wav", 500, 200)
- victum:TakeDamage(10, pl)
- Notify(pl, 0, 4, "You have raped " .. victum:Nick() .. " in the butt") else
- Notify(pl, 1, 4, "You must be looking at a player to rape them!") end
- return ""
- end
- AddChatCommand("/rape", rape)
Add Comment
Please, Sign In to add comment