Quote:
Originally Posted by Franc1sco
Try with
PHP Code:
SetEntProp(client, Prop_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(iPlayerManagerPost, SDKHook_ThinkPost, ThinkPost);
}
public void ThinkPost(int entity)
{
int isAlive[65];
GetEntDataArray(entity, g_iAlive, isAlive, 65);
LoopValidClients(i)
isAlive[i] = (!g_bFound[i]);
if (g_iConfig[b_kadRemover])
{
int iZero[MAXPLAYERS + 1] = { 0, ... };
SetEntDataArray(entity, g_iKills, iZero, MaxClients + 1);
SetEntDataArray(entity, g_iDeaths, iZero, MaxClients + 1);
SetEntDataArray(entity, g_iAssists, iZero, MaxClients + 1);
SetEntDataArray(entity, g_iMVPs, iZero, MaxClients + 1);
}
SetEntDataArray(entity, g_iAlive, isAlive, 65);
}