Raised This Month: $ Target: $400
 0% 

Solved Fake Dead Client


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Michael Shoe Maker
Senior Member
Join Date: Apr 2016
Old 09-14-2016 , 09:43   Re: Fake Dead Client
Reply With Quote #5

Quote:
Originally Posted by Franc1sco View Post
Try with
PHP Code:
SetEntProp(clientProp_Send"m_lifeState"1); 
That does work in a sense, it makes it so I don't count as an alive player on the hud and scoreboard but it makes me invisible. The reason I need this is because I made a little menu that allows players to choose a model to become (like a teapot), but because this is used on a Jailbreak server it interferes with the game since T's would be looking for that remaining player.

EDIT: I saw this before in the plugin but I have no idea what it does and if it's what im looking for:
PHP Code:
public void OnMapStart()
{
    
g_iAlive FindSendPropInfo("CCSPlayerResource""m_bAlive");
    if (
g_iAlive == -1)
        
SetFailState("CCSPlayerResource \"m_bAlive\" offset is invalid");
    
    
g_iKills FindSendPropInfo("CCSPlayerResource""m_iKills");
    if (
g_iKills == -1)
        
SetFailState("CCSPlayerResource \"m_iKills\" offset is invalid");
    
    
g_iDeaths FindSendPropInfo("CCSPlayerResource""m_iDeaths");
    if (
g_iDeaths == -1)
        
SetFailState("CCSPlayerResource \"m_iDeaths\"  offset is invalid");
    
    
g_iAssists FindSendPropInfo("CCSPlayerResource""m_iAssists");
    if (
g_iAssists == -1)
        
SetFailState("CCSPlayerResource \"m_iAssists\"  offset is invalid");
    
    
g_iMVPs FindSendPropInfo("CCSPlayerResource""m_iMVPs");
    if (
g_iMVPs == -1)
        
SetFailState("CCSPlayerResource \"m_iMVPs\"  offset is invalid");
    
    
    
int iPlayerManagerPost FindEntityByClassname(0"cs_player_manager");
    
SDKHook(iPlayerManagerPostSDKHook_ThinkPostThinkPost);
}

public 
void ThinkPost(int entity)
{
    
int isAlive[65];
    
    
GetEntDataArray(entityg_iAliveisAlive65);
    
LoopValidClients(i)
        
isAlive[i] = (!g_bFound[i]);
    
    if (
g_iConfig[b_kadRemover])
    {
        
int iZero[MAXPLAYERS 1] =  { 0, ... };
        
        
SetEntDataArray(entityg_iKillsiZeroMaxClients 1);
        
SetEntDataArray(entityg_iDeathsiZeroMaxClients 1);
        
SetEntDataArray(entityg_iAssistsiZeroMaxClients 1);
        
SetEntDataArray(entityg_iMVPsiZeroMaxClients 1);
    }
    
    
SetEntDataArray(entityg_iAliveisAlive65);


Last edited by Michael Shoe Maker; 09-14-2016 at 10:01.
Michael Shoe Maker 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 10:21.


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