This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[CS:S, CS:GO] Restrict specific weapons after specific KDR


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-06-2013 , 12:33   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #21

If you set sm_kdrwl_useexempt to 1, players with the ADMFLAG_CUSTOM6 will not be affected by this KDR Weapon Limit plugin. You can change the flag by overriding the command "no_kdr_restrict" to whatever admin flag you want.
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-07-2013 , 00:48   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #22

Give this a shot... new CVars so delete your old config and let the plugin create a new one... let me know if you have questions about the CVars. Also, I added a new phrase in the translations file.

If it's good, I'll post it to the new plugins.
Attached Files
File Type: txt kdr_weapon_limit.phrases.txt (730 Bytes, 98 views)
File Type: smx kdr_weapon_limit.smx (15.4 KB, 92 views)
File Type: sp Get Plugin or Get Source (kdr_weapon_limit.sp - 89 views - 28.6 KB)
__________________
View my Plugins | Donate
TnTSCS is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 04-07-2013 , 01:36   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #23

TnTSCS
Thank you. Again. I will testing this new version tomorrow morning. Will write here my experiences.

Last edited by pubhero; 04-07-2013 at 01:43.
pubhero is offline
Noitartsiger
Member
Join Date: Jul 2011
Old 04-07-2013 , 12:10   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #24

It seems to work, but still testing.

2 thing I figured out so far:
- an edited cfg by windows editor doesn't work anymore (coz of line break signs I guess)
- on reconnect I could pickup a restricted weapon, and it also wasn't droped on next round, but when reaching next limit

still testing ... but looks really great so far
Thanks again!

Last edited by Noitartsiger; 04-07-2013 at 12:11.
Noitartsiger is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 04-08-2013 , 00:28   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #25

Quote:
Originally Posted by Noitartsiger View Post
...
- an edited cfg by windows editor doesn't work anymore (coz of line break signs I guess)
...
The phrase file? If yes, you must be using the UTF-8 without BOM codepage. Use notepad ++ .
pubhero is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-08-2013 , 00:48   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #26

I'll double check the restriction retention... if you're testing it on CS:GO and you're the only player then the restriction info gets wiped when the server hibernates (I think).
__________________
View my Plugins | Donate
TnTSCS is offline
Noitartsiger
Member
Join Date: Jul 2011
Old 04-08-2013 , 05:46   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #27

Yes, UTF-8 is fine. Thx. (ANSI doesn't work for the cfg)

Regarding chat messages:

-> Can you add a second "Off" message, so that there is one for each stage?
Like:
"Your KDR is below the second limit now. You are now restricted for: X, Y, Z only"
"Your KDR is below all limits now. You are no longer restricted"

-> For the public chat message "RestrictAnnounce",
a) there is a mistake with the {1} {2} {3} variables. Its 1, 1, 2, 3 instead of 1, 2, 3, 4.
b) I would prefer it without the list of all restriced weapons (too much 'unimportant' info for others) as I try to keep the chat as clear as possible. If I delete {4} it doesn't work anymore. For this public message I would also remove the KDR info. Keep it simple for public messages, like:
"{1}'s KDR is too high. They are restricted for some weapons now."

c) then, when he drops below the first limit, also a short public message:
"{1}'s KDR is below all limits again. They are no longer restricted."

Only a suggestion, as I think chat messages should be as short as possible.

Couldn't figure out any more issues, so looking forward the release or the next beta which I will test on productive server then.

Regards,

Last edited by Noitartsiger; 04-08-2013 at 05:49.
Noitartsiger is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 04-08-2013 , 21:35   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #28

Test done. Game CSS.
Plugin works well, but i found a bug. If you use sm_kdrwl_botkills "1" convar. But if you playing against the bots and reached the 2. restrict level, + log out and enter the server again, the plugin counting the bot kills like the human kills and restrict the configured weapon. Maybe it's my fault (cfg error?).

Here is my cfg:

And here are the new HU + EN phrases file
Attached Files
File Type: txt kdr_weapon_limit.phrases.txt (1.2 KB, 93 views)

Last edited by pubhero; 04-08-2013 at 22:54.
pubhero is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-09-2013 , 00:21   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #29

pubhero - In the new version posted below, I tested it and it no longer does what you described. Noitartsiger, all of your requests should be in this release.

This should be the final "beta" and if all is good, I'll post in new plugins section.

New CVar and new translation phrases in this version. Let the plugin create a new config for you so you know what they all are.

If this version is good, I'll need updated translation files in those languages so I can post with the plugin and include in the Updater support I'll add when I post as a new plugin.
Attached Files
File Type: sp Get Plugin or Get Source (kdr_weapon_limit.sp - 107 views - 40.8 KB)
File Type: smx kdr_weapon_limit.smx (18.3 KB, 91 views)
File Type: txt kdr_weapon_limit.phrases.txt (1.1 KB, 101 views)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-09-2013 at 00:21.
TnTSCS is offline
Noitartsiger
Member
Join Date: Jul 2011
Old 04-09-2013 , 06:10   Re: [CS:S, CS:GO] Restrict specific weapons after specific KDR
Reply With Quote #30

Ok, thx for adding

But on a first test with bots I got a malfunction:
- CS:S linux Ubuntu
- SourceMod (v1.5.0-dev+3764)
- sm_kdrwl_botkills "0"
- sm_kdrwl_drop "2"
- sm_kdrwl_minkills "5"
- sm_kdrwl_ratio1 "2.0"
- sm_kdrwl_ratio2 "3.0"

Quote:
[SM] Your KDR (1.60) is above the allowed limit (2.00) and you can no longer buy/use these weapons: awp sg550 g3sg1 m4a1 ak47
[SM] Your KDR is 1.60, so you're not allowed to buy that weapon - [m4a1]
It says 1.6 is above 2.00. 1.60 was right (8:5).
Then I made another kill next round
Quote:
[SM] Your KDR 1.79 is below all limits. You are no longer restricted.
Announcing from CheckKDR

It also happends on other situation like 15:8
Quote:
[SM] Your KDR (1.87) is above the allowed limit (2.00) and you can no longer buy/use these weapons: awp sg550 g3sg1 m4a1 ak47
_______-

And is it possible to suppress the chat message: "Announcing from CheckKDR" ?

_______

Thanks again.
But due to the basic malfunction above I cannot test it on productive server. Or do you think its coz of SM 1.5.0 dev snapshot?

_______

Attached you'll find a German Translation.

Regardas,
Attached Files
File Type: txt DE_kdr_weapon_limit.phrases.txt (1.3 KB, 96 views)
Noitartsiger 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 03:40.


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