I don't know how to post image to show you what is the problem.
edited 1×, last 18.06.15 02:29:25 am
------------------------------- ----- Player Menu ----- ----- By Mommy123 ----- ------------------------------- addhook("serveraction","action") addhook("menu","hats") addhook("menu","list") addhook("menu","bind") addhook("menu","glow") addhook("minute","ads") function action(id,key) if key == 1 then 	menu(id,"Player Menu,Add Hats,Add Bind,Add Glow,Close Menu") 	end end function list(id,title,button) if title == "Player Menu" then if button == 5 then parse ("setscore "..id.." ..0") 	parse ("setdeaths "..id.." ..0") 	elseif button == 1 then 	menu(id,"Add Hats,Angel,Bonnie Hat,Chapeu,Headcrab,Kid Hat,Santa Hat,Spear,Valentine Hat,Remove") 	elseif button == 2 then 	menu(id,"Add Bind,Laser Sight,Flashlight,Arrow,Remove") elseif button == 3 then 	menu(id,"Add Glow,Star,Heart,Circle,Remove") end end end function hats(id,title,button) if title == "Add Hats" then if button == 1 then 	freeimage(id) 	id=image("gfx/player menu/hats/angel.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 2 then 	freeimage(id) 	id=image("gfx/player menu/hats/bonnie.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 3 then 	freeimage(id) 	id=image("gfx/player menu/hats/chapeu.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 4 then 	freeimage(id) 	id=image("gfx/player menu/hats/headcrab.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 5 then 	freeimage(id) 	id=image("gfx/player menu/hats/kid.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 6 then 	freeimage(id) 	id=image("gfx/player menu/hats/santa_hat.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 7 then 	freeimage(id) 	id=image("gfx/player menu/hats/spear.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 8 then 	freeimage(id) 	id=image("gfx/player menu/hats/valentine.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1) end if button == 9 then 	freeimage(id) end end end function bind(id,title,button) if title == "Add Bind" then if button == 1 then 	freeimage(id) 	id=image("gfx/player menu/bind/laser.png",1,1,200+id) 	imagealpha(id1,1.0) 	imageblend(id,1.5) end if button == 2 then 	freeimage(id) 	id=image("gfx/player menu/bind/flashlight.png",1,1,200+id) 	imagealpha(id,0.5) 	imageblend(id,1) end if button == 3 then 	freeimage(id) 	id=image("gfx/player menu/bind/arrow.png",1,1,200+id) 	imagealpha(id,1,1.0) 	imageblend(id,1) end if button == 4 then 	freeimage(id) end end end function glow(id,title,button) if title == "Add Glow" then if button == 1 then 	freeimage(id) 	id=image("gfx/player menu/glow/star.png",0,0,100+id) 	imagealpha(id,0.3) 	imageblend(id,1) end if button == 2 then 	freeimage(id) 	id=image("gfx/player menu/glow/heart.png",0,0,100+id) 	imagealpha(id,0.3) 	imageblend(id,1) end if button == 3 then 	freeimage(id) 	id=image("gfx/player menu/glow/circle.png",0,0,100+id) 	imagealpha(id,0.3) 	imageblend(id,1) end if button == 4 then 	freeimage(id) end end end ----------------------------------- --- Sorry For Spamming --- ----------------------------------- --- Don't Remove This Function --- ----------------------------------- function ads() 	msg("©000255000Press F2 To Open Player Menu !") 	msg("©255000255Scripts By Mommy123 !") end
image[id]
image[id] = image("gfx/block.png", 0, 0,1)
-- This variable is to store the image. -- You didn't store the image so technically you can't remove the image. playerimage = {} for id = 1, 32 do 	playerimage[id] = {} end function removeimage(index) 	if (playerimage[id][index]) then 		freeimage(playerimage[id][index]) 		 		playerimage[id][index] = nil 	end end for index, hook in pairs({"serveraction", "menu", "minute"}) do 	addhook(hook, hook .. "hook") end function serveractionhook(id, action) 	if (action == 1) then 		menu(id, "Player Menu,Add hat,Add bind,Add glow") -- "Close Menu" button is really useless 	end end function menuhook(id, title, button) 	if (title == "Player Menu") then 		-- There's no button 5 in your menu. "Close Menu" is button 4. 		if (button == 1) then 			menu(id, "Add Hat,Angel,Bonnie Hat,Chapeu,Headcrab,Kid Hat,Santa Hat,Spear,Valentine Hat,Remove hat") 		elseif (button == 2) then 			menu(id, "Add Bind,Laser Sight,Flashlight,Arrow,Remove bind") 		elseif (button == 3) then 			menu(id, "Add Glow,Star,Heart,Circle,Remove glow") 		end 	elseif (title == "Add Hat") then 		if (button ~= 0) then 			removeimage("hat") 		end 		 		local hat = {"angel", "bonnie", "chapeu", "headcrab", "kid", "santa_hat", "spear", "valentine"} 		 		if (button >= 1 and button <= 8) then 			playerimage[id].hat = image("gfx/player menu/hats/" .. hat[button] .. ".png", 1, 1, 200 + id) 		end 	elseif (title == "Add Bind") then 		if (button ~= 0) then 			removeimage("bind") 		end 		 		local bind = {"laser", "flashlight", "arrow"} 		 		if (button >= 1 and button <= 3) then 			playerimage[id].bind = image("gfx/player menu/bind/" .. bind[button] .. ".png", 1, 1, 200 + id) 		end 	elseif (title == "Add Glow") then 		if (button ~= 0) then 			removeimage("glow") 		end 		 		local glow = {"star", "heart", "circle"} 		 		if (button >= 1 and button <= 3) then 			playerimage[id].glow = image("gfx/player menu/glow/" .. glow[button] .. ".png", 1, 1, 200 + id) 		end 	end end function minutehook() 	msg("\169000255000Press F2 to open Player Menu!") 	msg("\169255000255Script originally by Mommy123..") 	msg("\169255000255because all issues have been fixed by Cozen!") end
imageblend