It doesn't work,but i cannot find the reason at all.
Could you give me a hand.?
Sorry for my bad English.
Code:
addhook("usebutton","testbutton")
function testbutton(id,title,button)
if title =="Test" then
if button == 1 then
parse("equip "..id.." 10")
parse("setweapon "..id.." 10")
end
end
end
function testbutton(id,x,y)
if entity(x,y,"name") =="testbutton" then
menu(id,"Test,xd")
end
end