How to paste code snippets in a thread
#1
If you want to post Lua snippets use
Code:
[shcode=lua]code here![/shcode]

This does all sort of fancy syntax highlighting. Check it out:
function Initialize(Plugin)
	Plugin:SetName("ChatLog")
	Plugin:SetVersion(3)

	cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChat)

	LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
	return true
end

function OnChat(Player, Message)
	-- Lets get loggin\'
	LOGINFO("[" .. Player:GetName() .. "]: " .. StripColorCodes(Message));

	return false
end
Look at it, just look at it! It's so perty
Reply
Thanks given by: NiLSPACE , TC1061




Users browsing this thread: 1 Guest(s)