PostHelpCan someome please help?

Posts 1–9 of 9 · Page 1 of 1
Can someome please help?
I'd need a working Notification thingy like who is spectating you with box, admins on servers with box aswell and wich admin joined, because I tried to C+P from MApex and I failed hard, well actually it didnt worked at all, I made CreateCvar aswell but it didn't worked. :\
Quote Originally Posted by mono331 View Post
I'd need a working Notification thingy like who is spectating you with box, admins on servers with box aswell and wich admin joined, because I tried to C+P from MApex and I failed hard, well actually it didnt worked at all, I made CreateCvar aswell but it didn't worked. :\
atleast you admit it, while everyone else on mpgh wouldn't.
Thanks, but can you please assist me with making Notification putting in 9/11? I've already succesfully C+P'd T finder that works and ignore team, but can't make that notifications sadly.
Quote Originally Posted by mono331 View Post
Thanks, but can you please assist me with making Notification putting in 9/11? I've already succesfully C+P'd T finder that works and ignore team, but can't make that notifications sadly.
I already wrote one, will release in some minutes once i'll have tried it.

- - - Updated - - -

i will make a proper release thread later.
i might also make a full cheat if i feel to

Code:
local tblSpectators = {};
local tblAdministrators = {};
local tblDefaultGroups = {
	"user",
	"guest",
	"0"
};

local Color = Color;
local Entity = Entity;
local LocalPlayer = LocalPlayer;
local hook = hook;
local table = table;
local surface = surface;
local IsValid = IsValid;
local chat = chat;
local draw = draw;

local strCheatName = "uguuu~~~~ - by konakona~ (https://www.youtube.com/user/INTELINSIDECHANNEL)";
local tblColors = {
	white = Color(240, 240, 240, 255),
	cheatNameColor = Color(40, 150, 240, 255),
	green = Color(150, 240, 50, 255),
	red = Color(240, 150, 50, 255)
};

local function DrawString(hFont, bCenter, pointX, pointY, colColor, strText)
	draw.SimpleTextOutlined(strText, hFont, pointX, pointY, colColor, bCenter, bCenter, 1, Color(20, 20, 20, 200));
end

hook.Add("DrawOverlay", "ListStuff", function()
	local ScrW = surface.ScreenWidth();
	DrawString("Default", TEXT_ALIGN_CENTER, (ScrW / 4) * 2, 15, tblColors.green, strCheatName);
	local pLocalPlayer = LocalPlayer();
	for i = 0, 8192 do -- Highest entity index is 8192, I could use player.GetAll() but do it yourself.
		local pEntity = Entity(i);
		if (!IsValid(pEntity)) then
			continue;
		end
		if (!pEntity:IsPlayer()) then
			continue;
		end
		
		-- The following code lists spectators into a table called tblAdministrators.
		local strPlayerGroup = pEntity:GetNWString("usergroup"); -- If anyone have a sig to GetNWString please share it, ty
		if (!table.HasValue(tblDefaultGroups, strPlayerGroup)) then
			if (!table.HasValue(tblAdministrators, pEntity)) then
				table.insert(tblAdministrators, pEntity);
				-- a new administrator has risen.
				chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.green, "A new administrator has risen! -> " .. (pEntity:Nick() || "unnamed") .. " (" .. strPlayerGroup .. ")");
			end
		end
		
		-- The following code lists spectators into a table called tblSpectators.
		local pObserverTarget = pEntity:GetObserverTarget();
		if (IsValid(pObserverTarget)) then
			if (pObserverTarget == pLocalPlayer) then
				if (!table.HasValue(tblSpectators, pEntity)) then
					table.insert(tblSpectators, pEntity);
					-- a new spectator has risen.
					chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.green, "A new spectator has risen! -> " .. (pEntity:Nick() || "unnamed") .. " (" .. strPlayerGroup .. ")");
				end
			end
		end
	end

	DrawString("Default", TEXT_ALIGN_CENTER, (ScrW / 4) * 3, 5, tblColors.cheatNameColor, "Spectators:");
	for i = 0, #tblSpectators do
		local pSpectator = tblSpectators[i];
		if (!IsValid(pSpectator)) then
			table.remove(tblSpectators, i);
			-- chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.red, (pSpectator:Nick() || "unnamed") .. " is no longer spectating you. (left server)");
			continue;
		end
		
		local strPlayerGroup = pSpectator:GetNWString("usergroup"); -- If anyone have a sig to GetNWString please share it, ty
		-- draw them here.
		DrawString("Default", TEXT_ALIGN_CENTER, (ScrW / 4) * 3, 5 + (i * 10), tblColors.white, (pSpectator:Nick() || "unnamed") .. " (" .. strPlayerGroup .. ")");
		
		local pObserverTarget = pSpectator:GetObserverTarget();
		if (!IsValid(pObserverTarget)) then
			table.remove(tblSpectators, i);
			chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.red, (pSpectator:Nick() || "unnamed") .. " is no longer spectating you.");
			continue;
		end
		if (pObserverTarget != pLocalPlayer) then
			table.remove(tblSpectators, i);
			if (pObserverTarget:IsPlayer()) then
				chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.red, (pSpectator:Nick() || "unnamed") .. " is no longer spectating you. (now spectating " .. (pObserverTarget:Nick() || "unnamed") .. ")");
			else
				chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.red, (pSpectator:Nick() || "unnamed") .. " is no longer spectating you.");
			end
		end
	end

	DrawString("Default", TEXT_ALIGN_CENTER, (ScrW / 4) * 1, 5, tblColors.cheatNameColor, "Administrators:");
	for i = 0, #tblAdministrators do
		local pAdministrator = tblAdministrators[i];
		if (!IsValid(pAdministrator)) then
			table.remove(tblAdministrators, i);
			-- chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.red, "Administrator " .. (pAdministrator:Nick() || "unnamed") .. " has left the server.");
			continue;
		end
		
		local strPlayerGroup = pAdministrator:GetNWString("usergroup"); -- If anyone have a sig to GetNWString please share it, ty
		-- draw them here.
		DrawString("Default", TEXT_ALIGN_CENTER, (ScrW / 4) * 1, 5 + (i * 10), tblColors.white, (pAdministrator:Nick() || "unnamed") .. " (" .. strPlayerGroup .. ")");
		
		if (table.HasValue(tblDefaultGroups, strPlayerGroup)) then
			--[[table.remove(tblAdministrators, i);
			chat.AddText(tblColors.cheatNameColor, "[" .. strCheatName .. "] ", tblColors.red, (pAdministrator:Nick() || "unnamed") .. " is no longer administrator. (now " .. strPlayerGroup .. ")");]]
		end
	end
end);
Quote Originally Posted by Kona-chan View Post
snip
What's your steam so i can add you! /20charstooshortoverrated
Thank you Kona-Chan, I'll try it out, hope I'll C+P it correctly and don't fuck it up

The error it gives currently: [ERROR] lua/roh.lua:243: attempt to index local 'pSpectator' (a nil value)
1. fn - lua/roh.lua:243
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

[Um nvm about the error, I fixed it. But T finder is still needs to be fixed.]


Oh and also can you please tell me why if I join a server that is not TTT then my HUD just goes off when I inject cheat. It shows charms sometimes that you can't even see though wall. Only charms at close range.
Quote Originally Posted by mono331 View Post
Thank you Kona-Chan, I'll try it out, hope I'll C+P it correctly and don't fuck it up
feel free to add me if you need help
Quote Originally Posted by Kona-chan View Post
feel free to add me if you need help
What is yours steam ID?
Quote Originally Posted by mono331 View Post
What is yours steam ID?
pmed
/2short
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us