So, I have the rape swep [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=104910430"]here[/URL] and I was wondering, how would I make the character wanted whenever he/she rapes someone. I know I'd have to use this hook:
[CODE]playerWanted(Player criminal, Player actor, string reason)[/CODE]
However, I don't understand the "Player criminal" argument. What can I put there that targets the person who owns the swep?
Also, how would I be able to force the player to wait before raping (doing the primary attack) again?
If this is inside a SWEP: function, you can use [I]self.Owner[/I] which would be the person with the weapon. To set a cooldown, you can use Weapon:SetNextPrimaryFire.
Sorry, you need to Log In to post a reply to this thread.