Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function LifeIsGoingOn()
- SuddenBroadcast("Sudden Death: ", Color(255,255,255), "300 Seconds Left To Live")
- timer.Create("TimeLeftToLive", 300, 1, function()
- for _, v in pairs(player.GetAll()) do
- if ( v:Alive() ) then
- v:Kill()
- end
- end
- end)
- end
- function PoisonEverywhere()
- SuddenBroadcast("Sudden Death: ", Color(255,255,255), "The Clock is ticking & The Health Points are falling")
- for k, v in pairs(player.GetAll()) do
- if ( v:GetRole() == ROLE_DETECTIVE and v:Alive() ) then
- v:SetRole(ROLE_INNOCENT)
- end
- end
- for k, v in pairs(player.GetAll()) do
- if ( v:Alive() ) then
- v:SetHealth(200)
- timer.Create("TakePoisonDamage_"..v:EntIndex(), 1, 200, function()
- local dmginfo = DamageInfo()
- dmginfo:SetDamage(1)
- dmginfo:SetDamageType(DMG_POISON)
- v:TakeDamageInfo(dmginfo)
- end)
- end
- end
- hook.Add("PlayerDeath", "PS_RemovePoison", function(ply)
- if ( timer.Exists("TakePoisonDamage_"..ply:EntIndex()) ) then
- timer.Remove("TakePoisonDamage_"..ply:EntIndex())
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement