Raised This Month: $ Target: $400
 0% 

Get index of player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 11-26-2015 , 01:16   Re: Get index of player
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
It depends on what you are actually hooking. If you are hooking the actual death message (as opposed to Ham_Spawn), you can get the appropriate argument that contains the dead player's entity number. Search for other examples of hooking "DeathMsg" because most all of them will use either the killer or victim id.

Also, you can see all the arguments of the various messages here.
Thanks. And what i'm trying to do, is something like this:


PHP Code:
public Ev_DeathMsg()
{
// steamids 
    
new szAuthID35 ]; get_user_authidindexszAuthIDcmszAuthID ) )
    new 
iDummy;

    new 
iKiller read_data)
    new 
iVictim read_data)
    new 
iIsHeadshot read_data)

// if steamid found
    
if(iIsHeadshot && TrieGetCellg_tAuthIdOfPeopleszAuthIDiDummy) ) 
    {
       
// send hud message
    
}
else
{
// another stuff

CHE4TER 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 18:06.


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