I doesnt matter for what weapon you do it just give me an example like for the m3
Forum




Gun from wall
4 replies



I doesnt matter for what weapon you do it just give me an example like for the m3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("say","wpnmenu")
function wpnmenu(id,txt)
if (txt=="!weapons") then
menu(id, "What weapon do you need?, M3|5000$")
end
end
addhook("menu","admmenu")
function admmenu(id,men,sel)
if men == "What weapon do you need?" then
if sel == 1 and player(id,"money") >= 4999 then
parse("setmoney "..id.." "..player(id,"money")-5000)
parse("equip "..id.." 10")
msg2(id,"You now have an M3")
end
end
end
I've tested it, and here are results:


Only sorry, i don't know how to do the "When you press on a wall" thing.
But i will try to find our.
Nice begining but this is not what i want.
It has to come from a use button.
And if i have already a weapon the m3 cant be bought.
That is what i want.



