addhook("serveraction","lol2")
function lol2(id,action)
if action == 3 then
menu(id,"Player menu,Close Menu,Hats")
end
end
addhook("menu","lol3")
function lol3(id,title,button)
if title == "Player menu" then
if button == 1 then
parse ("setscore "..id.." ..0")
parse ("setdeaths "..id.." ..0")
elseif button == 2 then
menu(id,"Hats,Coolhat,Santa Hat,Pumpkin,Snowman,Angel,Devil,Spear,Graduation ,Pirate Hat,Close!")
end
end
end
addhook("menu","hatmenu")
function hatmenu(id,title,button)
if title == "Hats" then
if button == 1 then
freeimage(id)
id=image("gfx/Tomaz/gandalf_hat.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 2 then
freeimage(id)
id=image("gfx/Tomaz/santa_hat.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 3 then
freeimage(id)
id=image("gfx/Tomaz/pumpkin_head.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 4 then
freeimage(id)
id=image("gfx/Tomaz/snowman.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 5 then
freeimage(id)
id=image("gfx/Tomaz/angel.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 6 then
freeimage(id)
id=image("gfx/Tomaz/devil.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 7 then
freeimage(id)
id=image("gfx/Tomaz/spear.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 8 then
freeimage(id)
id=image("gfx/Tomaz/graduation_hat.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
if button == 9 then
freeimage(id)
id=image("gfx/Tomaz/pirate_hat.png",1,1,200+id)
imagealpha(id1,1.0)
imageblend(id,1)
end
end
end
So editieren das es nur Admin benutzen dürfen?
File does not exist (10710)
Schonmal Danke