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 08-22-2012 , 17:48   Re: [CS:S] Grenade Pack 2
Reply With Quote #21

as of today's update (08/22/12) this plugin is causing server crashes

I'm not sure if it's my plugin or that a SM update is needed... I'll keep you apprised
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-23-2012 , 10:19   Re: [CS:S] Grenade Pack 2
Reply With Quote #22

All you need is to update SDKHooks, SM and MM and you're good to go.
__________________
View my Plugins | Donate
TnTSCS is offline
ziniaragon
Member
Join Date: Mar 2010
Old 08-26-2012 , 05:24   Re: [CS:S] Grenade Pack 2
Reply With Quote #23

Don't work on CS:GO?

Last edited by ziniaragon; 08-26-2012 at 08:45.
ziniaragon is offline
relicek
Member
Join Date: Mar 2012
Old 09-13-2012 , 10:38   Re: [CS:S] Grenade Pack 2
Reply With Quote #24

hiya, when i setup normal players that have only 1 HE grenade, they still can buy VIP count. Thanks

EDIT: i test it more and it seems it only happend if i set normal players 1 HE and VIP 2 HE, then normal players still can buy 2 HE, but when i change VIP to 3 HE normal it works as it should, normal player then can buy only 1 HE.

Thanks

Last edited by relicek; 09-13-2012 at 10:50.
relicek is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-13-2012 , 12:58   Re: [CS:S] Grenade Pack 2
Reply With Quote #25

Thanks for the report, I'll look into the logic again.
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-13-2012 , 14:10   Re: [CS:S] Grenade Pack 2
Reply With Quote #26

Quote:
Originally Posted by ziniaragon View Post
Don't work on CS:GO?
Try https://forums.alliedmods.net/showthread.php?t=195707

Quote:
Originally Posted by relicek View Post
hiya, when i setup normal players that have only 1 HE grenade, they still can buy VIP count. Thanks

EDIT: i test it more and it seems it only happend if i set normal players 1 HE and VIP 2 HE, then normal players still can buy 2 HE, but when i change VIP to 3 HE normal it works as it should, normal player then can buy only 1 HE.

Thanks
Just to confirm, you're talking about the CS:S version, right? Because I was confused and was just reviewing the CS:GO version linked above - LoL
__________________
View my Plugins | Donate
TnTSCS is offline
relicek
Member
Join Date: Mar 2012
Old 09-13-2012 , 18:39   Re: [CS:S] Grenade Pack 2
Reply With Quote #27

yes, css version, i wanted to set all same as normal user but vip will get one HEgrenade more, but then it can buy normal players too. when i set all that VIP got 2x more count of all grenades its work good, but when i change count to some other combination it massed up. I wanted something like this, flash normal/vip 2/2, HEgrenade normal/vip 1/2 and smoke normal/vip 1/1. But with this option regular player can buy 2 HE even its set to 1.

Edit: so i think i know what is problem. Not with combinations or something like that, but with changelevel and restarting server.

When i set all configurations for those grenades and simple changelevel on console it works as it should but when i quit and start server, then vip grenades works for regular players to next changemap or changelevel... so there is problem that this plugin works good only on changelevel not on quit and starting server up.

Thanks

Last edited by relicek; 09-13-2012 at 19:18.
relicek is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-14-2012 , 16:35   Re: [CS:S] Grenade Pack 2
Reply With Quote #28

Plugin Updated:

Version 1.0.4
* Changed code for better checking if player has certain type of nade
- Got rid of unneeded code as suggested by Asherkin

-------------------------

This version should address the bug relicek reported - I tested it and could not buy more than 1 nade if I wasn't a VIP player.

Here's my config file:
plugin.GrenadePack2.cfg
__________________
View my Plugins | Donate
TnTSCS is offline
relicek
Member
Join Date: Mar 2012
Old 09-14-2012 , 19:16   Re: [CS:S] Grenade Pack 2
Reply With Quote #29

hiya, i download new version and when i change configs it writes this:

L 09/15/2012 - 01:14:19: [SM] Native "SetConVarInt" reported: Invalid convar handle 0 (error 4)
L 09/15/2012 - 01:14:19: [SM] Displaying call stack trace for plugin "GrenadePack2.smx":
L 09/15/2012 - 01:14:19: [SM] [0] Line 752, C:\Sourcemod\TnTSCS\scripting\GrenadePack2.sp ::FLASH_VIP_Changed()
L 09/15/2012 - 01:14:19: [SM] Native "SetConVarInt" reported: Invalid convar handle 0 (error 4)
L 09/15/2012 - 01:14:19: [SM] Displaying call stack trace for plugin "GrenadePack2.smx":
L 09/15/2012 - 01:14:19: [SM] [0] Line 640, C:\Sourcemod\TnTSCS\scripting\GrenadePack2.sp ::HE_VIP_Changed()

i tryed your config, still same errors.

EDIT: it seems it work as i should but on start server those errors show. my setup is: HE 1/2 SMOKE 1/2 FLASH 1/2.

Last edited by relicek; 09-14-2012 at 19:40.
relicek is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-14-2012 , 20:21   Re: [CS:S] Grenade Pack 2
Reply With Quote #30

I'll check this out tonight - thank you for the report.
__________________
View my Plugins | Donate
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 18:25.


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