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

Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.60


Post New Thread Reply   
 
Thread Tools Display Modes
zzwk9971
New Member
Join Date: Apr 2007
Old 08-15-2007 , 15:25   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #91

i just download the plugin and added it to the plugin folder, but i still have to write it in the plugin.ini and what do i write there, ive tried sniperlimit.amxx all i know is when someone tries to buy a awp, it says the limit has been reach or something.this is what i have in my amx.cfg file

max_awps 2
max_autos 0
winspread_awp 0
winspread_auto 0
autolimit 0
awplimit 1
checkrebuy 1

help please
zzwk9971 is offline
zzwk9971
New Member
Join Date: Apr 2007
Old 08-15-2007 , 15:48   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #92

its does work for the losing team, just not the other, so i guess sniperlimit.amxx works fine in the plugin.ini How do i get it to where both teams with have the sniper.

max_awps 2
max_autos 0
winspread_awp 0
winspread_auto 0
autolimit 0
awplimit 1
checkrebuy 1
zzwk9971 is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 08-16-2007 , 15:07   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #93

Quote:
Originally Posted by zzwk9971 View Post
i just download the plugin and added it to the plugin folder, but i still have to write it in the plugin.ini and what do i write there, ive tried sniperlimit.amxx all i know is when someone tries to buy a awp, it says the limit has been reach or something.this is what i have in my amx.cfg file

max_awps 2
max_autos 0
winspread_awp 0
winspread_auto 0
autolimit 0
awplimit 1
checkrebuy 1

help please
It's not the file amx.cfg. That one was the main config file for AMX. Thi forum is dedicated AMX X - so the main config file for it is called amxx.cfg. This file You have in Your addons\amxmodx\configs folder. If those lines are there - the plugin works with the settings You want.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
Schmackbolzen
Junior Member
Join Date: Aug 2007
Location: Germany
Old 08-18-2007 , 07:23   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #94

Hi!
I noticed that it's still possible to buy more than the restricted amount of weapons if you enter the cstrike command for buying the specific weapon into the console (if you are in buyzone...). I first thought of fixing it myself but since you seem to be such active maybe its better you do it yourself (I think you have a better overview than me). I think there are two ways to check this: Either you register new commands with the same name as the buy commands of cs and either block it or let the command execute on the clients or you check periodically if someone of the same team has got a restricted weapon.
Thats just the way I would have implemented it, but im not really into the plugin scripting and half-life engine, maybe you know a better solution.
Thanks for any help!
Schmackbolzen is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 08-19-2007 , 08:15   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #95

The problem is - I did it on my test dedicated server and I wasn't able to buy any awps if there was already one bought by someone from my team (max_awps 1). I got this desired message:
"Too many people on your team have AWP's".
I have no clue why it's happening for You, You are still able to buy more awps than desired. The only thing I can imagine is wrong counting the number the awps the people have...
This version in the attachment will write in Your logs what is happening when someone is about to buy or is buying an awp, so please use it to get more info. Then post me something useful from Your logs (who was trying to buy it, who couldn't whou bought it - this version writes that info into logs). It also says to that client wanting to buy an awp (as a chat) that info.
Attached Files
File Type: sma Get Plugin or Get Source (sniperlimit.sma - 635 views - 18.8 KB)
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
Schmackbolzen
Junior Member
Join Date: Aug 2007
Location: Germany
Old 08-19-2007 , 12:22   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #96

Alright, I put this version on the server, tried it with some mates and we couldn't recreate the situation either, so I will observate the logs and check wether the problem occurs again or not. Thanks for the help so far!
Schmackbolzen is offline
Schmackbolzen
Junior Member
Join Date: Aug 2007
Location: Germany
Old 08-23-2007 , 06:42   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #97

I had a quick look at some logfiles and actually found something:

Quote:
L 08/20/2007 - 13:02:13: "|)ia.|V|.on(|<334><STEAM_0:1:11162190><C T>" joined team "TERRORIST"
L 08/20/2007 - 13:02:13: "<><><>" triggered "amx_chat" (text "[PTB] Transfered |)ia.|V|.on(| to TERRORIST")
L 08/20/2007 - 13:02:13: "ZeR0<315><STEAM_0:0:9234691><TERRORIST>" triggered "Spawned_With_The_Bomb"
L 08/20/2007 - 13:02:15: The player Los? is about to buy an awp. There was 0 awps in his team 1 before he bought it.
L 08/20/2007 - 13:02:15: The player Los? bought or picked-up an awp. There is 1 awps in his team 1.
L 08/20/2007 - 13:02:17: "katja<339><STEAM_0:0:14142385><CT>" say_team "hui"
L 08/20/2007 - 13:02:18: "exxn<313><STEAM_0:1:5638796><CT>" say "gefangen (:"
L 08/20/2007 - 13:02:19: World triggered "Round_Start"
L 08/20/2007 - 13:02:21: "exxn<313><STEAM_0:1:5638796><CT>" say "zero"
L 08/20/2007 - 13:02:23: "ZeR0<315><STEAM_0:0:9234691><TERRORIST>" say "^^"
L 08/20/2007 - 13:02:25: "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" attacked "exxn<313><STEAM_0:1:5638796><CT>" with "awp" (damage "51") (damage_armor "1") (health "49") (armor "99")
L 08/20/2007 - 13:02:27: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "ZeR0<315><STEAM_0:0:9234691><TERRORIST>" with "m4a1" (damage "84") (damage_armor "18") (health "16") (armor "82")
L 08/20/2007 - 13:02:28: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "ZeR0<315><STEAM_0:0:9234691><TERRORIST>" with "m4a1" (damage "21") (damage_armor "5") (health "-5") (armor "77")
L 08/20/2007 - 13:02:28: "tokashima @music<345><STEAM_0:0:2887521><CT>" killed "ZeR0<315><STEAM_0:0:9234691><TERRORIST>" with "m4a1"
L 08/20/2007 - 13:02:28: "ZeR0<315><STEAM_0:0:9234691><TERRORIST>" triggered "Dropped_The_Bomb"
L 08/20/2007 - 13:02:28: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "cribs<325><STEAM_0:0:2900073><TERRORIST> " with "m4a1" (damage "21") (damage_armor "5") (health "79") (armor "95")
L 08/20/2007 - 13:02:28: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "cribs<325><STEAM_0:0:2900073><TERRORIST> " with "m4a1" (damage "21") (damage_armor "5") (health "58") (armor "90")
L 08/20/2007 - 13:02:28: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "cribs<325><STEAM_0:0:2900073><TERRORIST> " with "m4a1" (damage "22") (damage_armor "0") (health "36") (armor "90")
L 08/20/2007 - 13:02:29: "cribs<325><STEAM_0:0:2900073><TERRORIST> " attacked "tokashima @music<345><STEAM_0:0:2887521><CT>" with "ak47" (damage "25") (damage_armor "0") (health "75") (armor "91")
L 08/20/2007 - 13:02:29: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "cribs<325><STEAM_0:0:2900073><TERRORIST> " with "m4a1" (damage "21") (damage_armor "5") (health "15") (armor "85")
L 08/20/2007 - 13:02:29: "cribs<325><STEAM_0:0:2900073><TERRORIST> " attacked "tokashima @music<345><STEAM_0:0:2887521><CT>" with "ak47" (damage "25") (damage_armor "0") (health "50") (armor "91")
L 08/20/2007 - 13:02:29: "cribs<325><STEAM_0:0:2900073><TERRORIST> " attacked "tokashima @music<345><STEAM_0:0:2887521><CT>" with "ak47" (damage "32") (damage_armor "5") (health "18") (armor "86")
L 08/20/2007 - 13:02:29: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "cribs<325><STEAM_0:0:2900073><TERRORIST> " with "m4a1" (damage "22") (damage_armor "0") (health "-7") (armor "85")
L 08/20/2007 - 13:02:29: "tokashima @music<345><STEAM_0:0:2887521><CT>" killed "cribs<325><STEAM_0:0:2900073><TERRORIST> " with "m4a1"
L 08/20/2007 - 13:024: "cribs<325><STEAM_0:0:2900073><TERRORIST> " disconnected
L 08/20/2007 - 13:024: "tokashima @music<345><STEAM_0:0:2887521><CT>" attacked "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" with "m4a1" (damage "25") (damage_armor "6") (health "75") (armor "94")
L 08/20/2007 - 13:025: "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" attacked "tokashima @music<345><STEAM_0:0:2887521><CT>" with "deagle" (damage "24") (damage_armor "5") (health "-6") (armor "81")
L 08/20/2007 - 13:025: "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" killed "tokashima @music<345><STEAM_0:0:2887521><CT>" with "deagle"
L 08/20/2007 - 13:02:44: "-=/F4F/=- StyxX #|NF*|<344><STEAM_0:1:13588662><CT>" attacked "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" with "m4a1" (damage "21") (damage_armor "5") (health "54") (armor "89")
L 08/20/2007 - 13:02:44: "-=/F4F/=- StyxX #|NF*|<344><STEAM_0:1:13588662><CT>" attacked "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" with "m4a1" (damage "23") (damage_armor "0") (health "31") (armor "89")
L 08/20/2007 - 13:02:44: "-=/F4F/=- StyxX #|NF*|<344><STEAM_0:1:13588662><CT>" attacked "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" with "m4a1" (damage "23") (damage_armor "0") (health "8") (armor "89")
L 08/20/2007 - 13:02:44: "-=/F4F/=- StyxX #|NF*|<344><STEAM_0:1:13588662><CT>" attacked "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" with "m4a1" (damage "27") (damage_armor "6") (health "-19") (armor "83")
L 08/20/2007 - 13:02:44: "-=/F4F/=- StyxX #|NF*|<344><STEAM_0:1:13588662><CT>" killed "|)ia.|V|.on(|<334><STEAM_0:1:11162190><TERRO RIST>" with "m4a1"
L 08/20/2007 - 13:02:49: "Los?<319><STEAM_0:0:6423020><TERRORIST>" attacked "-=/F4F/=- StyxX #|NF*|<344><STEAM_0:1:13588662><CT>" with "awp" (damage "436") (damage_armor "6") (health "-336") (armor "94")
L 08/20/2007 - 13:02:49: "Los?<319><STEAM_0:0:6423020><TERRORIST>" killed "-=/F4F/=- StyxX #|NF*|<344><STEAM_0:1:13588662><CT>" with "awp"
As you can see, PTB switched the player alive after round end (i did not copy the line stating round end, but it's right before the first quoted above) and there were 2 awps in the team. Now your plugin doesn't seem to notice this and that might explain the situation I had. Maybe one of my teammate was switched and one bought an awp. Now at first as I tested buying by bind I got the message that I'm not allowed to. At the time I tried buying by console the teammate of which you counted the awp might have been killed or dropped the awp and that's why I could buy one and we had 2 awps in the team, not 3. I remember only seeing one teammate, so what i just tried to reconstruct could really have happened. I guess we will know as soon as you fixed that issue, so for now I say thanks for looking into it ;)

Last edited by Schmackbolzen; 08-23-2007 at 06:46. Reason: changed a little unclear phrase
Schmackbolzen is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 08-23-2007 , 15:10   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #98

OK. I got it... I cannot predict everything other amxx plugins may do to break the work this plugin...
I'll try to think about the fix during this weekend. I don't think it's the bug in the code. The above situation happens not so often so You cannot say the plugin is wrong working.
What if You start to run another plugin which will give guns (including awps) to any player? Forcing them to drop in the case if there is too many in one team would't be afair, too, because the people may stay without guns at all in that case...
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
Schmackbolzen
Junior Member
Join Date: Aug 2007
Location: Germany
Old 08-24-2007 , 13:55   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #99

Well I agree that you can't adapt this plugin to run with all plugins out there smoothly, but I think that ptb is used pretty often, so at least it would be nice if you just could also update the counters if someone gets switched alive, depending on ptbs configuration the results could be pretty frustrating for the players. In case it really is too hard to fix (to many bad consequences, or not compatible with the way the plugin was written, etc.) I won't be disappointed, despite that small glitch the plugin seems work great so far!
Schmackbolzen is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 08-25-2007 , 01:58   Re: Limit AWP/G3SG1/SG550 with Team Limit and Win limit (CS 1.6) v1.4
Reply With Quote #100

I need to know the exact moment the PTB plugin switches the players. If it happens just at the round end, my plugin should work correctly since at the new round start the awps are counted again. If it happens after round start - that above may not work.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo 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 02:59.


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