Forum

> > CS2D > Scripts > My buy menu doesn't work
Forums overviewCS2D overview Scripts overviewLog in to reply

English My buy menu doesn't work

8 replies
To the start Previous 1 Next To the start

old My buy menu doesn't work

Nahuel3d
User Off Offline

Quote
i want to make a menu with some items and if you say !weapons the menu appears but when i launch the game it leaves.
I need help pliz!
sorry for my bad english

here's the script:

1
2
3
4
addhook("say","command")
function command(id,!weapons)
menu(1,"Custom Buy Menu,Item 1|$5,Item 2|$50,(Item 3|$999999),Item 4|$0")
end

(is my first script for cs2d)

old Re: My buy menu doesn't work

Suprise
BANNED Off Offline

Quote
im not scripter but here your go(I think)

1
2
3
4
5
6
addhook("say","command")
function command(id,txt)
if txt="!weapons" then
menu(id,"Custom Buy Menu,Item 1|$5,Item 2|$50,Item 3|$999999,Item 4|$0")
end
end

old Re: My buy menu doesn't work

Avo
User Off Offline

Quote
1
2
3
4
5
6
addhook("say","command")
function command(id,txt)
	if txt="!weapons" then
		menu(id,"Custom Buy Menu,Item 1|$5,Item 2|$50,Item 3|$999999,Item 4|$0")
	end
end
I'm a scripter and I say it's good.

old Re: My buy menu doesn't work

EP
User Off Offline

Quote
BOLT_PL U FAILED (Expected near = blablabla)
1
2
3
4
5
6
addhook("say","command")
function command(id,txt)
	if txt=="!weapons" then
		menu(id,"Custom Buy Menu,Item 1|$5,Item 2|$50,Item 3|$999999,Item 4|$0")
	end
end
hehe winner

old Re: My buy menu doesn't work

sheeL
User Off Offline

Quote
user Avo has written
1
2
3
4
5
6
addhook("say","command")
function command(id,txt)
	if txt="!weapons" then
		menu(id,"Custom Buy Menu,Item 1|$5,Item 2|$50,Item 3|$999999,Item 4|$0")
	end
end
I'm a scripter and I say it's good.


what ?

your code, and blaistring and all , is equal...

old Re: My buy menu doesn't work

Devil-Thanh
GAME BANNED Off Offline

Quote
1
2
3
4
5
6
addhook("say","command")
function command(id,cmd)
	if cmd=="!weapon" then
		menu(1,"Custom Buy Menu,Item 1|$5,Item 2|$50 (Item3|$999999),Item 4|$0")		
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview