1
2
3
2
3
if player(id,"health") == 0 then 	--The player is dead end
if player(id,"health") == 0 then 	--The player is dead end
addhook("say","Prison.dead") function Prison.dead(id,t) 	if (player(id,"health") >= 0) then 		msg("©255000000Player "..player(id,"name").."is dead") 	end end
addhook("say","Prison.dead") function Prison.dead(id,t) 	if (player(id,"health") >= 0) then 		msg("©255000000Player "..player(id,"name").."is dead") 	end end
if (player(id,"health") >= 0) then
function function_name(id) parse("the command here") end
function getslotweps(id,slot) 	local myweapons = playerweapons(id) 	local rt = {} 	for v in pairs(myweapons) 		if itemtype(v,"slot") == slot then 			table.insert(rt,v) 		end 	end 	return rt end
function getslotweps(id,slot) local myweapons = playerweapons(id) local rt = {} for v in pairs(myweapons) if itemtype(v,"slot") == slot then table.insert(rt,v) end end return rt end addhook("startround",sround") function sround() 	getslotweps(1,2) 	for i= 1, 32 do 		parse("strip "..i..""..1) -- primary 		parse("strip "..i..""..2) -- Secondary 	end end
addhook("say","bombplant") 	function bombplant(i,txt) 	cmdxb = player(i,"tilex") 	cmdyb = player(i,"tiley") 	if (txt=="plant") then 		parse("spawnitem 63 "..cmdxb.." "..cmdyb) 		parse("sv_sound radio/bombpl.ogg") 	end end
addhook("startround","rstart") function rstart() 	for i = 1,32 do 		if (player(i,"exists")) then 			parse("strip "..i.." 0") 		end 	end end