What i want is, when a player spawn, he gets invencible by 10 seconds. This means the player will not take any damage by enemy after 10 seconds after his respawn. Can you help me ?
Anyway thanks
Scripts
Need script to respawn
Need script to respawn
1

god = 0
addhook("hit","godhit")
function godhit(id,h)
	if god == 1 then
		return 1
	else
		return 0
	end
end
addhook("spawn","hmm")
function hmm()
	god = 1
	timer(10000,"reGod")
end
function reGod()
	god = 0
end
i dindnt remember i can do that
limonata has written
! GodMode = {}
for i = 1, 32 do
	GodMode[i] = -1
end
addhook("spawn", "OnSpawn")
OnSpawn = function(id)
	GodMode[id] = 0
end
addhook("second", "EverySecond")
EverySecond = function()
	local T = player(0, "tableliving")
	for _, id in pairs(T) do
		if GodMode[id] >= 0 and GodMode[id] < 10 then
			GodMode[id] = GodMode[id] + 1
		elseif GodMode[id] >= 10 then
			GodMode[id] = -1
		end
	end
end
addhook("hit", "OnHit")
OnHit = function(id)
	if GodMode[id] >= 0 then
		return 1
	end
end
IM REALLY SORRY, i will not use that script, because i found a better way to my server. Can you make the same but with safe zones : http://unrealsoftware.de/files_show.php?file=12950 ? Please
Also sorry again for making you loose your time. Please help me thats the last thing i need to do to complete my server.
_Yank: I fixed it and i send it to you ? Didnt work?
_Yank has written
IM REALLY SORRY, i will not use that script, because i found a better way to my server. Can you make the same but with safe zones : http://unrealsoftware.de/files_show.php?file=12950 ? Please
Also sorry again for making you loose your time. Please help me thats the last thing i need to do to complete my server.
1
