ULX

Author Topic: New Life Rule  (Read 2159 times)

0 Members and 1 Guest are viewing this topic.

Offline Mindless

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
New Life Rule
« on: February 14, 2013, 02:17:27 PM »
Right, i've made my own new life rule system but I kinda need help. I saw this mod on the forums for Garrys Mod.org, basically it makes a timer and makes them wait 15 seconds before accepting. If anyone can help me it'd be appericated, it's pretty simple.

Code: [Select]
local message = "You have died and forgotten everything that has happened to you. This includes where you died, and who killed you.\nYou can't come back to the place you died for 10 minutes!"

if CLIENT then
    function showDeathNotice()
        Derma_Query(message, "New Life Rule", "I agree")
    end
    concommand.Add("showdeathnotice", showDeathNotice)
else
    hook.Add("DoPlayerDeath", "showDeathNotice", function(ply)
        ply:ConCommand("showdeathnotice")
    end)
end