fine but when i choose one hat the gfx won't load i check everything in the file looks fine look
More
-- Made By DarkZBrine
-- Hats
-- 5 Hats
-- Only For CT
-- sorry but enjoy!
-- PERFECT FOR ZOMBIE PLAGUE!
-- ServerAction Menu
addhook("serveraction","hat1")
function hat1(id,b)
if player(id,"team")==2 then
if b==3 then
menu(id,"Hats,Crate,HeadCrab,Light,Steve,Herobrine,Nothing")
end
end
end
-- Menu
addhook("menu","hat2")
function hat2(id,t,b)
if ct=="Hats" then
if b == 1 then
freeimage(id)
id=image("gfx/Hats/crate.png",1,1,200+id)
elseif b == 2 then
freeimage(id)
id=image("gfx/Hats/headcrab.png",1,1,200+id)
elseif b == 3 then
freeimage(id)
id=image("gfx/Hats/light.png",1,1,200+id)
elseif b == 4 then
freeimage(id)
id=image("gfx/Hats/steve.png",1,1,200+id)
elseif b == 5 then
freeimage(id)
id=image("gfx/Hats/herobrine.png",1,1,200+id)
elseif b == 6 then
freeimage(id)
end
end
end
-- Info Msg
addhook("minute","hat3")
function hats3()
msg("== Hats Mod ==")
msg("Author: DarkZBrine")
msg("Lua: DarkZBrine")
msg("Press F4 To Choose Hats")
msg("==============")
end
-- Hats
-- 5 Hats
-- Only For CT
-- sorry but enjoy!
-- PERFECT FOR ZOMBIE PLAGUE!
-- ServerAction Menu
addhook("serveraction","hat1")
function hat1(id,b)
if player(id,"team")==2 then
if b==3 then
menu(id,"Hats,Crate,HeadCrab,Light,Steve,Herobrine,Nothing")
end
end
end
-- Menu
addhook("menu","hat2")
function hat2(id,t,b)
if ct=="Hats" then
if b == 1 then
freeimage(id)
id=image("gfx/Hats/crate.png",1,1,200+id)
elseif b == 2 then
freeimage(id)
id=image("gfx/Hats/headcrab.png",1,1,200+id)
elseif b == 3 then
freeimage(id)
id=image("gfx/Hats/light.png",1,1,200+id)
elseif b == 4 then
freeimage(id)
id=image("gfx/Hats/steve.png",1,1,200+id)
elseif b == 5 then
freeimage(id)
id=image("gfx/Hats/herobrine.png",1,1,200+id)
elseif b == 6 then
freeimage(id)
end
end
end
-- Info Msg
addhook("minute","hat3")
function hats3()
msg("== Hats Mod ==")
msg("Author: DarkZBrine")
msg("Lua: DarkZBrine")
msg("Press F4 To Choose Hats")
msg("==============")
end