Watermark.

Hi.

Just wanted to ask if there are any tutorials on how to watermark your gmod server.

Example :

But why?

Its just a request. :slight_smile:

Made this amazing one just for you!
Just put it in /lua/autorun/client/watermark.lua
and change NAME at the top of the file.

(Doesnt have to be called watermark.lua, its an example)



--Name of server:
local NAME = "Heil"

--Dont edit below here or it might delete your computer!
surface.CreateFont( "cool_font", {
	font = "Comic Sans MS",
	size = 64,
	weight = math.huge,
	blursize = 1,
	antialias = false,
	outline = true,
} )

local draws = {}
local NextChange = 0

local function drawText( x, y, col, font, txt )
	surface.SetTextColor( col.r, col.g, col.b, col.a or 255 )
	surface.SetTextPos( x, y )
	surface.SetFont( font )
	surface.DrawText( txt )
end

local function drawIt( x, y, s )
	surface.SetDrawColor( 255, 0, 0, 255 )
	surface.DrawLine( x - s, y, x + s, y )
	surface.DrawLine( x, y - s, x, y + s )
	
	surface.DrawLine( x, y + s, x - s, y + s )
	surface.DrawLine( x - s, y, x - s, y - s )
	surface.DrawLine( x, y - s, x + s, y - s )
	surface.DrawLine( x + s, y, x + s, y + s )
end

local function genPos( am )
	draws = {}
	for i = 1, am do
		draws[ i ] = {
			x = math.random( 20, ScrW() - 20 ),
			y = math.random( 20, ScrH() - 20 ),
		}
	end
end

local function drawOverlay()	
	if CurTime() > NextChange then
		genPos( math.random( 35, 70 ) )
		NextChange = CurTime() + 0.2
	end
	
	for k,v in pairs( draws ) do
		drawIt( v.x, v.y, 20 )
	end
	
	drawText( 10, 10, Color( math.random( 100, 255 ), math.random( 100, 255 ), math.random( 100, 255 ), 255 ), "cool_font", NAME )
end
hook.Add( "DrawOverlay", "xd", drawOverlay )


i’ll try it out! thank you very much :slight_smile:

[editline]13th January 2017[/editline]

LMAO THIS IS SO FUCKING GOOD!