Spoiler addhook("serveraction","spot")
function spot(id,g)
if g==3 then
menu(id,"Camouflage,CT-Grass,TR-Grass,CT-Dirt,TR-Dirt,Remove",1,1,200+id)
end
end
addhook("menu","menuspot")
function menuspot(id,title,button)
if title=="Camouflage" then
if button==1 then
if (player(id,"team") == 2) then
parse ("setmoney "..id.." "..player(id,"money")-2000)
if(player(id,"team") == 1) then
msg2(p,"You do not have necessary group.")
freeimage(id)
id1=image("",1,1,200+id)
imagepos(1,0,0,180)
elseif button==2 then
elseif (player(id,"team") == 2) then
parse ("setmoney "..id.." "..player(id,"money")-2000)
freeimage(id)
id1=image("",1,1,200+id)
imagepos(1,0,0,180)
elseif button==3 then
elseif (player(id,"team") == 1) then
parse ("setmoney "..id.." "..player(id,"money")-2000)
freeimage(id)
id1=image("",1,1,200+id)
imagepos(1,0,0,180)
elseif button==4 then
elseif (player(id,"team") == 2) then
parse ("setmoney "..id.." "..player(id,"money")-2000)
freeimage(id)
id1=image("",1,1,200+id)
imagepos(1,0,0,180)
elseif button==5 then
elseif (player(id,"team") == 1) then
parse ("setmoney "..id.." "..player(id,"money")-0)
freeimage(id)
id1=image("gfx/health camouflage/remove.bmp",1,1,200+id)
imagepos(1,0,0,180)
end
end
end
end
end[/spoiler