Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GodMode = {
- Settings = {
- Length = 25
- }
- }
- function GodMode:PlayerSpawn(ply)
- if !IsValid(ply) then return end
- ply:GodEnable()
- ply.GodEnabled = true
- ply:ChatPrint("Votre protection anti-spawnkill est activée.")
- ply:SetMaterial("models/alyx/emptool_glow")
- timer.Simple(self.Settings.Length, function()
- if !IsValid(ply) then return end
- ply:ChatPrint("Votre protection anti-spawnkill est maintenant désactivée.")
- ply:GodDisable()
- ply.GodEnabled = false
- ply:SetMaterial("")
- end)
- end
- hook.Add("PlayerSpawn", "GE.PlayerSpawn", function(...) GodMode:PlayerSpawn(...) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement