Figured I'd toss mine on here too.
local function onConnect( name, addr )
ULib.tsayColor( nil, false, Color(128, 255, 128), "Player " .. name .. " connected" )
end
hook.Add( "PlayerConnect", "doSayOnConnect", onConnect )
local function onInitialSpawn( ply )
for k, v in pairs( player.GetAll() ) do
if not ( v == ply ) then
ULib.tsay( v, "Player " .. ply:Nick() .. " has entered the game" )
end
end
end
hook.Add( "PlayerInitialSpawn", "doSayOnSpawn", onInitialSpawn )
local function onPlayerDisconnect( ply )
ULib.tsayColor( nil, false, Color(128, 255, 128), "Player " .. ply:Nick() .. " dropped from the game" )
end
hook.Add( "PlayerDisconnected", "doSayOnDisconnect", onPlayerDisconnect )