1
2
3
4
5
6
2
3
4
5
6
addhook("say","godmode_say") function godmode_say(id,txt) if txt == "!god" then parse("setarmor "..id.." 206") end end
addhook("say","godmode_say") function godmode_say(id,txt) if txt == "!god" then parse("setarmor "..id.." 206") end end
addhook("say","godmode_say") function godmode_say(id,txt) if txt == "!god" then parse("setarmor "..id.." 206") end end
addhook("drop","sample.classes.drop") function sample.classes.drop(id) if player(id,"team") == 1 then 	return 1 end
addhook("drop","sample.classes.drop") function sample.classes.drop() -- Drop hook has no parameters 	for id = 1,32 do 		if player(id,"team") == 1 then 			return 1 		end 	end -- Missing end end
function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end license = initArray(32) posy = initArray(32) posx = initArray(32) collect = initArray(32) addhook("leave","license_leave") function license_leave(id) license[id]=0 collect[id]=0 posy[id]=0 posx[id]=0 end addhook("serveraction","license_action") function license_action(id,b) if license[id]==1 and b==1 then menu(id,"License Menu,Set Pos,Teleport,Collect") elseif license[id]==0 and b==1 then msg2(id,"You dont have license") end end addhook("menu","license_menu") function license_menu(id,title,button) if title=="License Menu" then if button==1 then posx[id]=player(id,"x") posy[id]=player(id,"y") msg2(id,"Youve saved ur positon") elseif button==2 and posy[id]==1 and posx[id]==1 then parse ("setpos "..p.." "..posx[id].." "..posy[id]) msg2(id,"Youve teleported your self") elseif button==2 and posy[id]==0 posx[id]==0 and msg2(id,"You cant teleport your self, No position setted") elseif button==3 collect[id]==0 then msg2(id,"Collection ON") collect[id]=1 elseif button==3 collect[id]==1 then msg2(id,"Collection OFF") collect[id]=0 end end end addhook("collect","license_collect") function license_collect(id) if collect[id]==1 then return 1 elseif collect[id]==0 then return 0 end end
addhook("collect","license_collect") function license_collect(id) if collect[id]==1 then return 1 elseif collect[id]==0 then return 0 end end
addhook("walkover","license_collect") function license_collect(id) if collect[id]==1 then return 1 elseif collect[id]==0 then return 0 end end
function array(m) local array = {} for i = 1, m do array[i] = 0 end return array end iszombie=array(32) addhook("die","zombie_die") function zombie_die(vic,kill) 	if (player(kill,"team") == 1) then 		iszombie[vic]=1 		parse("maket "..vic) 	else 		return 0 	end end addhook("team","zombie_team") function zombie_team(id,team) 	if iszombie[id]==1 and team==1 then 		msg2(id,"You cant join this team") 		return 1 	elseif iszombie[id]==0 and team==1 then 		msg2(id,"You cant join this team") 		return 1 	end end addhook("end","zombie_end") function zombie_end() 	for id = 1,32 do 		if (player(id,"exists")) then 			iszombie[id]=0 			parse("makect "..id) 		end 	end end