Raised This Month: $ Target: $400
 0% 

dead body owner and position


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 04-02-2009 , 11:56   Re: dead body owner and position
Reply With Quote #3

m_hOwnerEntity returned -1 for me. This works as long as the players dont respawn (even then you could save the results on player death):

Code:
GetRagdollOwner(entity) {     new offset = FindSendPropInfo("CCSPlayer","m_hRagdoll")     for(new i = 1; i <= MaxClients; i++) {         if(IsClientInGame(i) && !IsPlayerAlive(i) && GetEntDataEnt2(i,offset) == entity) {             return i         }     }     return -1 }

EDIT: IGNOREME, see 3 posts below
__________________
plop

Last edited by p3tsin; 04-02-2009 at 18:11.
p3tsin 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 21:48.


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