Raised This Month: $51 Target: $400
 12% 

Getting owner on weapon entity.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 01-13-2018 , 09:10   Getting owner on weapon entity.
Reply With Quote #1

Let's say I hook Ham_Item_Deploy on a weapon, how can I get the owner of this weapon?

pev_owner returns 0
__________________
gabuch2 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-13-2018 , 09:13   Re: Getting owner on weapon entity.
Reply With Quote #2

What mod?

In CS all items have CBaseEntity *m_pPlayer member, probably in other mods too.
__________________
klippy is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-13-2018 , 11:06   Re: Getting owner on weapon entity.
Reply With Quote #3

?
PHP Code:
get_pdata_cbaseiEnt41); 
__________________
edon1337 is offline
Reply



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 00:19.


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