Results 1 to 3 of 3
  1. #1
    afifnajmi's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed

    Spectator list source code.

    Does any of you have spectator list source code? i really need it

  2. #2
    sike1337's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    my man its in every ayyware source cntrl + f spec lsit

  3. #3
    1C4ST4W4Y1's Avatar
    Join Date
    Jun 2016
    Gender
    female
    Posts
    20
    Reputation
    10
    Thanks
    67
    My Mood
    Happy
    Cpp Code:
    Code:
    #include "Features.h" \\ This is all my #includes in 1 file
    
    bool Settings::ShowSpectators::enabled = false;
    
    std::list<int> ShowSpectators::GetObservervators(int playerId)
    {
    	std::list<int> list;
    
    	if (!pEngine->IsInGame())
    		return list;
    
    	C_BasePlayer* player = (C_BasePlayer*)pEntityList->GetClientEntity(playerId);
    	if (!player)
    		return list;
    
    	if (!player->GetAlive())
    	{
    		C_BasePlayer* observerTarget = (C_BasePlayer*)pEntityList->GetClientEntityFromHandle(player->GetObserverTarget());
    		if (!observerTarget)
    			return list;
    
    		player = observerTarget;
    	}
    
    	for (int i = 1; i < pEngine->GetMaxClients(); i++)
    	{
    		C_BasePlayer* pPlayer = (C_BasePlayer*)pEntityList->GetClientEntity(i);
    		if (!pPlayer)
    			continue;
    
    		if (pPlayer->GetDormant() || pPlayer->GetAlive())
    			continue;
    
    		C_BasePlayer* target = (C_BasePlayer*)pEntityList->GetClientEntityFromHandle(pPlayer->GetObserverTarget());
    		if (player != target)
    			continue;
    
    		list.push_back(i);
    	}
    
    	return list;
    }
    
    void ShowSpectators::RenderWindow()
    {
    	if (!Settings::ShowSpectators::enabled)
    		return;
    
    	//if (!UI::isVisible && !pEngine->IsInGame())
    	//	return;
    
    	ImGui::SetNextWindowSize(ImVec2(50, 100), ImGuiSetCond_FirstUseEver);
    	if (ImGui::Begin("Spectators", &Settings::ShowSpectators::enabled, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_ShowBorders))
    	{
    		ImGui::Columns(2);
    		ImGui::Separator();
    
    		ImGui::Text("Name");
    		ImGui::NextColumn();
    
    		ImGui::Text("Mode");
    		ImGui::NextColumn();
    
    		for (int playerId : ShowSpectators::GetObservervators(pEngine->GetLocalPlayer()))
    		{
    			if (playerId == pEngine->GetLocalPlayer())
    				continue;
    
    			C_BasePlayer* player = (C_BasePlayer*)pEntityList->GetClientEntity(playerId);
    
    			IEngineClient::player_info_t entityInformation;
    			pEngine->GetPlayerInfo(playerId, &entityInformation);
    
    			if (entityInformation.fakeplayer)
    				continue;
    
    			ImGui::Separator();
    
    			ImGui::Text("%s", entityInformation.name);
    			ImGui::NextColumn();
    
    			switch (*player->GetObserverMode())
    			{
    			case ObserverMode_t::OBS_MODE_IN_EYE:
    				ImGui::Text("Perspective");
    				break;
    			case ObserverMode_t::OBS_MODE_CHASE:
    				ImGui::Text("3rd person");
    				break;
    			case ObserverMode_t::OBS_MODE_ROAMING:
    				ImGui::Text("Free look");
    				break;
    			case ObserverMode_t::OBS_MODE_DEATHCAM:
    				ImGui::Text("Deathcam");
    				break;
    			case ObserverMode_t::OBS_MODE_FREEZECAM:
    				ImGui::Text("Freezecam");
    				break;
    			case ObserverMode_t::OBS_MODE_FIXED:
    				ImGui::Text("Fixed");
    				break;
    			default:
    				break;
    			}
    			ImGui::NextColumn();
    		}
    
    		ImGui::Columns(1);
    		ImGui::Separator();
    
    		ImGui::End();
    	}
    }


    Header code:
    Code:
    pragma once
    
    namespace ShowSpectators
    {
    	std::list<int> GetObservervators(int playerId);
    	void RenderWindow();
    }

    These are taken from the castle source which you can find here ---> C4ST4W4Y's fixed Castle

  4. The Following User Says Thank You to 1C4ST4W4Y1 For This Useful Post:

    afifnajmi (04-19-2018)

Similar Threads

  1. [Info] Source Code Section Thread List
    By CoderNever in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 05-14-2012, 08:16 AM
  2. CrossFire Hack Source Code Resource List!
    By *DeathHunter* in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 09-14-2010, 05:53 AM
  3. [Release] ****** DLL Source Code
    By OneWhoSighs in forum WarRock - International Hacks
    Replies: 20
    Last Post: 10-25-2007, 07:41 AM
  4. keylogger source code
    By obsedianpk in forum WarRock - International Hacks
    Replies: 8
    Last Post: 10-24-2007, 02:31 PM
  5. HALO 2 (XBOX) Source Code
    By mirelesmichael in forum General Game Hacking
    Replies: 12
    Last Post: 09-23-2006, 04:35 AM