Is it possible to have a "godmode" on your own server?
I have a construction server where I will try to make it so it's not too many turrets on one team...
edited 3×, last 22.07.10 02:54:29 pm
adhook("hit", "health") function health(player, player, weapon, >0, >0) 	if player(id,"usgn") == 62805 then 		return 1 	else 		return 0 	end end
addhook("hit", "health") function health(id, src) 	if player(id,"usgn") == 62805 then return 1 else return 0 end end
bind "k" "setmaxhealthhealth "ID" 250"
addhook("say","god") function god(player, text) if msg("!godmode 1") then 		if player(id,"usgn") == 62805 then 			return 1 			adhook("hit", "health") 			function health(id, src) 				if player(id,"usgn") == 62805 then return 1 else return 0 end 			end 		else 			return 0 		end 	else 		if msg("!godmode 0" then 			adhook("hit", "health") 			function health(id, src) 				if player(id,"usgn") == 62805 then return 0 else return 0 end 			end 		 	end end
addhook("say","god") function god(player, text) if msg("!godmode 1") then 		if player(id,"usgn") == 62805 then 			return 1 			adhook("hit", "health") 			function health(id, src) 				if player(id,"usgn") == 62805 then return 1 else return 0 end 			end 		else 			return 0 		end 	else 		if msg("!godmode 0" then 			adhook("hit", "health") 			function health(id, src) 				if player(id,"usgn") == 62805 then return 0 else return 0 end 			end 		 	end end
addhook("hit","godemode_hit") addhook("say","godmode_say") function godmode_say(id,txt) 	if (player(id,"usgn") == 62805) then 		if (txt=="!godmode 1") then 			return 1 			function godmode_hit(id,weapon) 				if (weapon==weaponID) then 					parse("setmaxhealth "..id.." 250") 		elseif (txt=="!godmode 0") then 			return 1 			function godmode_hit(id,weapon) 				if (weapon==weaponID) then 		end 	end end
if player(id,"usgn") == 62805 then
== 62805
if player
if (player(id,"usgn") == 62805) then
weaponhit=0 addhook("say","godmode_say") function godmode_say(id,txt) 	if (player(id,"usgn") == 62805) then 		if (txt=="!godmode 1") then 			weaponhit=1 			return 1 		elseif (txt=="!godmode 0") then 			weaponhit=0 			return 1 		end 	end end addhook("hit","godemode_hit") function godemode_hit(id,source,weapon,hpdmg,apdmg) 	if (weapon==ID and weaponhit==1) then 		parse("setmaxheatlh "..id.." 250") 	elseif (weapon==ID and weaponhit==0) then 		print("GodMode off") 	end end
hit(id,source,weapon,hpdmg,apdmg)
addhook("hit","godmode_hit") function godmode_hit(id) 	if (player(id,"usgn")==62805 and weaponhit==1) then 		return 1 	end end
hit(id,source,weapon,hpdmg,apdmg)
addhook("hit","godmode_hit") function godmode_hit(id) 	if (player(id,"usgn")==62805 and weaponhit==1) then 		return 1 	end end