Forum

> > CS2D > Scripts > Buy Menu Prices!
Forums overviewCS2D overview Scripts overviewLog in to reply

English Buy Menu Prices!

6 replies
To the start Previous 1 Next To the start

old Buy Menu Prices!

samucaj
User Off Offline

Quote
Guys, how to edit price of the weapons in Counter strike 2D?

Example, the price of the Deagle is $2000 example. And i edit and now is $1000. Stand? If stand, help me?

old Re: Buy Menu Prices!

Tajifun
User Off Offline

Quote
As far as I know editing the Buy Menu prices is not possible.

I suggest you to create your own buymenu.

old Re: Buy Menu Prices!

Yates
Reviewer Off Offline

Quote
user Tajifun has written
I suggest you to create your own buymenu.

You just made him ask for something else. Well done..

old Re: Buy Menu Prices!

samucaj
User Off Offline

Quote
No, but is a good idea. With scripts i can create a new menu but, can i add new server action button? Why i used the 3 server actions buttons in my server. And buy menu is not avaible in my Server " NoBuying ". So, can add new button?

old Re: Buy Menu Prices!

Apache uwu
User Off Offline

Quote
Well potentially you could open a buy menu with the server action keys. The list the item prices on the side of the menu with "|", afterwards you could just use the parse command setpos to decrease their money.

Don't forget to check their money amount. (player(id,"money"))

old Re: Buy Menu Prices!

samucaj
User Off Offline

Quote
So i test this form, is correct?

addhook("action","BYmenu")
function Bymenu(id,action)
if button==act1 then
menu(id,"Buy Menu,Melee,Pistols,Exit")
end
end

If title==("Melee")
if button==1 then
(player(id,"money"))
if money==+500 then
parse( give item to player )
parse( substract money for player )-500)
menu(id,"Melee,Knife,Return")
end
end
If button==2 then
return 1
end

If title==("Pistols")
if button==1 then
(player(id,"money"))
if money==+500 then
parse( give item to player )
parse( substract money for player )-500)
menu(id,"Melee,Glock,Return")
If button==2 then
return 2
end

If tile==("Return")
return 3
end

It's not okay isn't?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview