I want to make so motd comes up after death or like 600 sec, on my server
anyone can help?
Thanks.
You can use the PostPlayerDeath hook and create/call a new panel in there.
GM/PostPlayerDeath
yea i have tried but i am not good with lua at all, can you help me out?
"help" or give you code directly?
What have you tried?
I mean i want to learn but if you can give me the code directly that would be nice, i have tried adding a code that my friend made but it did't work...
Okay so show us that code.
Why not use ULX's motd menu? Pretty easy to figure out how it works. I'm not willing to spoonfeed code but there's a lot of resources out there that can help you with what you need.
i mean if you can show me how to do it that would be nice
I removed the code but i remember that it was something like this
hook.Add("PlayerInitialSpawn", "MOTDPlayerInitialSpawnHook", function(ply)
SkipNextSpawn = true
if ShowOnJoin then
Show(ply, MOTD.Forced, MOTD.WaitTime, false)
end
end)
update lol i got it to work some how lol now it keeps coming up after death any idea how i can make so it only pup after 3 death or mins
Sorry, you need to Log In to post a reply to this thread.