Raised This Month: $32 Target: $400
 8% 

DoD !forgivetk - does NOT require dodxmod or dodx.inc


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Day of Defeat        Category:   Gameplay        Approver:   devicenull (200)
WhoCares?
Junior Member
Join Date: Aug 2004
Location: Colorado
Old 08-11-2004 , 03:24   DoD !forgivetk - does NOT require dodxmod or dodx.inc
Reply With Quote #1

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.
-----------------------------------------------------------------------
Attached Files
File Type: sma Get Plugin or Get Source (ftk_v104.sma - 2976 views - 10.0 KB)
__________________
WhoCares? is offline
Send a message via ICQ to WhoCares? Send a message via AIM to WhoCares? Send a message via MSN to WhoCares? Send a message via Yahoo to WhoCares?
WhoCares?
Junior Member
Join Date: Aug 2004
Location: Colorado
Old 08-11-2004 , 20:26   Death Message problem
Reply With Quote #2

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.
__________________
WhoCares? is offline
Send a message via ICQ to WhoCares? Send a message via AIM to WhoCares? Send a message via MSN to WhoCares? Send a message via Yahoo to WhoCares?
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 08-11-2004 , 21:38  
Reply With Quote #3

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
__________________
QwertyAccess is offline
WhoCares?
Junior Member
Join Date: Aug 2004
Location: Colorado
Old 08-11-2004 , 22:09  
Reply With Quote #4

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.
__________________
WhoCares? is offline
Send a message via ICQ to WhoCares? Send a message via AIM to WhoCares? Send a message via MSN to WhoCares? Send a message via Yahoo to WhoCares?
mahnsawce
Senior Member
Join Date: Apr 2004
Location: internet
Old 08-11-2004 , 23:18  
Reply With Quote #5

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.
mahnsawce is offline
WhoCares?
Junior Member
Join Date: Aug 2004
Location: Colorado
Old 08-12-2004 , 03:11  
Reply With Quote #6

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?
__________________
WhoCares? is offline
Send a message via ICQ to WhoCares? Send a message via AIM to WhoCares? Send a message via MSN to WhoCares? Send a message via Yahoo to WhoCares?
speedy
Member
Join Date: Aug 2004
Old 08-13-2004 , 13:13  
Reply With Quote #7

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


Looks ok now.
speedy is offline
WhoCares?
Junior Member
Join Date: Aug 2004
Location: Colorado
Old 08-13-2004 , 17:33  
Reply With Quote #8

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,
__________________
WhoCares? is offline
Send a message via ICQ to WhoCares? Send a message via AIM to WhoCares? Send a message via MSN to WhoCares? Send a message via Yahoo to WhoCares?
speedy
Member
Join Date: Aug 2004
Old 08-13-2004 , 18:07  
Reply With Quote #9

Hmmm nope it is still crashing.
speedy is offline
[415]StoNeD
Senior Member
Join Date: Mar 2004
Old 08-13-2004 , 20:29  
Reply With Quote #10

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



...just kidding.

I'll give it a whirl tonight and see what's up.
[415]StoNeD is offline
Reply


Thread Tools
Display Modes

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 21:04.


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