DarkRP NLR.

I want a simple thing when someone dies it shows a derma saying.

You have died, Please follow the New Life Rule. You are not able to go back to where you where for 2 minutes.

I Agree - Makes them Respawn

For the love of god, dont create 5 threads aday, with text for like 1½ line.

Create a thread named “I need help with various stuff” and then update the OP (Original Post).

Goes into cl_init.lua



-- Lua generated by DermaDesigner

function DeathMenu()
local DButton1
local DLabel2
local DLabel1
local DPanel1
local Menu

Menu = vgui.Create('DFrame')
Menu:SetSize(275, 110)
Menu:Center()
Menu:SetTitle('You have died...')
Menu:SetDeleteOnClose(false)
Menu:ShowCloseButton(false)
Menu:MakePopup()

DPanel1 = vgui.Create('DPanel')
DPanel1:SetParent(Menu)
DPanel1:SetSize(256, 37)
DPanel1:SetPos(9, 31)

DLabel1 = vgui.Create('DLabel')
DLabel1:SetParent(DPanel1)
DLabel1:SetPos(8, 6)
DLabel1:SetText('You have died. You do not know what killed you.')
DLabel1:SizeToContents()

DLabel2 = vgui.Create('DLabel')
DLabel2:SetParent(DPanel1)
DLabel2:SetPos(12, 19)
DLabel2:SetText('All you remember is your job, friends and home.')
DLabel2:SizeToContents()

DButton1 = vgui.Create('DButton')
DButton1:SetParent(Menu)
DButton1:SetSize(257, 25)
DButton1:SetPos(9, 75)
DButton1:SetText('Start new life')
DButton1.DoClick = function()
     Menu:Close
end

end

concommand.Add("NLR", DeathMenu)


Goes into init.lua:


function NewLifeMenu()
	RunConsoleCommand("NLR")
end
hook.Add( "PlayerDeath", "NRL", NewLifeMenu )

[editline]08:14PM[/editline]

Link:http://www.garrysmod.org/downloads/?a=view&id=65205
Takes 5 seconds…