thx
greez dew
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("say","rp_say") function rp_say(id,txt) 	if string.lower(string.sub(1,5)) == "!kick" then -- Check the command 		if player(id,"team") == 2 then -- Check team 			parse("kick "..string.sub(txt,7)) 		end 		return 1 -- Don't show the text 	end end