Raised This Month: $ Target: $400
 0% 

Weapon "donation"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-18-2013 , 00:53   Re: Weapon "donation"
Reply With Quote #5

You can save weapon owner when weapon is added into weaponbox (BOOL CWeaponBox:ackWeapon( CBasePlayerItem *pWeapon )) but you can only hook this function with rage or orpheu.
During this function, weapon's owner is changed from player to weaponbox, you could use some pev->euserX to store previous owner.

About weaponbox Touch, you can retrieve weapons indexes with pdata.

Needed pdatas here : http://forums.alliedmods.net/showthr...01#post1712101
When you have retrieved 'weapon', just check pev(weapon, pev_euser1) for example, don't forget to check if touching player is able to pickup that weapon first.
Spoiler
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-18-2013 at 00:56.
ConnorMcLeod is offline
 



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