Message appears in the middle of the screen when player joins.
I wanted to know if there is a way to when a player joins the server a big message pops in the middle of the screen saying something or welcome I don’t know I just need to find a way to how to make when someone joins appears a big message with a text with text like the one I made on photoshop.
When they join the server they will start dead/unspawned and when they press Close to play they will spawn.
I still learning lua, I just need help with the basics like, Spawn dead, Opens when soemoen joins the server and the Close button so the Welcome message will close when they press it.
It doesnt really need the logo part but if you want you can add it.
For a player to spawn dead you might wanna look at player:KillSilent() (or just :Kill() if better). Use the PlayerInitialSpawn to do this kill. Use a InitPostEntity hook client side to open the panel with text, and make the button send a net message to the server, which then spawns the player.
Thats why I need help I just started coding I don’t know how to make Serverside stuff, Do I create a new file or I just use a (server) function, How to make the prevent spawning until they press the button, send message through net library and send a net message to the server because the rest I know.
( You the first person from Brazil I’ve ever saw in the facepunch forums in the garrys mod section after me :P)
In sh_<addon name>.lua you’d do something like this to load the files on their respective realms:
if SERVER then
On the cl_menu.lua you’d use the InitPostEntity hook and then use the Derma controls to create the said screen and button
On the sv_killing.lua you’d use the PlayerInitialSpawn hook to kill the player and prevent them from spawning (overwriting the ply:Spawn() function might be an option, but wouldn’t work out very well).
So u want an MOTD??? Im sure you could find a basic one somewhere or Host a website make it in HTML and them Upload it to a MOTD like FancyMOTD on scriptfodder and it will display clearly when they first join
Man I just said I don’t want a motd… thats not a pic of a motd, I did that on photoshop, if you here to say " Oh so you just posted a motd" or “Oh thats a motd” don’t bother yourself replying the thread because I don’t want a motd I clearly said what I wanted and I know what a motd is…