AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CD Mediator 3.0 Originally by: Rich AMXX 0.16 AMXX 0.20 TP4 (https://forums.alliedmods.net/showthread.php?t=5633)

3xF - | M4573R 09-07-2004 13:31

CD Mediator 3.0 Originally by: Rich AMXX 0.16 AMXX 0.20 TP4
 
3 Attachment(s)
Alright finally with the help of twistedeuphoria and meatwad got this plugin to work with AMXX 0.16 and AMXX 0.20 TP4. Compiled with no errors. Only tested with AMXX 0.16.

Code:
/* AMXMODX script. * * * Parts (c) Copyright 2000-2002, Made by Rich - This file is provided as is (no warranties). * Major changes to support steam id's, reading and writing of files, and removing dead code * by Hobo and Freecoder * * CHEATING DEATH MEDIATOR EXTENDED V3.0 * * This is a revamping of CD Mediator Extended 2.0. Ported to work with AMXX 0.16 It allows you to set a ratio of deaths to frags and will inform players who exceed that ratio that they cannot play on your server until they download and install Cheating Death. ----------------  3 cvars are registered: 1:  amx_cd_saved = the number of Steam ID's the plugin remembers. 2:  amx_cd_ratio = the ratio of kills to deaths before plugin kicks a player 3:  amx_cd_limit = the number of kills before this plugin starts checking a player 3 console commands have been registered: 1:  amx_cd_add <player name>  = manually add a person to the list 2:  amx_cd_clear = clears the list of remembered people 3:  amx_cd_list = shows you the list of remembered steam id's IMPORTANT:  When the plugin decides to kick somebody, it will display an MOTD explaining what is going on.  This MOTD MUST be called cd.txt and be placed in the amxx/configs/cdmed directory.   A copy of an appropriate MOTD is in this package. You may, of course, modify it as you like. This plugin assumes that you have CD Server Plugin installed and running. If you don't, you can get it from <a href="http://www.unitedadmins.com/cdeath.php" target="_blank" rel="nofollow noopener">www.unitedadmins.com/cdeath.php</a> Contributors to this plugin are: Rich:  Original author Freecoder and Hobo:  Extensions and changes to work with Steam ID's and to save the list properly. twistedeuphoria and M4573R:  Porting and changing filepaths to work with AMXX 0.16 meatwad:  Fixed spelling/grammer, Compiled for AMXX 0.20 TP4, Added more helpful tips to cd.txt motd. */

To get the motd download the zip folder otherwise just get the plugin.

*UPDATE* 9/7/2004
Thanks to meatwad:

Got it to compile with AMXX 0.20 TP4
Fixed grammer in readme file and cd.txt file
Added a few more helpful hints in the cd.txt motd file

To Do:

Make it not hardcoded so it can be approved ;)

B!ind B!aze 09-07-2004 14:19

wow I used this in AMX 0.9.8 and have been waiting for somebody to port this over thanks a lot works great by the way.

Meatwad 09-07-2004 17:52

Thank god someone found this. I was looking all over for the source to this plugin, but never found it. I had no idea where I got it from.

EDIT: Do you mind if I spruce up the cd.txt, and compile this for AMXx v.20?

EDIT 2: I am done fixing up a bunch of the stuff in the .zip file. I will include the fresh new .zip, with fixed stuff, and the AMXx v.20 compile.

EDIT 3: Removed .ZIP at owners request.

Meatwad 09-07-2004 18:18

You screwed up the title. This can be used for all mods, not just CS.

tactical defense unit 09-08-2004 13:28

nice job m4573r I also used this in amx 0.9.8, the only thing wrong with the plugin is you have the filepaths hardcoded. Other than that it is working for AMXX 0.16

Morpheus 09-09-2004 19:17

Ehh whats new in this one?

I have this running in ages on our servers.. :-) Mine is portet for AMX X 0.16, just recompiled the 2.0 version and changed the paths..

Working great..

BUT nice it has been portet for AMXX .20 :-)

Cheers

Morpheus

Meatwad 09-09-2004 20:23

He made it work so that it can use cd.txt in v.16.

Morpheus 09-10-2004 05:23

Well that part is running in our servers... allready ???? And its working fine.... ?

Well ok.. I will try this one out :-)

Cheers

Morpheus

Morpheus 09-10-2004 19:45

Hi all!

I cant see that this plugin is working correctly !?

I saw a player who had to high ratio and ect... he got kicked, and entered the server again!

My mediator.ini is located in amxx/configs/cdmed/mediator.ini..

Why can the player reconnect without CD?

Cheers

Morpheus

Meatwad 09-10-2004 23:35

Quote:

Originally Posted by Morpheus
Hi all!

I cant see that this plugin is working correctly !?

I saw a player who had to high ratio and ect... he got kicked, and entered the server again!

My mediator.ini is located in amxx/configs/cdmed/mediator.ini..

Why can the player reconnect without CD?

Cheers

Morpheus

Did you set the ratio of when to kick?

3xF - | M4573R 09-11-2004 01:04

Quote:

Originally Posted by Morpheus
Hi all!

I cant see that this plugin is working correctly !?

I saw a player who had to high ratio and ect... he got kicked, and entered the server again!

My mediator.ini is located in amxx/configs/cdmed/mediator.ini..

Why can the player reconnect without CD?

Cheers

Morpheus

They will always be able to join cd or not but I beleive it checks every 120 sec so if they dont have cd it will display the motd and kick them right after. If you want it lowered try finding the line, in the sma, that says:

if (get_user_time(a) > 120)

Be sure to recompile afterwords.

I would keep it at 120 cause I tried below that and it caused a lot of lag spikes. But if you want to change it keep it min of 60

3xF - | M4573R 09-11-2004 01:09

Quote:

Originally Posted by Morpheus
Ehh whats new in this one?

I have this running in ages on our servers.. :-) Mine is portet for AMX X 0.16, just recompiled the 2.0 version and changed the paths..

Working great..

BUT nice it has been portet for AMXX .20 :-)

Cheers

Morpheus

This is what I did:

I had to change the file paths, change a few values, Made client say messages say AMXX instead of AMX. This is basically it took about 10 min to do that and then I had to fix a few compile errors which took me a few hours.

Morpheus 09-11-2004 10:05

Ok plz tell me something...

The mediator.ini stores the SteamIDs.. right? :-)...

The plugins job is to kick the players if their scores gets to high than deaths and ect. After they have been kicked, they cant join the server right? ONLY if they have CD?

A player on our server last night got kicked, so its working fine.. But he could reconnect without CD... ?

Here is my cvars:

amx_cd_saved 1000
amx_cd_ratio 2
amx_cd_limit 10

Could someone plz explain what happends here then? It starts checks a player at 10 kills right? And what next?

Cheers

Morpheus

3xF - | M4573R 09-11-2004 11:34

Quote:

Originally Posted by Morpheus
Ok plz tell me something...

The mediator.ini stores the SteamIDs.. right? :-)...

The plugins job is to kick the players if their scores gets to high than deaths and ect. After they have been kicked, they cant join the server right? ONLY if they have CD?

A player on our server last night got kicked, so its working fine.. But he could reconnect without CD... ?

Here is my cvars:

amx_cd_saved 1000
amx_cd_ratio 2
amx_cd_limit 10

Could someone plz explain what happends here then? It starts checks a player at 10 kills right? And what next?

Cheers

Morpheus

I just explained this look at the second post above yours

Morpheus 09-11-2004 11:53

No u dont understand m8!

As I know of the plugin "ban" the player if he gets to high KD? Right..

It stored the steamID so he CANT connect, only if he joins with CD...

Correct?

The thing ur talking about is only a time for the plugin to check players if they have CD or not.

The plugin should "ban" and then let them in if they only have CD..

Morpheus

3xF - | M4573R 09-11-2004 18:52

Quote:

Originally Posted by Morpheus
No u dont understand m8!

As I know of the plugin "ban" the player if he gets to high KD? Right..

It stored the steamID so he CANT connect, only if he joins with CD...

Correct?

The thing ur talking about is only a time for the plugin to check players if they have CD or not.

The plugin should "ban" and then let them in if they only have CD..

Morpheus

I get what ur saying and no this plugin only kicks them. It checks every 120 sec and if the player has no cd and is in the mediator file then it displays the message and kicks them soon after so yeah change the value of that line I told you about and this will change the time in sec between the plugin checking for no cd

J. Cricket 09-15-2004 13:27

Hi, I'm having a hard time getting this to work. From as far as I can tell, it's running correctly - it says it's running if I do a amx_plugins call, and the cvars show the correct values. However, it never kicks anyone. After I got it running with a max ratio of 2 and starting at 15 kills, I sat on the server and with a friend of mine racked up 30 kills with 2 deaths and nothing happened. Also, the amx_cd_add command does not work most of the time, either. Please help.

3xF - | M4573R 09-15-2004 16:35

First of all what version of amxx are you using?

Second do you have the cdmed folder in the addons/amxx/configs/ folder. If you dont you can get this folder along wit motd by dl'ing the zip folderon my main post. It is important to have this folder in the write spot otherwise the .ini file that stored steamid's will not be created hence the reason why it won't work

Meatwad 09-15-2004 17:21

Quote:

Originally Posted by Morpheus
No u dont understand m8!

As I know of the plugin "ban" the player if he gets to high KD? Right..

It stored the steamID so he CANT connect, only if he joins with CD...

Correct?

The thing ur talking about is only a time for the plugin to check players if they have CD or not.

The plugin should "ban" and then let them in if they only have CD..

Morpheus

Listen. Once the user has been kicked for over the score. He/She is allowed to rejoin. BUT! If he gets a [NO C-D] on his name again, he/she kicks him. Get it?

J. Cricket 09-15-2004 19:22

To 3xF:

I'm using amxx 0.16... figured I'd wait until all the bugs are worked out before going to 0.20. :wink:

Anyway, what you mentioned about the folder sounds like it could be it. I'm at work right now (working hard as you can see), but I'll get that fixed once I get home and let ya know if that worked or not.

Thanks!

J. Cricket 09-16-2004 13:36

OK, well, I've made sure the folder is in the right place, and I can now use the amx_cd_add command, but it still fails to kick anyone. Even when I manually added myself, I still got on the server and played for 10 minutes and nothing happened. Any ideas?

3xF - | M4573R 09-16-2004 21:22

hmm... I have used this on my server using 0.16 and it worked like a charm. Try shutting server down then going to addons/amxx/configs/cdmed and deleting mediator.ini and then restarting server.

J. Cricket 09-17-2004 13:06

3 Attachment(s)
Hmmm, still no joy. Once I restarted, I was able to add myself manually and the mediator.ini file was correctly created with my Steam ID in it, but it still fails to kick. I'm attaching files that hopefully will help with finding the problem. My server runs: amxx 0.16, Cheating Death, phpUA, Fun, Engine, and shrikebot. Thanks for the help!

J. Cricket 09-17-2004 13:08

3 Attachment(s)
Here's the last couple files.

3xF - | M4573R 09-17-2004 19:17

Try enabling all modules in modules.ini except mysql

J. Cricket 09-18-2004 21:24

OK, all modules except mysql are now enabled, but I then hopped on the server (I've put myself in the required list) and sat on the server for about 5 minutes without anything happening. No one else was on the server at the time (don't know if that makes a difference or not). Any other ideas? :(

3xF - | M4573R 09-19-2004 05:25

From what I can see everything is set up right. Do you at least see the motd? If you don't then you still don't have the files right.

J. Cricket 09-19-2004 19:27

Nope, I've never seen the MOTD. I was assuming that's because it's never tried to kick me, either. I have the cd.txt file in the directory:
addons/amxx/configs/cdmed/

If that's the right spot my guess is that for whatever reason the plugin is not executing the part of the program to make the kick happen. Otherwise your guess is as good as mine. :roll:

J. Cricket 09-21-2004 18:24

No ideas anyone?

3xF - | M4573R 09-28-2004 04:59

Srry I was a little busy wit school and my b-day but I just tested it out and it is working fine for me so I dunno whats up with yours.

AllMassive 10-03-2004 11:11

Plugin works for me with CS1.6.

Could you perhaps implement something like:
Steam-ID has already been kicked 2 times cause of [No C-D]-Ratio, that after the third try the steamid is banned for about 24 hours . . .

Would that be possible ?

3xF - | M4573R 10-06-2004 23:13

GG I will try this out as it has been on my todo list

antileet 10-07-2004 01:41

Great plugin! No errors for me!

3xF - | M4573R 10-17-2004 10:24

Thanks and mainly thanks to Rich the creator

ToT | V!PER 01-03-2005 08:50

Will this one be maintained for AMXX 1.0 and multilanguage support?

Kamikatze 01-05-2005 19:53

Does this plugin check the version of cd client? I mean only the newest cd client should be an valid client...

Kamikatze 01-05-2005 19:57

What is the recommended setting for "cdrequired" if i use this plugin?

ToT | V!PER 01-06-2005 04:20

Quote:

Originally Posted by Kamikatze
What is the recommended setting for "cdrequired" if i use this plugin?

As it is working as a mediator cdrequired should be "0" for running in optional mode.

Kamikatze 01-06-2005 09:28

hmm Plugin seem not to work under Amxx 1.0:

Code:

L 01/06/2005 - 15:25:34: [AMXX] Native error in "write_file" on line 184 (plugin "cdmed.amxx").
L 01/06/2005 - 15:25:34: [AMXX] Debug Trace =>
L 01/06/2005 - 15:25:34: [AMXX]      [0] Line 184, File "cdmed.amxx"
L 01/06/2005 - 15:25:34: [AMXX]      [1] Line 119, File "cdmed.amxx"

Any Ideas?

There is no sma file for 1.0 :cry:

Martel 01-07-2005 09:08

Quote:

Any Ideas?
Come one, same here. Is someone supporting this plugin?

Quickfix - change the file paths to:

new filepath[66] = "/addons/amxmodx/configs/cdmed/mediator.ini",
holdfilepath[66] = "/addons/amxmodx/configs/cdmed/holdfile.ini"

Maintainer should use get_configsdir, though.


All times are GMT -4. The time now is 10:10.

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