AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Gun Menu With Currency Support (https://forums.alliedmods.net/showthread.php?t=304315)

8guawong 01-11-2018 06:51

[CSGO] Gun Menu With Currency Support
 
3 Attachment(s)
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

sneaK 01-11-2018 11:28

Re: [CSGO] Gun Menu With Currency Support
 
1 Attachment(s)
It's 2018, let's use new syntax!

Updated for you :)

srvmil 02-26-2018 22:46

Re: [CSGO] Gun Menu With Currency Support
 
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.

8guawong 02-27-2018 11:42

Re: [CSGO] Gun Menu With Currency Support
 
Quote:

Originally Posted by srvmil (Post 2580400)
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

srvmil 02-28-2018 02:57

Re: [CSGO] Gun Menu With Currency Support
 
Quote:

Originally Posted by 8guawong (Post 2580461)
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.

8guawong 02-28-2018 10:48

Re: [CSGO] Gun Menu With Currency Support
 
Quote:

Originally Posted by srvmil (Post 2580565)
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

srvmil 03-01-2018 02:02

Re: [CSGO] Gun Menu With Currency Support
 
Quote:

Originally Posted by 8guawong (Post 2580629)
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) 


8guawong 03-01-2018 02:40

Re: [CSGO] Gun Menu With Currency Support
 
Quote:

Originally Posted by srvmil (Post 2580765)
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


All times are GMT -4. The time now is 04:10.

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