Hi.
Just wanted to ask if there are any tutorials on how to watermark your gmod server.
Example :
[IMG]http://i.imgur.com/j7uT6dY.jpg[/IMG]
But why?
[QUOTE=Darkwater124;51665211]But why?[/QUOTE]
Its just a request. :)
[QUOTE=teehexd;51665784]Its just a request. :)[/QUOTE]
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)
[CODE]
--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 )
[/CODE]
[QUOTE=Moku;51665819]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)
[CODE]
--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 )
[/CODE][/QUOTE]
i'll try it out! thank you very much :)
[editline]13th January 2017[/editline]
[QUOTE=Moku;51665819]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)
[CODE]
--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 )
[/CODE][/QUOTE]
LMAO THIS IS SO FUCKING GOOD!
Sorry, you need to Log In to post a reply to this thread.