Raised This Month: $ Target: $400
 0% 

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 , 18: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 17:09.
iskenderkebab33 is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-04-2018 , 21: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 - 189 views - 3.3 KB)
File Type: smx buy_weapon_menu.smx (5.5 KB, 42 views)

Last edited by HvG Community; 11-04-2018 at 22: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 , 18: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 05:41.
iskenderkebab33 is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-09-2018 , 14: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 - 61 views - 4.8 KB)
File Type: zip Multi-Colors-master.zip (29.7 KB, 36 views)
File Type: smx buy_weapon_menu.smx (15.6 KB, 35 views)

Last edited by HvG Community; 11-09-2018 at 14:39.
HvG Community is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 11-09-2018 , 17: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 11:49.


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