outgoing message

Hello,

How to add a welcome message when joining my server?

Best Regards



hook.Add( "PlayerInitialSpawn", "welcome_message", function( ply )
     ply:ChatPrint( "Welcome to the server!" )
end)


This is the wrong section btw.

Where write this line ?

You know that an addon was just made which shows a message when the player spawns.