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

Aliveness


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 12-02-2016 , 14:39   Aliveness
Reply With Quote #1

Hellow, everyone, i found that function in css deathmatch extension

PHP Code:
bool ZP_IsPlayerAlive(int clientIndex)
{
    
ZPBaseClient *CPlayer ZP_GetPlayer(clientIndex);
    if (!
CPlayer || !CPlayer->pEntity || !g_LifeStateOffset)
    {
        return 
false;
    }

    if (!
g_LifeStateOffset)
    {
        return 
CPlayer->pInfo->IsDead() ? false true;
    }

    
unsigned char *ptr = (unsigned char *)(CPlayer->pEntity) + g_LifeStateOffset;
    return (*(
char *)ptr == LIFE_ALIVE);

For CS:GO Is nessesary to check g_LifeStateOffset? Or i just can use
PHP Code:
return CPlayer->pInfo->IsDead() ? false true
Can you explain please, thanks a million
__________________
gubka is offline
Send a message via ICQ to gubka
 



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 20:37.


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