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
__________________