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

[CS:S] Grenade Pack 2


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-13-2012 , 17:34   Re: [CS:S] Grenade Pack 2
Reply With Quote #11

okay, I see that there is a bug - kinda

I'll enhance this plugin to also limit the number of nades they're allowed to "carry" as well as buy...

I'll work on it this weekend
__________________
View my Plugins | Donate
TnTSCS is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 01-15-2012 , 00:02   Re: [CS:S] Grenade Pack 2
Reply With Quote #12

Okay so normal players are reporting holding 2 frags?

I've checked and checked again my settings are

Code:
// This file was auto-generated by SourceMod (v1.4.1)
// ConVars for plugin "grenadepack2.smx"


// Every X rounds the player is reminded of the plugin ['0' = Disable]
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "30.000000"
sm_grenadepack2_announce "5"

// Enable or disable the plugin ['0' = Disable]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_grenadepack2_enabled "1"

// Maximum number of Flashbang's regular players are allowed to carry.
// -
// Default: "2"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_flashbang "2"

// Maximum number of Flashbang's VIP players are allowed to carry.
// -
// Default: "4"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_flashbang_vip "3"

// Maximum number of HE Grenades regular players are allowed to carry.
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_hegrenade "1"

// Maximum number of HE Grenades VIP players are allowed to carry.
// -
// Default: "3"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_hegrenade_vip "2"

// Maximum number of Smoke Grenades regular players are allowed to carry.
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_smokegrenade "1"

// Maximum number of Smoke Grenades VIP players are allowed to carry.
// -
// Default: "2"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_smokegrenade_vip "2"
Quote:
Originally Posted by TnTSCS View Post
This plugin is already designed how you're asking... if I understand you correctly.
What I was saying was... If im in the buyzone and I'm a VIp with the access to buy 3 flashes I want to stand in buyzone and buy three then leave the buy zone throw them or one and go back into buyzone and have a message saying something along.. "You have already bought all 3 flashes". While the reg player can only buy 2 and gets the message saying you already bought your 2 flash's.
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows

Last edited by wtfaatp; 01-15-2012 at 00:34.
wtfaatp is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-15-2012 , 02:39   Re: [CS:S] Grenade Pack 2
Reply With Quote #13

okay - that's something I'll add to the update I'll have hopefully by tomorrow.
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-21-2012 , 21:09   Re: [CS:S] Grenade Pack 2
Reply With Quote #14

Plugin updated to fix bug that allowed non-VIP players to pickup more than their allowed nades. I'll work on the above enhancement request now.

Version 1.0.1
* Fixed the check to prevent non-vip players from being able to carry more than they're allowed
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-21-2012 , 23:09   Re: [CS:S] Grenade Pack 2
Reply With Quote #15

Plugin updated and now includes the requested purchase limiter - defaulted to off. If you're updating to 1.0.2, you'll need to download the updated translation file too. Also, backup your config file, delete it and let the plugin create a new one for you to edit since I added a new CVar

Version 1.0.2
+ Added CVar to restrict players (VIP and non-VIP) from buying more than they're allowed to buy - by request.
__________________
View my Plugins | Donate
TnTSCS is offline
Lingus
Member
Join Date: Jan 2010
Location: UK
Old 03-09-2012 , 20:14   Re: [CS:S] Grenade Pack 2
Reply With Quote #16

People don't seem to be able to buy more than 2 smoke nades, anyone else getting this issue?
Lingus is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-09-2012 , 23:27   Re: [CS:S] Grenade Pack 2
Reply With Quote #17

what are your plugin settings? And you're using on CS:S only, right
__________________
View my Plugins | Donate
TnTSCS is offline
Lingus
Member
Join Date: Jan 2010
Location: UK
Old 03-17-2012 , 18:51   Re: [CS:S] Grenade Pack 2
Reply With Quote #18

// This file was auto-generated by SourceMod (v1.4.1)
// ConVars for plugin "GrenadePack2.smx"


// Every X rounds the player is reminded of the plugin ['0' = Disable]
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "30.000000"
sm_grenadepack2_announce "0"

// Enable or disable the plugin ['0' = Disable]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_grenadepack2_enabled "1"

// Enforce the limit so that players can't buy their max, use some, then buy more (they can still pick up more if they aren't carrying their max).
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_grenadepack2_enforce "0"

// Maximum number of Flashbang's regular players are allowed to carry.
// -
// Default: "2"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_flashbang "3"

// Maximum number of Flashbang's VIP players are allowed to carry.
// -
// Default: "4"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_flashbang_vip "3"

// Maximum number of HE Grenades regular players are allowed to carry.
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_hegrenade "3"

// Maximum number of HE Grenades VIP players are allowed to carry.
// -
// Default: "3"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_hegrenade_vip "3"

// Maximum number of Smoke Grenades regular players are allowed to carry.
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_smokegrenade "3"

// Maximum number of Smoke Grenades VIP players are allowed to carry.
// -
// Default: "2"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_grenadepack2_smokegrenade_vip "3"

CS:S only XD
Lingus is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-17-2012 , 19:02   Re: [CS:S] Grenade Pack 2
Reply With Quote #19

okay - I think I see what's wrong - I'll go through this code and post an update tonight. It has to do with the sm_grenadepack2_enforce cvar. I'll fix it
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-18-2012 , 01:08   Re: [CS:S] Grenade Pack 2
Reply With Quote #20

actually, in doing some testing, there doesn't appear to be anything wrong with the plugin. I'm able to buy 3 smoke grenades as a regular player, admin (z flag), and VIP (o flag only).

Please check that you have the latest version (1.0.2), and that the CVars are correctly being set when the plugin loads.

After the plugin has been loaded, from console (or rcon), type find sm_grenadepack and you should get an output similar to:
Code:
find sm_grenadepack

"sm_grenadepack2_enforce" = "0" min. 0.000000 max. 1.000000
 - Enforce the limit so that players can't buy their max, use some, then buy more (they can still pick up more if they aren't carrying their max).
"sm_grenadepack2_flashbang_vip" = "3" ( def. "4" ) min. 1.000000 max. 100.000000
 - Maximum number of Flashbang's VIP players are allowed to carry.
"sm_grenadepack2_flashbang" = "3" ( def. "2" ) min. 1.000000 max. 100.000000
 - Maximum number of Flashbang's regular players are allowed to carry.
"sm_grenadepack2_smokegrenade_vip" = "3" ( def. "2" ) min. 1.000000 max. 100.000000
 - Maximum number of Smoke Grenades VIP players are allowed to carry.
"sm_grenadepack2_smokegrenade" = "3" ( def. "1" ) min. 1.000000 max. 100.000000
 - Maximum number of Smoke Grenades regular players are allowed to carry.
"sm_grenadepack2_hegrenade_vip" = "3" min. 1.000000 max. 100.000000
 - Maximum number of HE Grenades VIP players are allowed to carry.
"sm_grenadepack2_hegrenade" = "3" ( def. "1" ) min. 1.000000 max. 100.000000
 - Maximum number of HE Grenades regular players are allowed to carry.
"sm_grenadepack2_announce" = "0" ( def. "3" ) min. 0.000000 max. 30.000000
 - Every X rounds the player is reminded of the plugin ['0' = Disable]
"sm_grenadepack2_enabled" = "1" min. 0.000000 max. 1.000000
 - Enable or disable the plugin ['0' = Disable]
"sm_grenadepack2_version" = "1.0.2"
 notify singleplayer replicated
 - The version of 'Grenade Pack 2'
"sm_grenadepack2_version_build" = "1.4.0"
 - The version of SourceMod that 'Grenade Pack 2' was compiled with.
NOTE - I set mine to be the same as what you posted. Make sure the config filename is "GrenadePack2.plugin.cfg"

Also, it looks like you want regular players and VIP players to be able to buy 3 of each type of nade. You don't need a plugin to accomplish that. Just set the following CVars in your server.cfg:

ammo_hegrenade_max 3
ammo_flashbang_max 3
ammo_smokegrenade_max 3
__________________
View my Plugins | Donate

Last edited by TnTSCS; 03-18-2012 at 01:10.
TnTSCS 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 19:05.


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