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
__________________