1
2
3
2
3
15101 25 100 23205 814 43 34201 973 115
Scripts
Lua Scripts/Questions/Help15101 25 100 23205 814 43 34201 973 115
admins = { 1, 1234 } -- USGNs der Admins
addhook("say", "adminheardead")
function adminheardead(id, text)
	if (player(id,"health")==0) then
		for i=1,32,0 do
			if (player(id,"usgn")==admins[]) then
				msg2(i,player(id,"name")..": "..text)
			end
		end
	end
end
admins={1,1234}--usgns
function admindh(i,t)
	if player(i,"health")<1 then
		for x=1,#admins do
			if player(i,"usgn")==admins[x] then
				msg2(i,player(i,"name")..': '..t)
			end
		end
	end
end
addhook('say','adminh')
admins={1,1234}--usgns
function admindh(i,t)
	if player(i,"health")<1 then
		for x=1,#admins do
			if player(i,"usgn")==admins[x] then
				msg2(i,player(i,"name")..': '..t)
			end
		end
	end
end
addhook('say','adminh')
admins={1,1234}--usgns
addhook('say','adminh')
function admindh(i,t)
	if player(i,"health")<1 then
		for id=1,32 do
		for x=1,#admins do
			if player(id,"usgn")==admins[x] then
				msg2(id,player(i,"name")..'(DEAD): '..t)
			end
end
		end
	end
end

admins={1,1234}--usgns
addhook('say','adminh')
function admindh(i,t)
if player(i,"health")<1 then
for id=1,32 do
if id~=i then
if player(id,"health")~=0 then
for x=1,#admins do
if player(id,"usgn")==admins[x] then
msg2(id,player(i,"name")..'(DEAD): '..t)
end
end
end
end
end
end
end

admins={[1234]=1,[345]=1,[456]=1}
addhook("say","asdf")
function asdf(p,t)
	if player(p,"health")=0 then --only dead players
		for i=1,32 do
			if admins[player(i,"usgn")] and player(i,"health")~=0 then --only to alive admins
				msg2(i,player(p,"name").." *DEAD*: "..t)
			end
		end
	end
end