//Text Display Addon by Mr.President.

//Config - Edit the following information

local todisplay = "Edit This!"
local dispcolor = Color(255,0,0,255) //This is the color of the text (red, green, blue, alpha)

//FINISH CONFIG.. DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING...
//
//
///////
///////

if SERVER then
	
	AddCSLuaFile( "autorun/toptext.lua" )

	end
	
if CLIENT then

	local slen = string.len(todisplay) * 4
	local offset = slen / 2
	local soffset = ((ScrW() / 2) - offset)
	function G4PHudPaint()
		local ply = LocalPlayer()
		draw.DrawText(todisplay, "Trebuchet18", soffset, 5, dispcolor,0)
	end
	hook.Add( "HUDPaint", "TextCenterTop", G4PHudPaint )
	
end

