Raised This Month: $32 Target: $400
 8% 

[CS GO] Increase total grenades limit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maros1
Junior Member
Join Date: Dec 2014
Old 01-30-2016 , 05:35   [CS GO] Increase total grenades limit
Reply With Quote #1

Hi, I'm working on plugin which give player with specified flag, 5 grenades. Well, this work correctly, player gets 5 nades, but one of them is drops to ground. Do you have any idea how I can change limit 4 nades in eq to 5 or more?
Maros1 is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 01-30-2016 , 10:24   Re: [CS GO] Increase total grenades limit
Reply With Quote #2

Just set cvars correctly.
Code:
ammo_grenade_limit_default
ammo_grenade_limit_flashbang
ammo_grenade_limit_total
Kailo is offline
Maros1
Junior Member
Join Date: Dec 2014
Old 01-30-2016 , 18:14   Re: [CS GO] Increase total grenades limit
Reply With Quote #3

These commands works for all players. I want set to player with specific flag.
Maros1 is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 01-31-2016 , 03:17   Re: [CS GO] Increase total grenades limit
Reply With Quote #4

I don't understand the problem. Set limit to 9999. Give 5 nades for player with flag and don't give grenade for player without flag.
Kailo is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-31-2016 , 05:00   Re: [CS GO] Increase total grenades limit
Reply With Quote #5

Quote:
Originally Posted by Kailo View Post
I don't understand the problem. Set limit to 9999. Give 5 nades for player with flag and don't give grenade for player without flag.
People without the flag would (assuming they have the game money for it) be able to buy 9999 as well.

I don't know for sure, but you might be able to accomplish your goal with [ANY] ConVar Faker if that plugin also works for CS:GO, by faking the convars above for people with the appropriate flag.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Maros1
Junior Member
Join Date: Dec 2014
Old 01-31-2016 , 05:35   Re: [CS GO] Increase total grenades limit
Reply With Quote #6

Nevermind, problem solved, but thanks for response. ;)
Maros1 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-31-2016 , 05:36   Re: [CS GO] Increase total grenades limit
Reply With Quote #7

Quote:
Originally Posted by Maros1 View Post
Nevermind, problem solved, but thanks for response. ;)
How did you solve it?
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Maros1
Junior Member
Join Date: Dec 2014
Old 01-31-2016 , 13:20   Re: [CS GO] Increase total grenades limit
Reply With Quote #8

Well, if player die, then in next round he have 5 nades, but if he survive round and use only 2 nades for example flash and smoke, in next round, he gets these nades, but one of them is drops to ground. So, when he is spawning, plugin removes all nades then in next step player gets 5 nades and all have in eq.
Maros1 is offline
Reply



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 08:32.


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