Ok what I am trying to do is make it so that when the terrorist dies the class will be disabled for 20 minutes and the person will be demoted. After the 20 minutes is up it will useable again and so on.
This is what I have so far.
local function terrorist( ply ) if ply:Team() == TEAM_TERRORIST then ply:ChangeTeam(TEAM_CITIZEN, true) Notify(ply, 1, 4, "You have been demoted because you have died.") for a, b in pairs(player.GetAll()) do Notify(b, 1, 4, "There has been a bombing but the terrorist died in the process!") end end end hook.Add("PlayerDeath", "terrorist", terrorist) local function StopTerrorist( ply ) if ply:Team() == TEAM_TERRORIST then RunConsoleCommand("rp_allowterrorist 0") timer.Create( "StopTerrorist", 1200, 1, function() RunConsoleCommand("rp_allowterrorist 1") end ) end end hook.Add("PlayerDeath", "StopTerrorist", StopTerrorist)