Raised This Month: $ Target: $400
 0% 

[Req] Custom Buy Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gummybear
Member
Join Date: Mar 2008
Location: Singapore
Old 03-30-2008 , 09:08   [Req] Custom Buy Menu
Reply With Quote #1

I want to have a buy menu, mainly for buying extra grenades. Upon saying /menu or another cmd, a text menu will come up and players will be able to buy extra nades.

Hopefully it can be customisable, so that i can change the items in the buy menu and the prices of each item.

And also no "buy zone" restrictions.
gummybear is offline
Send a message via MSN to gummybear
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-30-2008 , 15:21   Re: [Req] Custom Buy Menu
Reply With Quote #2

by "extra nades" do you mean:
1. You can buy a nade after you've thrown one.
2. You can buy a backup nade that you can use after you throw one. (Eg. Have 3 flashbangs)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
gummybear
Member
Join Date: Mar 2008
Location: Singapore
Old 03-30-2008 , 23:55   Re: [Req] Custom Buy Menu
Reply With Quote #3

U can buy multiple nades, also a cvar to limit the number of nades would be great. So number 2
gummybear is offline
Send a message via MSN to gummybear
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-31-2008 , 17:05   Re: [Req] Custom Buy Menu
Reply With Quote #4

Finished.

Client Commands:
  • say /nades
    • Shows a menu to buy grenades (must be alive)

Cvars:
  • nade_cost_he <#>
    • Cost to buy a he grenade
  • nade_cost_flash <#>
    • Cost to buy a flashbang
  • nade_cost_smoke <#>
    • Cost to buy a smokegrenade
  • nade_limit_he <#>
    • Max he grenades allowed to buy during a round.
  • nade_limit_flash <#>
    • Max flashbangs allowed to buy during a round.
  • nade_limit_smoke <#>
    • Max smokegrenades allowed to buy during a round.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-01-2008 at 07:18. Reason: Removed plugin for next post
Exolent[jNr] is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-01-2008 , 07:18   Re: [Req] Custom Buy Menu
Reply With Quote #5

Here is the fixed version.
Money wasn't being deducted and Limit wasn't being enforced.
Attached Files
File Type: sma Get Plugin or Get Source (extra_nades.sma - 765 views - 5.3 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
gummybear
Member
Join Date: Mar 2008
Location: Singapore
Old 04-01-2008 , 11:39   Re: [Req] Custom Buy Menu
Reply With Quote #6

Awesome shit dude, <2 days!

+Karma for you
gummybear is offline
Send a message via MSN to gummybear
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode