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

[CSGO] Gun Menu With Currency Support


Post New Thread Reply   
 
Thread Tools Display Modes
Author
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Plugin ID:
5982
Plugin Version:
1.0.5
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Gun Menu With Currency Support
Old 01-11-2018 , 06:51   [CSGO] Gun Menu With Currency Support
Reply With Quote #1

Been seeing people asking for gun menu with currency support
Instead of reinventing the wheel, here is a version that uses the weapon market (https://forums.alliedmods.net/showthread.php?p=1786148) plugin

Requirement:
Weapon Market (to compile & run): https://forums.alliedmods.net/showthread.php?p=1786148
Multi Colors (to compile): https://forums.alliedmods.net/showthread.php?t=247770

Command:
!guns / sm_guns
shows the gun menu

Cvars:
  • sm_guns_team (1 - for any team, 2 - for t, 3 - for ct) [Default 1]
  • sm_guns_buyzone (1 - for buying in buyzone only, 0 - for buying anywhere) [Default 1]
  • sm_guns_buytime (1 - obey mp_buytime, 0 - ignore mp_buytime) [Default 1]

changelog
*1.0 initial release
*1.0.1 added sm_guns_buyzone cvar
*1.0.2 fix not giving weapon
*1.0.3 added messages with translation
*1.0.4 added sm_guns_buytime cvar
*1.0.5 disable giving weapon if player is outside of buyzone and obey mp_buytime
Attached Files
File Type: txt gun_menu.phrases.txt (442 Bytes, 715 views)
File Type: smx guns.smx (14.5 KB, 607 views)
File Type: sp Get Plugin or Get Source (guns.sp - 693 views - 2.7 KB)
__________________

Last edited by 8guawong; 02-27-2018 at 11:42.
8guawong is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 01-11-2018 , 11:28   Re: [CSGO] Gun Menu With Currency Support
Reply With Quote #2

It's 2018, let's use new syntax!

Updated for you
Attached Files
File Type: sp Get Plugin or Get Source (guns.sp - 528 views - 2.4 KB)
__________________
sneaK is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 02-26-2018 , 22:46   Re: [CSGO] Gun Menu With Currency Support
Reply With Quote #3

Can you please add to remove player's menu when they walk out of the buy zone area? Because when I typed !guns and walk out of the spawn with the menu still opened, I could purchase the weapon any where on the map if you left the buy menu open.
srvmil is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-27-2018 , 11:42   Re: [CSGO] Gun Menu With Currency Support
Reply With Quote #4

Quote:
Originally Posted by srvmil View Post
Can you please add to remove player's menu when they walk out of the buy zone area? Because when I typed !guns and walk out of the spawn with the menu still opened, I could purchase the weapon any where on the map if you left the buy menu open.
try the newest version
__________________
8guawong is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 02-28-2018 , 02:57   Re: [CSGO] Gun Menu With Currency Support
Reply With Quote #5

Quote:
Originally Posted by 8guawong View Post
try the newest version
Yep that works thanks.

However, I'm concerned about the weapons. When I buy a rifle gun and got in my hand, then buy another rifle it replaces the existing rifle in my hand and drop the existing one on the ground and gave me a new rifle.

This is not the case with pistols, when I choose a pistol, it just drops on the floor when it suppose to give it in your hand, because when buying and that weapon are dropped, team mate can steal the pistol off the ground. Is there any way you can fix this for pistol?

Buying a pistol should drop existing pistol onto ground and gave u a new pistol in hand.
srvmil is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-28-2018 , 10:48   Re: [CSGO] Gun Menu With Currency Support
Reply With Quote #6

Quote:
Originally Posted by srvmil View Post
Yep that works thanks.

However, I'm concerned about the weapons. When I buy a rifle gun and got in my hand, then buy another rifle it replaces the existing rifle in my hand and drop the existing one on the ground and gave me a new rifle.

This is not the case with pistols, when I choose a pistol, it just drops on the floor when it suppose to give it in your hand, because when buying and that weapon are dropped, team mate can steal the pistol off the ground. Is there any way you can fix this for pistol?

Buying a pistol should drop existing pistol onto ground and gave u a new pistol in hand.
that is out the scope of this plugin

i think you'd have to edit the market plugin to do what you want
__________________
8guawong is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 03-01-2018 , 02:02   Re: [CSGO] Gun Menu With Currency Support
Reply With Quote #7

Quote:
Originally Posted by 8guawong View Post
that is out the scope of this plugin

i think you'd have to edit the market plugin to do what you want
Ah its ok, not a big deal anyway.

How do I remove an space at the start of the [GUNS] for annoucement and others.

PHP Code:
 [GUNSType !guns for menu  (is what your is currently showing)
[
GUNSType !guns for menu (I'd like to see this one as it look tidy) 

Last edited by srvmil; 03-01-2018 at 02:03.
srvmil is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 03-01-2018 , 02:40   Re: [CSGO] Gun Menu With Currency Support
Reply With Quote #8

Quote:
Originally Posted by srvmil View Post
Ah its ok, not a big deal anyway.

How do I remove an space at the start of the [GUNS] for annoucement and others.

PHP Code:
 [GUNSType !guns for menu  (is what your is currently showing)
[
GUNSType !guns for menu (I'd like to see this one as it look tidy) 
only if you don't want color in your msg
its a csgo quirk https://wiki.alliedmods.net/Csgo_qui...ng_Text-Colors
__________________
8guawong 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 15:30.


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