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

[CSGO] Dead players spawn in halloween ghost mode spectator


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 01-05-2019 , 22:36   [CSGO] Dead players spawn in halloween ghost mode spectator
Reply With Quote #1

Last CS:GO Halloween Update: Dead Players Turn Into A Ghost

I wonder if the game recognize it as a living client too ? so cheater with aimbot will be mess up.
Can we create a plugin that will spawn dead players into a ghost or chicken that can open door like Halloween mode?
__________________
nguyenbaodanh is offline
arcticx2
Senior Member
Join Date: Nov 2011
Old 01-06-2019 , 08:26   Re: [CSGO] Dead players spawn in halloween ghost mode spectator
Reply With Quote #2

You def need to code a cheat to understand how cheat works :/ the dead players is not a live person so it wont work on dead ( ghost , chicken stuff ) checking that entity for a real player and/or dormant etc stuff . it doesnt work !
arcticx2 is offline
Brum Brum
Junior Member
Join Date: Mar 2017
Old 01-07-2019 , 17:48   Re: [CSGO] Dead players spawn in halloween ghost mode spectator
Reply With Quote #3

PHP Code:
public void OnPluginStart()
{
    
HookEvent("player_death"Event_PlayerDeath);
}

public 
Action Event_PlayerDeath(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    if (
IsValidClient(client)) {
        
SetEntProp(clientProp_Send"m_bIsPlayerGhost"true);
    }
}

public 
bool IsValidClient(int client)
{
    if (!(
<= client <= MaxClients) || !IsClientInGame(client) || !IsClientConnected(client) || IsFakeClient(client) || IsClientSourceTV(client))
        return 
false;
    
    return 
true;

Try this, no tested

Last edited by Brum Brum; 01-07-2019 at 17:49.
Brum Brum is offline
Reply



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 12:13.


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