AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   DoD !forgivetk - does NOT require dodxmod or dodx.inc (https://forums.alliedmods.net/showthread.php?t=4809)

WhoCares? 08-11-2004 03:24

DoD !forgivetk - does NOT require dodxmod or dodx.inc
 
1 Attachment(s)
Day of Defeat !forgivetk plugin ftk_v104.sma

Requires: AmxModX v0.16 or newer, modules: Engine & Fun.

This does NOT require the dodx.inc or anything from dodxmod to work.

The concept for this is based on the "old" tk plugin by Bud-Froggy which
used logd_kill for team kill detection.

There are NO menus whatsoever and this completely relies on manual
user interaction.

You must set the limits before compiling.
0 - OFF, 1 - ON
VAR_TKLIMIT # - sets the tk limit. Default: 4
VAR_BANTIME # - sets the bantime. Default: 10 minutes.
VAR_TKADMIN # - sets admin immunity so admins aren't punished. Default: 1
var_debug # - sets debug messages off/on. Default: 0

Features:
Typing 'ftk_help' in console will show a list of commands.

User Commands
say /tks - shows your current number of tk's (only shown to user)
say !forgivetk - forgive your killer

Admin Console Commands
amx_ftk <new|old> - force forgive most/least recent tk'er
amx_ftkv - shows version and build info.

Changelog info:
-----------------------------------------------------------------------
10 Aug 2004 - V1.00 - Initial Release, see the ftk_readme.txt file.

11 Aug 2004 - v1.01 - Fixed a PLUGIN_HANDLED issue that was causing
Death Messages not to be reported.

21 Aug 2004 - v1.02 - Fixed server crashes at map change.
Removed vault.ini interaction.
Limits for players set at compile time.
22 Aug 2004 - v1.03 - Fixed problem with TK'er not being kicked
29 Aug 2004 - v1.04 - Fixed problem with admin access.

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

Future Plans:
-----------------------------------------------------------------------
I hope to add in-game variable setting and persistent variables across
map changes in the future. i.e. Turn admin immunity on/off on the fly,
change tk limits and bantime on the fly, etc. Also would like to put
the vault.ini capability back in at some point.
-----------------------------------------------------------------------

WhoCares? 08-11-2004 20:26

Death Message problem
 
As much as I tested, I overlooked the death messages getting squashed. I apologize for that. I had PLUGIN_HANDLED in the tkCheck routine, which was not letting the death messages get reported to the players.

I changed the routine to use PLUGIN_CONTINUE so death messages are getting reported.

I also added a changelog file and updated the version information as well as uploaded new rar and zip files.

Sorry for the inconvenience.

QwertyAccess 08-11-2004 21:38

you dont need to have a linux specific version compiled.
you should just get rid of the rar and zip and just leave the source.
Also i think a menu miight be nice though 8)

WhoCares? 08-11-2004 22:09

I was specifically asked to code a non-menu version. :)
Besides, there's no reason to create "another" menuized TK plugin as there are plenty already.
As for the linux/windows differing versions, I was unaware that it was possible to share compiled plugins between two operating systems.
I know in the past there were problems between linux and windows plugins for AMX and Adminmod, i.e. a plugin compiled on windows didn't work with linux and vice-versa.
Another reason why I added pre-compiled versions is because some people do not know how to compile plugins and they need it pre-compiled.
If it's a problem, I will delete everything but the source and readme/changelog.

mahnsawce 08-11-2004 23:18

A plugin compiled on windows will work on linux, and vice-versa for both AMX Mod X and normal AMX Mod (the only difference really is with memory offsets for player's private data, but most modules work around this automatically, so it's not an issue). However, this is not true for AdminMod, to my knowledge.

Also if you just upload a .sma file, there will be a "Get Plugin" selection below the "Download" section. When a user clicks "Get Plugin", the plugin will be compiled automagically with the web compiler, and sent to the user.

WhoCares? 08-12-2004 03:11

Roger that, Ill clean it up. On a secondary note, I just got a report from someone running a windows server that when theyre running my plugin their server crashes at mapchanges. I find that odd...

Especially since it runs fine through the entire map without a hitch.

Anyone have any ideas?

speedy 08-13-2004 13:13

Quote:

Originally Posted by WhoCares?
Roger that, Ill clean it up. On a secondary note, I just got a report from someone running a windows server that when theyre running my plugin their server crashes at mapchanges. I find that odd...

Especially since it runs fine through the entire map without a hitch.

Anyone have any ideas?

Yes im getting that as well. :(

*Edit*
Ok i found what the problem had to add mp_tkpenalty-1 to server.cfg
:D

Looks ok now.

WhoCares? 08-13-2004 17:33

Everyone using this plugin should take note, it is important that you set the server cvar "mp_tkpenalty -1" in your server.cfg file.
If you are using "mp_tkpunish -1", this seems to cause the server to crash at map changes.

Please post in the forums if you find any problems!

Thanks,

speedy 08-13-2004 18:07

Hmmm nope it is still crashing.

[415]StoNeD 08-13-2004 20:29

No one beats the "Sid"... "the Godfather" to the DoD.

8)

...just kidding.

I'll give it a whirl tonight and see what's up.


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

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