[CS] Change cost of SGren
Hello. Noob question, but I can't find solution: how to change cost of default Smoke Grenade (B85, 300$)?
Without fake's buy-menu and other bullshit. |
Re: [CS] Change cost of SGren
If you don't mind using Oprheu, than you can try looking here. It doesn't support grenades but I think you got the idea.
|
Re: [CS] Change cost of SGren
Oh, would not like to install Orpheu only for that thing :(. Anyway, I can't add grenades to this code (signatures, etc.) :(.
Another ideas? |
Re: [CS] Change cost of SGren
Quote:
|
Re: [CS] Change cost of SGren
Sorry for delay, was searching for messages codes so it will look more realistic :)
(not tested but should work) PHP Code:
|
Re: [CS] Change cost of SGren
Jhob94, thank you, but it's does not work when I buy SGren via classic buy-menu :(.
Works only when I buy via "sgren" console command or VGUI buy-menu :(. |
Re: [CS] Change cost of SGren
Quote:
|
Re: [CS] Change cost of SGren
Yes, because buying with classic menu is performed w/o sending 'sgren' command.
Spoiler
Probably best way apart from using modules like Oprheu is to hook "sgren" command + hook client_buy forward or whatever it's name (it has been integrated in amxx 1.8.3). Like this
Spoiler
|
Re: [CS] Change cost of SGren
I am not sure if he wants to use a beta version of amxx. Anyway, took some time searching the damn menuid name, but here you go:
PHP Code:
Will add the task for check about buy time. But, i need to know one thing. The buy time starts at same time as freeze time or when freeze time ends? (cant test since haven't cs at this pc) |
Re: [CS] Change cost of SGren
that function is supported by the older versions of amx mod x too. Its just not integrated. Here it is.
|
| All times are GMT -4. The time now is 15:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.