Disguising Player´s Names

Hi.

What can I use to disguise each player´s name for the whole round?

Thanks

Player:Nick

Can you be more specific? Where do you want to disguise it?

GM:HUDDrawTargetID can stop a player’s name from appearing when you look at them. Is that what you needed?

[lua]

if SERVER then
if !ADMIN then ADMIN = {} end

function ADMIN:Notify(ply, ...)
	if !IsValid(ply) then return end
	
	for k, v in pairs(player.GetAll()) do
		if v == ply then
			ply:SendLua(chat.AddText(...))
		end
	end
end

function ADMIN:FindPlayer( id, ply )
	if !id then return nil end
	if !IsValid(ply) then return end
	
	local tbl = {}
	
	if (id == "*") then
		for _, pl in pairs(player.GetAll()) do
			if pl:GetLevel() <= ply:GetLevel() then
				table.insert(tbl, pl)
			end
		end
	end
	
	if (id == "me") then
		return {ply}
	end
	
	id = id:lower()
	
	for _, pl in pairs(player.GetAll()) do
		//if pl:GetLevel() <= ply:GetLevel() then 
			if pl:Nick():lower():find(id) or pl:SteamID():find(id) or pl:UniqueID():find(id) then
				table.insert(tbl, pl)
				break
			end
		//end
	end
	
	return tbl
end
function ADMIN.SetName(ply, cmd, args)
	if !ply:IsAdmin() then return end
	local target = ADMIN:FindPlayer(args[1], ply)
	local name = table.concat(args," ", 2)
	
	if #target < 1 then
		ADMIN:Notify(ply, color_white, "Error - Couldn't find specified player.")
	else 
		for k, v in pairs(target) do
			if v:IsDisguised() == false then
				v:SetDisguised(true)
				
				v:SetFakeName(name)
				
				ADMIN:Notify(ply, color_white, "You've have been successfully renamed " .. v:Name() .. ".")
			else
				v:SetDisguised(false)
				
				ADMIN:Notify(ply, color_white, "You've have been successfully un-renamed " .. v:Name() .. ".")
			end
		end
	end
end
concommand.Add("setname", ADMIN.SetName)

end

function Player:IsDisguised()
return self:GetNWBool(“disguise”, false)
end

function Player:SetDisguised( bool )
if !self then return end

self:SetNWBool("disguise", bool)

end

function Player:SetFakeName( name )
if !self then return end

self:SetNWString("fakename", name)

end

function Player:FakeName()
return self:GetNWString(“fakename”, self:Name())
end

function Player:Nick()
if self:IsDisguised() then
return self:FakeName()
end

return self:Name()

end

[/lua]

May or may not work didn’t test it. This is from custom admin mod. So I had to tweak it a bit for your use.