Xandaros / evolve

An advanced admin mod for Garry's Mod
50 stars 39 forks source link

Chat box doesn't notify when players leave, on dedicated server (SRCDS) #44

Open Dreken123 opened 11 years ago

Dreken123 commented 11 years ago

The mod will tell you when people join, aka

"dreken joined 15 minutes ago"

But, it doesn't tell you when people disconnect.

ghost commented 10 years ago

hook.Add("PlayerDisconnected", "SimpleLogDisconnect", function(ply) PrintMessage(HUD_PRINTTALK, "Player "..ply:Name().." disconnected from server.") end)

Save this to garrysmod/lua/autorun/server/logdisconnect.lua