1
2
3
4
5
6
2
3
4
5
6
addhook("attack","ms_turret") function ms_turret(id,tilex,tiley) sx=player(id,"tilex") sy=player(id,"tiley") parse('spawnobject 8 '..(sx+1)..' '..(sy+1)..' 0 0 '..player(id,"team")..' '..id) end
addhook("attack","ms_turret") function ms_turret(id,tilex,tiley) sx=player(id,"tilex") sy=player(id,"tiley") parse('spawnobject 8 '..(sx+1)..' '..(sy+1)..' 0 0 '..player(id,"team")..' '..id) end
addhook("say","player_say")end function player_say(id,txt)end 	if(txt=="!usp") then end 		parse("equip "..id.." 1")end 	if(txt=="!glock") then end 		parse("equip "..id.." 2")end 	if(txt=="!deagle") then end 		parse("equip "..id.." 3")end 	end end
addhook("say","player_say")end function player_say(id,txt)end 	if(txt=="!usp") then 		parse("equip "..id.." 1") 	elseif(txt=="!glock") then 		parse("equip "..id.." 2") 	elseif(txt=="!deagle") then 		parse("equip "..id.." 3") 	end end
addhook("say","hi_say") function hi_say(id,tilex,tiley,txt) 	if txt == "hi" then 		if player(id,"tilex") == 50 and player(id,"tiley") == 47 then 			menu(id,"Menu,1,2,3,4,5,6,7,8,9") 		end 	end end
addhook("say","hi_say") function hi_say(id,tilex,tiley,txt) 	if txt == "hi" then 		if player(id,"tilex") == 50 and player(id,"tiley") == 47 then 			menu(id,"Menu,1,2,3,4,5,6,7,8,9") 		end 	end end
addhook("say","hi_say") function hi_say(id,tilex,tiley,txt) 	if (txt == "hi") then 		if (player(id,"tilex") == 50 and player(id,"tiley") == 47) then 			menu(id,"Menu,1,2,3,4,5,6,7,8,9") 		end 	end end
addhook("say","hi_say") function hi_say(id,tilex,tiley,txt) 	if (txt == "hi") then 		if (player(id,"tilex") == 50 and player(id,"tiley") == 47) then 			menu(id,"Menu,1,2,3,4,5,6,7,8,9") 		end 	end end
addhook("say","hi_say") function hi_say(id,tilex,tiley,txt) 	if (txt == "hi") then 		if (player(id,"tilex") == 50 and player(id,"tiley") == 47) then 			menu(id,"Menu,1,2,3,4,5,6,7,8,9") 		end 	end end
addhook("say","hi_say") function hi_say(id,txt) 	if(txt=="hi") then 		if (player(id,"tilex")==50 and player(id,"tiley")==47)then 			hi_menu(id) 		end 	end end function hi_menu(id) 	menu(id,"Menu,1,2,3,4,5,6,7,8,9") end
function initArray(m) 	local array = {} 	for i = 1, m do 		array[i]=0 	end 	return array end random_poison=initArray(32) addhook("hit","poison_hit") function posison_hit(id,source,weapon,hpdmg,apdmg) 	if(weapon==23)then 		if(random_poison[id]>=0 and random_poison[id]<10) then 			random_poison[id]=random_poison[id]+1 		if(random_poison[id]==1) then 			msg2(id,"you got poisoned by "..(player(source,"name")).."!") 			parse("sethealth "..(player(id,"health")-10)) 		if(random_poison[id]==10) then 			random_poison[id]=1 		end 	end end
function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end random_poison=initArray(32) poison_timer=initArray(32) addhook("ms100","random_poisoning") function random_poisoning() 	if(random_poison[id]>=0 and random_poison[id]<10) then 		random_poison[id]=random_poison[id]+1 	end 	if(random_poison[id]==10) then 		random_poison[id]=0 	end end addhook("spawn","poison_off") function poison_off(id) 	poison_timer[id]=0 end addhook("hit","poison_hit") function posison_hit(id,source,weapon,hpdmg,apdmg) if(weapon==23)then if(random_poison[id]==1) then msg2(id,"you got poisoned by "..(player(source,"name")).."!") poison_timer[id]=1 end end end addhook("second","poisoned_timer") function poisoned_timer() 	for i=1,32,1 do 	if (poison_timer[id]>0) then 		poison_timer[id]=poison_timer[id]+1 		parse("sethealth "..i.." "..(player(i,"health")-5)) 	end 	if (poison_timer[id]==6) then 		poison_timer[id]=0 	end end