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 ;)