Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local EVENT = {}
- EVENT.Title = "A Random Person will be revived every 90 seconds! Check that scoreboard!"
- function EVENT:Begin()
- timer.Create("RandomatRevive",90,0, function()
- local plys = {}
- for _, ply in pairs(self:GetPlayers(true)) do
- if !ply:IsTerror() then
- table.insert(plys, ply)
- end
- end
- self:SmallNotify("Test123")
- local player = plys[math.random(0,#plys)]
- self:SmallNotify(" Test456")
- if !player:IsTerror() then
- self:SmallNotify(" 789")
- player:SpawnForRound()
- self:SmallNotify("!!!!!!!!!!! ")
- self:SmallNotify(player:Nick() .. " has come back to life!")
- --DamageLog("Randomat: " .. player:Nick() .. " has been revived.")
- else
- self:SmallNotify("No one was revived!")
- end
- end)
- end
- function EVENT:End()
- self:SmallNotify("yooooooooooooooooooooooooooooooooooooo")
- self:CleanUpHooks()
- timer.Remove("RandomatRevive")
- end
- Randomat:register("explode", EVENT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement