Raised This Month: $ Target: $400
 0% 

Weapon "donation"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 01-17-2013 , 17:23   Weapon "donation"
Reply With Quote #1

I'm trying to think of a way this could be done. By donation, I simply mean when a player drops their weapon and another one picks it up (from the same team).

I thought about hooking weapon pickup, checking the weapon's owner and compare teams with the player picking the weapon.

I cannot find a proper hook for this though - I'm sure hooking WeapPickUp event would be too late, as the weapon's owner would already be overwritten. Ham with pre hook could work, but I've had problems with Ham_AddPlayerItem and I cannot see any other Ham hook for this.

Thanks in advance.

Edit: I need the index of the donator.

Last edited by Backstabnoob; 01-17-2013 at 17:37.
Backstabnoob is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode