AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved CSGO buy weapons from menu whit -$ (https://forums.alliedmods.net/showthread.php?t=311845)

iskenderkebab33 11-04-2018 17:57

CSGO buy weapons from menu whit -$
 
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

HvG Community 11-04-2018 20:55

Re: CSGO buy weapons from menu whit -$
 
2 Attachment(s)
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.

iskenderkebab33 11-06-2018 17:51

Re: CSGO buy weapons from menu whit -$
 
Quote:

Originally Posted by HvG Community (Post 2622653)
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.

HvG Community 11-09-2018 13:33

Re: CSGO buy weapons from menu whit -$
 
3 Attachment(s)
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

iskenderkebab33 11-09-2018 16:07

Re: CSGO buy weapons from menu whit -$
 
Quote:

Originally Posted by HvG Community (Post 2623267)
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


All times are GMT -4. The time now is 00:14.

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