Raised This Month: $12 Target: $400
 3% 

Solved CSGO buy weapons from menu whit -$


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 11-04-2018 , 17:57   CSGO buy weapons from menu whit -$
Reply With Quote #1

hey, as the title says, need plugin where i can type example !buy then a menu will popout with 4 selections deagle, awp, ak47, m4. if i press awp, i will get awp and -$4750 and for other weapons also -$

thanks

Last edited by iskenderkebab33; 11-09-2018 at 16:09.
iskenderkebab33 is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-04-2018 , 20:55   Re: CSGO buy weapons from menu whit -$
Reply With Quote #2

Change the price of weapons in your server.cfg:
sm_wm_ak *price* (default: $2500)
sm_wm_m4 *price* (default: $2500)
sm_wm_deagle *price* (default $600)
sm_wm_awp *price* (default: $4750)

Command is !buy, weapon will get dropped if player is already carrying something.
Attached Files
File Type: sp Get Plugin or Get Source (buy_weapon_menu.sp - 246 views - 3.3 KB)
File Type: smx buy_weapon_menu.smx (5.5 KB, 65 views)

Last edited by HvG Community; 11-04-2018 at 21:00. Reason: I realised you wrote $ in title because of plugin description not because you want to tip, nvm :D
HvG Community is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 11-06-2018 , 17:51   Re: CSGO buy weapons from menu whit -$
Reply With Quote #3

Quote:
Originally Posted by HvG Community View Post
Change the price of weapons in your server.cfg:
sm_wm_ak *price* (default: $2500)
sm_wm_m4 *price* (default: $2500)
sm_wm_deagle *price* (default $600)
sm_wm_awp *price* (default: $4750)

Command is !buy, weapon will get dropped if player is already carrying something.
can you add also, player can only buy one per round please? whit PrintToChat(client, "You have bought already one");
and if the player dont have enough money, PrintToChat(client, "You need $2500 to buy this weapon");
thanks.

Last edited by iskenderkebab33; 11-07-2018 at 04:41.
iskenderkebab33 is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-09-2018 , 13:33   Re: CSGO buy weapons from menu whit -$
Reply With Quote #4

I don't know if you want the limit to count for secondary weapons like Deagle aswell.
If you buy deagle you won't be able to buy anything else.

But I made it like you asked.
And added few additional stuff like you cant buy if you are dead. And if you dont have enough money its gonna just say the amount more that is needed next to weapon.
All weapons also now have weapon price next to them.

Install multicolors.inc aswell so the colors work.

I guess the only thing that could be done more is:

1) Adding time limitation
2) Make deagle not block Primary weapons from being bought.
3) Add cvar for the amount of weapons you can buy per round
Attached Files
File Type: sp Get Plugin or Get Source (buy_weapon_menu.sp - 83 views - 4.8 KB)
File Type: zip Multi-Colors-master.zip (29.7 KB, 53 views)
File Type: smx buy_weapon_menu.smx (15.6 KB, 52 views)

Last edited by HvG Community; 11-09-2018 at 13:39.
HvG Community is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 11-09-2018 , 16:07   Re: CSGO buy weapons from menu whit -$
Reply With Quote #5

Quote:
Originally Posted by HvG Community View Post
I don't know if you want the limit to count for secondary weapons like Deagle aswell.
If you buy deagle you won't be able to buy anything else.

But I made it like you asked.
And added few additional stuff like you cant buy if you are dead. And if you dont have enough money its gonna just say the amount more that is needed next to weapon.
All weapons also now have weapon price next to them.

Install multicolors.inc aswell so the colors work.

I guess the only thing that could be done more is:

1) Adding time limitation
2) Make deagle not block Primary weapons from being bought.
3) Add cvar for the amount of weapons you can buy per round
many thanks! working perfectly
iskenderkebab33 is offline
Reply


Thread Tools
Display Modes

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 07:36.


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