View Full Version : DoD TK Revenge (v1.2) Multilanguage!
Firestorm
07-09-2006, 11:18 AM
DESCRIPTION:
- This plugin is a simple but effective TK Revenge provider,
a menu pops up for the victim of a teamkiller and he can choose to "Forgive!", "Glow & 1hp!" or "Slap with 50percent!" or "Slay!"
the teamkiller.
You can set what option will appear in the TK Revenge menu.
* Forgive! just slaps the TKer without damage
* 1hp (& Glow)! sets him to 1hp (and makes him glow in his team's color)
until he respawns. (Glow can be enabled/disabled)
* Slap with 50percent! will slap him with 50% damage of his current
health
* Slay! will added 1 to his tk count and kills him if he's alive
and his tk count is checked against the number of warnings you
set up and a yellow hudmessage saying : "TeamKill Warning X/X: Watch your fire!" is shown.
Once the tk count equals the warnings the hudmessage is shown in red. On the next unforgiven tk the teamkiller will either be kicked or banned for X minutes. (depends on your setup)
* DON'T Forgive! does the same as "Slay!" but without killing the
attacker.
- TeamKills don't have to be counted as deaths for Victims.
- Melee TAs/TKs can be handled different, it's possible
to directly slay on a melee TA/TK without giving the victim
the ability to forgive or glow. if the attacker is slayed for
a melee attack, his tk count is not increased, but if he
is slayed for a melee tk, it will be increased by the set amount.
Knife, Spade, K43 Butt, Garand Butt & Bayonet are considered
melee weapons.
- A specified amount of TAs can count as an unforgiven TK.
- Spawn TeamKills can be handled different as well. If a TK
occurs in your defined distance after respawn, the team killer can be
slayed and his tk-count will be increased by the set amount.
- Grenade TeamKills can be handled on a special way as well, you
can set up either to increase the tk-count or not if "Slay!"
was chosen by the victim of a friendly grenade.
- The TK-Count of players can be decreased
by 1 if they gain a set amount of karma without doing any Tks.
(Karma can consist of FlagCaps and EnemyKills)
- TeamKillers can be slayed after respawning if they are already dead
- You can set your bots (if you are using Sturmbot/Shrikebot for example)
to react on TKs with forgiving, 1hp (& glowing) or Slapping and slaying the
teamkiller.
That way you can be sure that your bots aren't the easy shooting targets
for teamkillers.
- Every player's tk-count can be saved and reloaded if he reconnects.
This feature is independent from time and map, his info is saved for good
until you either delete it, or the TKer starts to play serious and gets his
tk-count decreased. this prevents hardcore teamkillers from simply
reconnecting to the server to get their tk-count zeroed.
Note: if you use this feature, be sure to use banning of teamkillers,
otherwise it wouldn't make any sense to use this feature.
- AMXBans can be used to ban teamkillers.
- Admins with access level ADMIN_IMMUNITY can be excluded from any punishments for a tk, the plugin just just ignores their teamkills.
//
// - 02.07.2007 Version 1.1
// - using DeathMsg event instead of client_death for
// more reliability
// - using ResetHUD event instead of dod_client_spawn for
// more reliability
// - added round state "Draw" to reset team attacks
// - fixed some minor bugs
// - added global tracking cvar
//
// - 20.07.2007 Version 1.2
// - added complete Multilanguage support!
// You will only need to replace version 1.1
// with this version if you want multilanguage
// support, for now no other changes have been made!
//
dannyowan
07-09-2006, 12:31 PM
No options when I turn on dod_tkrevenge_obeyimmunity to 1
windy
07-09-2006, 02:21 PM
I have been running this on amxx 1.75a, there are times when it reports TK's to players who did not commit the TK.
Since the forums have been changed we have lost the threads where we were trying to fathom out why the problem exists.
This plugin works fine in amxx 1.01, all amxx versions above this give the above errors, we deduced that amxx 1.75a gives less occurrances of the problem, and that it may be the dodx module to blame.
I have caught an instance of this in HLSW where a player reported the action, I downloaded the logs to trace the exact occurance. I have the extracts from the servers logs which illustrate the problem :
21:24:29 "Zdenda<1748><STEAM_0:0:813718><Axis>" killed "BECKs @ .com<1988><STEAM_0:1:1093805><Allies>" with "grenade2"
21:24:30 "[BCBG]MrPatriot<1831><STEAM_0:0:3545917><Allies>" killed "JollyJello<2007><STEAM_0:1:2076300><Axis>" with "scoped_enfield"
21:24:32 "[JFF55]+Kilroy+<1364><STEAM_0:0:1941759><Axis>" killed "tommyaht<1982><STEAM_0:1:10840983><Allies>" with "scopedkar"
21:24:35 "[BCBG]MrPatriot<1831><STEAM_0:0:3545917><Allies>" killed "Zdenda<1748><STEAM_0:0:813718><Axis>" with "scoped_enfield"
21:24:37 "BECKs @ .com<1988><STEAM_0:1:1093805><Allies>" say "lol"
21:24:38 "Dr.Thodt<2018><STEAM_0:1:11345248><Allies>" killed "Silkie<1979><STEAM_0:0:523712><Axis>" with "enfield"
21:24:39 "[BCBG]MrPatriot<1831><STEAM_0:0:3545917><Allies>" killed "FlatLine<1992><STEAM_0:1:2182744><Axis>" with "scoped_enfield"
21:24:40 "Zdenda<1748><STEAM_0:0:813718><Axis>" disconnected
21:24:42 "susu_popp+<1986><STEAM_0:0:2573289><Allies>" killed "Dr.Thodt<2018><STEAM_0:1:11345248><Allies>" with "bren"
21:24:48 "susu_popp+<1986><STEAM_0:0:2573289><Allies>" say "sry sry"
21:24:50 "BECKs @ .com<1988><STEAM_0:1:1093805><Allies>" say "enemy kills me and i must forgave a teammate"
This mis-detect TK problem exist for a long long time since amxx 1.01, that's why I have to force to use the old amxx until now.....
Firestorm could to talk to the amxx developers about this problem ?
Ferrokarr
07-16-2006, 08:39 PM
hmmm how to download this plugin???
the attachmants has no link?! anybody could send me this version???
tx for reply...
its
Ferro
Mr. White
07-19-2006, 07:31 PM
pm me and ill send you the source(sma) tk file.
dannyowan
07-20-2006, 07:10 AM
I found the plugin from amx official forum:
http://forums.alliedmods.net/showthread.php?t=24313&highlight=Revenge
but its not ver 0.99 ... its ver 0.9pre-final8 ...
bxwarrior
07-21-2006, 10:59 PM
How do I download the attachment? it says pending approval.
and the only thing I acutally need is the stuff that goes in the amxx.cfg. can you post what it is. PLEASE!! Thanks
diamond-optic
07-21-2006, 11:13 PM
and the only thing I acutally need is the stuff that goes in the amxx.cfg. can you post what it is. PLEASE!! Thanks
umm read the 1st reply as in "Here is the Usage portion:"
and USAGE (cvars for amxx.cfg)
Doc67
07-25-2006, 06:04 PM
Hi, thx for the plugin!
Now my (silly) question.....
What file to compile when using no SQL ?
Hell Phoenix
07-25-2006, 06:34 PM
Use dod_tkrevenge for all. I looked at both files and the dbi one seems to be an older version of the plugin.
dannyowan
07-26-2006, 02:51 AM
We wish the bug about not always show out options when TK happened!
On a server when the player is slapped the sound "Bitch Slapped" start how i can add a sound when a player slap an other player ?
(If you don't understand i'm sorry because im french !! ;) )
There are some bugs with this...
Sometimes when person A tks person B then the plugin will give the forgive, not forgive message to person B saying that person C killed them. Also sometimes people don't get a forgive message at all.
Hell Phoenix
08-09-2006, 12:16 PM
Rgr its a known bug (think its somewhere on the first page). When I have time I may look into rewriting it if someone doesnt do it before then.
dannyowan
08-09-2006, 01:12 PM
There are some bugs with this...
Sometimes when person A tks person B then the plugin will give the forgive, not forgive message to person B saying that person C killed them. Also sometimes people don't get a forgive message at all.
Thats an existing problem that everyone has, no one has bothered to fix it. Anyone using this plugin will have that problem.
I have a problem look:
restart
L 08/10/2006 - 04:27:45: -------- Mapchange to dod_saints --------
L 08/10/2006 - 04:27:45: [AMXX] Plugin "dod_tkrevenge.amxx" failed to load: Module/Library Class "dbi" required for plugin. Check modules.ini.
L 08/10/2006 - 04:27:45: [AMXX] Plugin "dod_tkrevenge_dbi.amxx" failed to load: Module/Library Class "dbi" required for plugin. Check modules.ini.
[AMXX] 10 admins ont ete charges depuis le fichier
Can you help me plase ?
cadav0r
08-09-2006, 06:00 PM
You must wait a new version which will work with amxx 1.75 and his new sql system
Flashhh!
09-11-2006, 05:44 PM
This is the best and usefull plugin of amxx!. I been use it for more than 1 year in all of my servers and works great!. It have only a litle bug (I dont know if its the plugin or the HL motor): sometimes (I said sometimes), when you were kill bye the opossite team or by a player of your team apear the options to punish an incorrect player your team ( a player that didnt kill you).
Please Firestorm update this plugin to 1.75a. IS EXELENT!!!!
=|[76AD]|= TatsuSaisei
09-11-2006, 07:43 PM
I do not think the "bug" is actually a part of this plugin... my reasoning.. I do not use this plugin, and yet on my server we do still get the occasional SOandSO killed a teamate !!
I believe it has to do with the high ping kicker or the afk kicker plugin.. I never spent the time to figure it out, is just an irritation to us... but we do not have any tk revenge plugin running and we get the messages...
So the issue may be in one of the OTHER plugins you are running...
diamond-optic
09-11-2006, 10:22 PM
well its possibly a conflict.. becuase when i used to run this, i had that happening a lot.. since i took it off, i havent seen it happen again
heh and i wouldnt count on firestorm updating anything.. he retired a while back :-(
lmao and i like this:
HL motor
PenDragon
09-12-2006, 05:03 PM
I've never used the High Ping kicker nor the AFK Kicker plugin and I still get those messages (even though I have the TK Revenge plugin disabled and have for quite some time now) every now and then. I have given up all hope on a TK management plugin that works for DoD. I've also given up trying to find out what the heck causes those stupid messages.
Flashhh!
09-12-2006, 05:28 PM
I have given up all hope on a TK management plugin that works for DoD. I've also given up trying to find out what the heck causes those stupid messages.
I will be great if this plugin can be modify to works correctly because its the only plugin (and in my opinion is the best of all TK plugins) that works on DoD. Its exelent the general concept of what this TK plugin do and will be exelent if someone with good expertise on plugins can rewrite it because Firestorm is retired.... sorry for my poorly english
spitfire
09-18-2006, 08:18 PM
I get this error when I start the plugin up
09/18/2006 - 18:03:13: [AMXX] Plugin "dod_tkrevenge.amxx" failed to load: Module/Library Class "dbi" required for plugin. Check modules.ini.
I checked modules config and didnt see anything dealing with DBI so if I can get some help thatd be lovely
-Spitfire
thanks for any help
diamond-optic
09-18-2006, 09:46 PM
dbi would be sql.. like the mysql module... and i dont see why you would need that for this plugin, unless your trying to use the amx_bans option.. but then if you have amx_bans you should already have dbi loaded
cadav0r
09-19-2006, 03:50 PM
With the new version of AMXX the module dbi has been replace by sql and all db function has been change. So developper must recode this plugin with new function
spitfire
09-19-2006, 05:27 PM
Well I guess I wont be using Amx_bans hmmph.
Thanks guys
lapantera
09-19-2006, 08:26 PM
alguien habla español?
do yours spike spanish?
Hell Phoenix
09-19-2006, 10:36 PM
You only use the sql if you want the tk count to go up on all the servers instead of using the tk folder. The amx_bans option has no bearing on it ;)
PenDragon
09-20-2006, 05:06 PM
so then this puppy IS working so long as its not the SQL version? Is that where we are with this?
Hell Phoenix
09-20-2006, 06:44 PM
Rgr it does work. I use it. I do not use the mysql part though, but DBI still should work. However the dod_tkrevenge_dbi.sma is very old and really shouldnt even be attached anymore. The larger file (dod_tkrevenge.sma (http://www.dodplugins.net/forums/attachment.php?attachmentid=58&d=1152451078)) is the one that you want and includes the mysql version and the file version.
narcussist
09-28-2006, 11:37 AM
I am trying to use the dod_tkrevenge.sma and I am still getting the
"[AMXX] Plugin "dod_tkrevenge.amxx" failed to load:
Module/Library Class "dbi" required for plugin. Check modules.ini."
error, is there a way to get it to not use the dbi?
The server is on Linux with 1.76a base
Thank you
diamond-optic
09-28-2006, 11:59 AM
I am trying to use the dod_tkrevenge.sma and I am still getting the
"[AMXX] Plugin "dod_tkrevenge.amxx" failed to load:
Module/Library Class "dbi" required for plugin. Check modules.ini."
error, is there a way to get it to not use the dbi?
The server is on Linux with 1.76a base
Thank you
open the SMA (source code) file.. and goto line 494
you'll see this:
#define DBI 1
change it to this:
#define DBI 0
and recompile and upload :-)
[WoH]Killemall4u
09-28-2006, 02:11 PM
I am running linux dedicated I compiled the version you have posted and also the one on front page I changed the dbi and compiled and left it the same and compiled both times it compiled without error but in the server console the plugin say bad load this is with 1.76a forgive me if this has already been brought up.
Thanks
PenDragon
09-28-2006, 02:32 PM
Please see http://wiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Modules
and make sure you have the following modules activated in modules.ini
dodx, dodfun, fun, and dbi (only if using dbi functionality)
diamond-optic
09-28-2006, 05:43 PM
well really with 1.75 or higher you shouldnt need to enable modules yourself.. as they should autoload
narcussist
10-02-2006, 12:54 AM
Still getting
bad load, and I even changed the line to 0. anything else you can think of?
Thanks again
Compiles just fine for me with online compiler at amxmodx...
narcussist
10-03-2006, 01:59 AM
it compiles fine for me also, its when I check my plugins via console
amxx plugins
that it shows a bad load
[WoH]Killemall4u
10-03-2006, 11:19 AM
same for me also it compiles fine but says bad load for the plugin in server console
ahh my bad, I havent tried to run it yet. I will tonight and see if I can help at all.
narcussist
10-03-2006, 08:24 PM
Not to sound mean, but if others have gotten this to work without the BDI, I know some of us would like to know how you have done it to get it working properly.
Smiffy
10-05-2006, 09:08 PM
hey guys
getting a problem
i just installed 1.76a
i installed most plugins but all loaded except this one here is the list of plugins:
00:05:15 amx_plugins
00:05:15 Currently loaded plugins:
name version author file status
Admin Base 1.76 AMXX Dev Team admin.amxx running
Admin Commands 1.76 AMXX Dev Team admincmd.amxx running
Admin Help 1.76 AMXX Dev Team adminhelp.amxx running
Menus Front-End 1.76 AMXX Dev Team menufront.amxx running
Commands Menu 1.76 AMXX Dev Team cmdmenu.amxx running
Players Menu 1.76 AMXX Dev Team plmenu.amxx running
Teleport Menu 1.76 AMXX Dev Team telemenu.amxx running
Admin Chat 1.76 AMXX Dev Team adminchat.amxx running
Anti Flood 1.76 AMXX Dev Team antiflood.amxx running
Scrolling Message 1.76 AMXX Dev Team scrollmsg.amxx running
Info. Messages 1.76 AMXX Dev Team imessage.amxx running
Admin Votes 1.76 AMXX Dev Team adminvote.amxx running
NextMap 1.76 AMXX Dev Team nextmap.amxx running
Nextmap Chooser 1.76 AMXX Dev Team mapchooser.amxx running
TimeLeft 1.76 AMXX Dev Team timeleft.amxx running
Pause Plugins 1.76 AMXX Dev Team pausecfg.amxx running
Stats Configurati 1.76 AMXX Dev Team statscfg.amxx running
00:05:15 DoD Stats 1.76 AMXX Dev Team stats.amxx running
DoD Sounds Precac 1.76 AMXX Dev Team statssounds.amx running
Stats Logging 1.76 AMXX Dev Team stats_logging.a running
AdminModX 0.9h AMXX DoD Communi adminmodx.amxx running
Admin Weapon II 1.0 Mattcook&DarkDog anyweapon.amxx running
DoD DropGrenades 0.6beta AMXX DoD Team dod_dropgrenade running
DoD EvilAdmin 0.5beta AMXX DoD Team dod_eviladmin.a running
One Weapon 1.0.1 SidLuke dod_oneweaponmo running
DoD PistolAmmo 0.5 [RST] FireStorm dod_pistolammo. running
DoD TeamManager 0.95bet AMXX DoD Team dod_teammanager running
unknown unknown unknown dod_tkrevenge.a bad load
DoD NadeForAll 1.1 AMXX DoD Team dod_nadeforall. running
DeagsMapManage 2.30b Deags deagsmapmanage2 running
DoD AFK Manager 0.7beta AMXX DoD Team dod_afkmanager. running
DoD SniperFun 2.0g be AMXX DoD Team dod_sniperfun.a running
mofoRates 0.01 Tilted Logic moforates.amxx running
Kill X Times 1.0a Doombringer killxtimes.amxx running
SpyAdmin v1 1.01 Smokey485 spyadmin.amxx running
Roll The Dice Plu 2.1 EJL amx_ejl_dice.am running
DoD Wanted 1.0 AMXX DoD Communi dod_wanted.amxx running
DoD AdminSlots 0.6beta AMXX DoD Team dod_adminslots. running
38 plugins, 37 running
i have modules on as follows:
amx mod x
fun
engine
fakemeta
dod fun
dod x
i just dont know how to get round it:(
please help
narcussist
10-08-2006, 11:46 PM
I think they should change the name of this plugin to DBI TK Revenge, since it seems like us that do not use the dbi, can not get this to work, and the ones that do use DBI can. Not trying to sound like a pain in the @rse, but there just does not seem to be any help for us non dbi people.
Garion
10-09-2006, 01:33 AM
not gonna say this will work perfectly but all I did was go in and delete everywhere in the code that says dbi(the if defined dbi = 1 parts)
http://www.garionoldwolf.us/dod_tkrevenge.sma
Smiffy
10-09-2006, 08:21 AM
i got it working now guys, just had to enable the mysql in my modules section
forgot all about that sorry for the waste of time and my stupid retard-ness:p
This needs to be seperated out again into the 2 version. I will do this now and post them seperately.
Cheers!
Ok I fixed up the two plugins to be two different ones like they were before. This will allow you to choose which one you want to use.
Cheers!
cartman
10-10-2006, 08:42 PM
Does anybody have the wandering tk problem with the latest amxx?
PenDragon
10-11-2006, 07:22 PM
what do you mean by "wandering?"
can you please post a pic?
mantk
10-16-2006, 10:49 AM
I modify the dod_tkrevenge.sma (not the dbi version) to include the multilanguage support. I can’t upload the files, you can download from http://comunidadnpm.xyon-servers.com/download.php?list.13
Sorry for my English ;)
orbit
10-16-2006, 08:27 PM
|= TatsuSaisei;1124']
I believe it has to do with the high ping kicker or the afk kicker plugin..
I'm not running the high ping kicker, but I am running the afk kicker. I'm going to disabled that for the time being and keep an eye out on the TKs.
-O-
{SR} *Raggy*
10-17-2006, 03:54 PM
It isn't afk ping kicker nor the high ping kicker as I use none of them and I get those problems aswell
=|[76AD]|= TatsuSaisei
10-18-2006, 10:51 AM
It isn't afk ping kicker nor the high ping kicker as I use none of them and I get those problems aswell
yes, after removing both of my plugins to see if it still occured, it still does... so I believe it to NOT be those 2 plugins I listed... I should have posted sooner, but forgot...
mantk
10-26-2006, 08:00 PM
I think this isn't a plugin error, maybe DODX report the wrong player and make the mistake in plugin. We tries different TK plugins that use the dodx module and get the same problem.
I take this screenshot, maybe can help. I’m ‘-=N.P.M.=-ManTK[OwP]’.
http://comunidadnpm.xyon-servers.com/e107_plugins/coppermine_menu/albums/userpics/fallo_del_dodx.jpg
1- Top right HL engine reports the player ‘[ old Game ] PHOTO’ kills 3 players with allies grenade.
2- Middle left dod_tkrevenge.sma report the player ‘Rommel -=Afrika Korps=-’ killed me.
3- Middle right stats.sma plugin report the player ‘Rommel -=Afrika Korps=-’ as one of my attackers with a stickgrenade.
4- Bottom left in the chat area stats.sma plugin report this 3 lines: Rommel -=Afrika Korps=- a matado a un companyero! (translation: Rommel -=Afrika Korps=- killed a teammate !)
Some translations of text appears in the screenshot:
Atacantes -> Attackers
a matado a un companyero! -> killed a teammate !
I think this is a dodx module error because the HL engine reports the correct attacker and the plugins like dod_tkrevenge.sma or stats.sma that use the dodx module makes the mistake.
Sorry for my English is too much for me, but I really interested to solve the problem.
P.D.:
Sometimes a teammate kill me and don’t get the TK menu, this is more difficult to detect and take a evidence of this mistake.
johnnyskid
10-29-2006, 05:35 AM
Hey all!
I have added this plugin to my server. "Linux" I have added the one that does not have the "dbi" in the name of the plugin.
However it is not re-membering the tk count when you re-join. As well no menu is showing when you get tk'd. Please see my AMXX cfg and please let me know what I need to enable or disable.
_____________
mp_tkpenalty -1
dod_tkrevenge_enabled "0"
dod_tkrevenge_obeyimmunity "0"
dod_tkrevenge_options "24"
dod_tkrevenge_enableglow "0"
dod_tkrevenge_forgiveslap "1"
dod_tkrevenge_respawnslay "0"
dod_tkrevenge_killfx "1"
dod_tkrevenge_playersaytks "1"
dod_tkrevenge_displaytacount "1"
dod_tkrevenge_displaytkcount "1"
dod_tkrevenge_tasequaltk "5"
dod_tkrevenge_tareset "1"
dod_tkrevenge_novictimdeath "1"
dod_tkrevenge_spawnprotect "1"
dod_tkrevenge_spawntahandle "2"
dod_tkrevenge_spawndistance "600"
dod_tkrevenge_spawntkcount "3"
dod_tkrevenge_warnings "6"
od_tkrevenge_bantime "1440"
dod_tkrevenge_useamxbans "0"
dod_tkrevenge_meleeslay "1"
dod_tkrevenge_meleetkcount"1"
dod_tkrevenge_nadetkcount "1"
dod_tkrevenge_karmareducetk "6"
dod_tkrevenge_killkarma "1"
dod_tkrevenge_scorekarma "1"
dod_tkrevenge_botaction "4"
dod_tkrevenge_savetks "1"
dod_tkrevenge_sql "1"
dod_tkrevenge_table "MySQL"
Thank you kindly!
mantk
10-29-2006, 10:24 AM
You must change dod_tkrevenge_enabled to 1
{SR} *Raggy*
10-29-2006, 12:07 PM
Also make a folder called tk in ur configs folder
johnnyskid
10-29-2006, 02:44 PM
Thanks guys for ur help.
It still does not show a menu or log the tks. Do I change the cvars in the sma file or do add them to the amxx cfg?
mantk
10-29-2006, 03:09 PM
Do in amxx.cfg and dod_tkrevenge_sql to 0 if don't use sql
mantk
10-30-2006, 07:42 PM
I open a new topic in amxmodx forums to report the bug in DODX when reports wrong killer and makes the TK plugins fail. I write a little plugin to compare the killer reported with engine event DeathMsg and DODX client_death forward. This is the link of the topic
http://forums.alliedmods.net/showthread.php?t=46651
Jay004
11-22-2006, 10:51 PM
this plugin duse not work for me. what am i doing wrong????
sink257
12-24-2006, 10:14 PM
thx for the plugin man. tis' a great job...
much better than the simple tk revenge....
'speciallly the bot function.
Thx once again.
____________________________________
sink257
12-25-2006, 04:51 AM
is it possible that i set the CVARs in another cfg file and exec it from amxx.cfg? please help me.
Thanks
dod_tkrevenge_table "dbi_table_wanted" = The name of the table you are using
Would this be the TABLE NAME or the DB name?
If so what table should it be set to and looking for under amx_bans?
Do I need to create a table for it to use? If so what do I need to do to create that table?
Forgive me, I speak english, but not code :eek:
It will create its own table with the name given dbi_table_wanted, the database should be set in the sql.cfg in the configs/ directory!
It will create its own table with the name given dbi_table_wanted, the database should be set in the sql.cfg in the configs/ directory!
Thank you Zor!!
What would I change "access level ADMIN_IMMUNITY" to make this so that my admins with level C (kick) have the ability to be beyond the teamkill problems? I do not give level A to many.
Thanks in advance
diamond-optic
01-15-2007, 11:31 AM
by level c im assuming you mean the 'c' flag ? (as in scripting theres actually ADMIN_LEVEL_C but that isnt the 'c' flag, thats actually the 'o' flag)
but if you mean flag 'c' which is kick...
then you'd change it to ADMIN_KICK
by level c im assuming you mean the 'c' flag ? (as in scripting theres actually ADMIN_LEVEL_C but that isnt the 'c' flag, thats actually the 'o' flag)
but if you mean flag 'c' which is kick...
then you'd change it to ADMIN_KICK
Exactly and thank you!!
L 01/15/2007 - 10:20:08: Info (map "dod_switch") (logfile "error_011507.log")
L 01/15/2007 - 10:20:08: Couldn't write file "dod/addons/amxmodx/configs/tks/STEAM_0_1_10317302.txt"
L 01/15/2007 - 10:20:08: [AMXX] Displaying debug trace (plugin "dod_tkrevenge.amxx")
L 01/15/2007 - 10:20:08: [AMXX] Run time error 10: native error (native "write_file")
L 01/15/2007 - 10:20:08: [AMXX] [0] phpiELESY.sma::client_disconnect (line 647)
Error Error Does Not Compute....
Please help
BUMP
Sorry but I kind of need this one to work. Anyone?
orbit
01-17-2007, 05:34 AM
Are you trying to use an sql database, or the flat file version for saving TKs? By the error message, it looks like flat file. You have to create the amxmodx/configs/tks directory in order for it to work.
I've never used the sql setup. If you're trying to use that, the documentation says to set the following:
dod_tkrevenge_sql 1
dod_tkrevenge_table "dbi_table_wanted"
If you've already done all that above, then it's beyond me.
-O-
Are you trying to use an sql database, or the flat file version for saving TKs? By the error message, it looks like flat file. You have to create the amxmodx/configs/tks directory in order for it to work.
I've never used the sql setup. If you're trying to use that, the documentation says to set the following:
dod_tkrevenge_sql 1
dod_tkrevenge_table "dbi_table_wanted"
If you've already done all that above, then it's beyond me.
-O-
Seems I forgot to uncomment the second command... I am such a ditz sometimes. So thank you and I hope it will work now. I also went ahead and make the directory to further uncomplicate things.
Thank you again!!
It will create its own table with the name given dbi_table_wanted, the database should be set in the sql.cfg in the configs/ directory!
Ok I have the database set in my configs dir in the sql.cfg, however.... it hasnt created a table in my amxbans and I am still seeing an output to this txt file. How can I get it to go on my amxbans?
Here is my amxx.cfg entry:
// USAGE (cvars for amxx.cfg):
// ===========================
//
dod_tkrevenge_enabled "1"
dod_tkrevenge_obeyimmunity "1"
dod_tkrevenge_options "1"
// DoD TK Revenge Menu:
// 1 = Forgive!, 1hp (& Glow!), Slay!
// 2 = Forgive!, Slay!
// 3 = Forgive!, Slap 50percent!, Slay!
// 4 = Forgive!, DON'T Forgive!
dod_tkrevenge_enableglow "1"
dod_tkrevenge_forgiveslap "1" //= enable/disable slapping the TKer
// without damage if "Forgive!" was
// chosen by the victim
dod_tkrevenge_respawnslay "1" //= enable/disable slaying TeamKillers
// after respawning who have already
// been dead when "Slay" was chosen
dod_tkrevenge_killfx "1" //= enable/disable special effects
// for killing the TeamKiller
// (fire explosion with sound)
dod_tkrevenge_playersaytks "1" //= allow/disallow players to check their
// current TK-Count by saying "/tks"
dod_tkrevenge_displaytacount "1" //= enable/disable displaying a hudmessage
// to players with info about their TA count
// when it's increased.
dod_tkrevenge_displaytkcount "1" //= enable/disable displaying a hudmessage
// to players with info about their TK count
// when it's increased or decreased.
dod_tkrevenge_tasequaltk "6" //= number of TeamAttacks that equal
// an unforgiven TeamKill
// (set to 0 to disable!)
dod_tkrevenge_tareset "0" //= enable/disable resetting every player's
// current TA-count on round start
//
dod_tkrevenge_novictimdeath "1" = enable/disable feature that prevents
// victim's deaths to be increased by TKs
dod_tkrevenge_spawnprotect "1" //= enable/disable automatic slaying of
// team killers in defined spawn time
dod_tkrevenge_spawntahandle "2" //= sets handling for Spawn-TAs
// 1 = Mirror Damage
// 2 = Kill TeamAttacker immediately
// 0 = disabled
// (spawnprotect feature needs to be enabled!)
dod_tkrevenge_addmirrordmg "100 //= sets amount of HP a SpawnAttacker loses
// additionally to the damage mirrored back
// at him from attacking a teammate
// (only applies if "spawntahandle" is "1"!)
dod_tkrevenge_spawndistance "400" //= distance to spawnpoint within what
// TKs are considered Spawn-TKs
// (default: 800)
dod_tkrevenge_spawntkcount "1" //= number of warnings to add to the
// spawn killers tk-count.
dod_tkrevenge_warnings "8" //= number of unforgiven TKs until
// player is kicked/banned
// (1hp/Slap are not counted as unforgiven)
dod_tkrevenge_ban "1" //= set to 1 to ban the teamkiller after
// your amount of warnings.
// set to 0 to just kick him
dod_tkrevenge_bantime "10" //= time in minutes to ban a teamkiller
// from the server (if you enabled ban)
dod_tkrevenge_useamxbans "1" //= enable/disable using AMXBans to ban
// players for excessive TeamKilling
//
dod_tkrevenge_amxbansreason "Excessive TeamKilling" //= sets reason which is displayed in AMXBans
// Webinterface (use quotes!)
// (default: "Excessive TeamKilling")
dod_tkrevenge_meleeslay "1" //= immediatly kill player on melee
// TA/TK (see description for more info!)
dod_tkrevenge_meleetkcount "1" //= number of warnings to add to the
// back stabbers tk-count.
//
dod_tkrevenge_nadetkcount "0" //= enable/disable increasing the tk-count
// on unforgiven grenade tks
//
dod_tkrevenge_karmareducetk "5" //= Karma points needed to reduce player's
// TK-count by 1 while a TK zeroes the
// karma counter again!
// (set to 0 to disable)
dod_tkrevenge_killkarma "2" //= amount of karma points a player gains
// for killing an enemy
//
dod_tkrevenge_scorekarma "3" //= amount of karma points a player gains
// for capping a flag
//
dod_tkrevenge_botaction "2" //= sets action for TKs on Bots
// 1 = Forgive!
// 2 = 1hp (& Glow!)
// 3 = Slay!
// 4 = Slap 50percent!
// 5 = DON'T Forgive!
// 0 = disabled
dod_tkrevenge_savetks "1" //= enable/disable saving each player's
// TK-count and reload it on reconnect
//
dod_tkrevenge_sql "1" //= Turns on or off the use of the DB instead
// of the text files
dod_tkrevenge_table "dbi_table_wanted" //= The name of the table you are using
orbit
01-18-2007, 06:06 AM
I would start off smaller.
First, does your amxbans work?
Second, don't enable the sql table, use the local flat file and get that working with amxbans.
Once you've confirmed 1 and 2 above, then start working on enabling the sql table.
Just suggestion.
-O-
I would start off smaller.
First, does your amxbans work?
Second, don't enable the sql table, use the local flat file and get that working with amxbans.
Once you've confirmed 1 and 2 above, then start working on enabling the sql table.
Just suggestion.
-O-
Yes it works.
The flat file is working too.
Now amxbans isnt working with (creating) the table.
Still asking for help on same issue. Thanks Orbit.
{SR} *Raggy*
01-18-2007, 03:59 PM
Is the bans thing that your doing from amxbans.net? If that you will have to make sure your website has the new php if your using the newest one...
Is the bans thing that your doing from amxbans.net? If that you will have to make sure your website has the new php if your using the newest one...
Yeah its not a php issue. Amxbans is working fine. So is my php-nuke.....
{SR} *Raggy*
01-18-2007, 06:20 PM
Admin_sql.sma...Do you not have to set up the database info in that?
Admin_sql.sma...Do you not have to set up the database info in that?
I am not sure what you are talking about... I have my site running. I have php-nuke, I have the amxbans database, I have the plugin running. I have everything, but its not building the table that Zor said it would... not sure why.
Sorry didn't see what you were looking at...the Amxbans features do not use the Data Base, you dont need it. This plugin overights the amxmodx amx_ban feature. So the new one needs to know if you want to send bans to amxbans if I remember it correctly. Sorry for the misscomunications.
Cheers!
{SR} *Raggy*
01-18-2007, 08:32 PM
Oh No sorry I'm trying to set up the amxbans aswell but not having any luck... I haven't really got a good look at it though so I probably haven't looked at most of it...
Oh No sorry I'm trying to set up the amxbans aswell but not having any luck... I haven't really got a good look at it though so I probably haven't looked at most of it...
I have set up amxbans successfully raggy. You are a member at my forums and I would be more than happy to help you set them up if you would like the help. Just come on over and start a thread and I will get you squared away.
Zor,
I think I understand. Since it over-writes the amx_bans feature and I use the amxbans, it will send them to amxbans to be "compiled"(for lack of better terminology) with the database using the existing tables? I just dont understand the cvar --- dod_tkrevenge_table "dbi_table_wanted"
That looks to me like it is trying to find or use the table dbi_table_wanted. Which we both know doesnt exist in the amxbans db. Unless I were to create one. Now if I were to create one, would it use it and if so, how many fields would I need to create the table with?
Sorry I know this isnt really your area of support, I am just trying to get full functionality out of the db. and plugin.
{SR} *Raggy*
01-18-2007, 09:03 PM
I will try the amxbans tomorrow Tegu and if it doesn't go very successful I'll find my login stuff for your site and do a thread on your forums :)
I will try the amxbans tomorrow Tegu and if it doesn't go very successful I'll find my login stuff for your site and do a thread on your forums :)
Cool deal. Take your time. Btw I am Tupinambis over there.
{SR} *Raggy*
01-19-2007, 09:16 AM
Yeah I see you alot on your server... 2 maybe 3 hours straight the whole time :P
Yeah, Hi my name is Tupinambis and I am a DoD addict ;)
Really I am dedicated to the server and the people who actually come into it wanting to have a good time. I work at a gaming company and when I get home, I game. I tweak the server, add new things, mess with the website and forums. It is amazing how quickly 1am comes sometimes.
4 hours is really not how even close to my daily participation in the site and server. I get home at 4pm and go to 1am most nights. When I am not ingame, I am on the website or this one or even over at Tatsu's site now.
Yes I am an addict. No I dont wanna change lol!
{SR} *Raggy*
01-19-2007, 03:46 PM
So basically your around games the whole time!! Lucky you :P
Did you grab the SQL version or the standard version...if the standard the dbi is not part of it.
Cheers!
Did you grab the SQL version or the standard version...if the standard the dbi is not part of it.
Cheers!
Standard. Thank you and I see my error in not getting the right one. Is there anyway I can talk you guys into looking at the plugin for sql and maybe updating it?
dAIZYdUKE
02-26-2007, 06:12 PM
Hey, This is Daizy, Is that you Mr White from the ModL League? just wondering where you went to since then if this is you.
Daizy
Ravageur
03-07-2007, 10:11 PM
Hi everybody !
First of all, I'm sorry, because what I'm going to ask you has no link with SQl or DBI or that kind of stuff ...
In fact, I just wanted if it was possible to add some other punishment options to this TK Revenge.
I'm using this plugin on my DoD server, and I have selected the third option so I have the choice between "Slay"," Slap 50hp" and "Forgive" when someone teamkills me. But I've seen other servers which had many more opitons, such as "Transform into chicken", "God Slap" ... and I wondered how it was possible. Moreover, their TK Revenge is displayed in french, whereas mine is in english, and then I also wanted to know how I could change the language of the plugin
Thanks for your answers
Ravageur
=|[76AD]|= TatsuSaisei
03-07-2007, 10:44 PM
sorry, but purple text just did not work and is why I edited your post...
found the "proper" way to remove color formatting from the posts...
(open post, cut contents, switch editor mode, then paste back with no font formatting)
wuerfelkater
03-10-2007, 03:05 PM
Is the TKRevenge error (wrong TK revenge) with the new AMXX 1.76d fixed?
I cant find anything in the changelogs....
diamond-optic
03-11-2007, 08:08 PM
i dont think it was...
doesnt seem like it at least going thru the amxx svn..
i would guess probably not as zor hasnt really been around so they probably dont even know whats going on with it or if the fixes he's done have been tested alot or not.. and they wouldnt include changes to modules when they arent sure whats going on with them...
maybe in 1.8
*edit*
bailopan confirmed that it should be included with 1.8
wuerfelkater
03-12-2007, 09:05 AM
Thx diamond-optic!
I've made the same question in the official Amxx Forum and noticed the answer form BAILOPAN.
So lets wait for the fix in 1.8!
Grottenolm
06-21-2007, 06:03 PM
bailopan confirmed that it should be included with 1.8
Hmmm... how can I fix this on my server, then? 1.8 doesn't seem to be out, yet...
Würfelkater, what do you do for your Servers? Live with the Bug? Or modify the TKREVENGE Plugin?
FeuerSturm
06-22-2007, 02:48 AM
I'm thinking about going back a step and hooking "DeathMsg"
which always reports the correct killer as a work-around until
that client_death forward bug is finally fixed.
that might cut down the features of the plugin a bit, ut it wouldn't
detect "wrong" TKs anymore.
i'll take a look at it after work, stay tuned.
FeuerSturm
06-22-2007, 02:31 PM
Okay guys,
this is a work-around version of DoD TK Revenge called v1.01!
i took out the buggy client_death forward and am now using the
old way of catching the "DeathMsg"-Event.
All features are still available, so please try it out and let me know!
Grottenolm
06-23-2007, 07:52 PM
Okay guys,
this is a work-around version of DoD TK Revenge called v1.01!
i took out the buggy client_death forward and am now using the
old way of catching the "DeathMsg"-Event.
All features are still available, so please try it out and let me know!
Thanks a lot! I already tried this out yesterday with bots, it seems to work OK. As of today I have it implemented on a Server with "real" players, let's see how it fares :)
Grottenolm
06-26-2007, 05:08 AM
So far it looks fine... once again thanks for this nice plugin :) Next Thing I'll try out the team manager... anyone know a working AFK kicker as well?
FeuerSturm
06-26-2007, 02:18 PM
So far it looks fine... once again thanks for this nice plugin :)
You're welcome! i just found a little bug though, if it's not a TK, the
function that includes the "karma manager" is not called, i'll fix that
and will upload v1.02 in a few minutes.
Next Thing I'll try out the team manager... anyone know a working AFK kicker as well?
Well, if you let me know what's wrong with my AFK Manager i'll take a
look at it.
I think i already saw the problem with it though and i'll correct the
bad way of scripting that i used at that time.
Will post a new version of that as well very soon.
FeuerSturm
06-26-2007, 03:44 PM
Here's Version 1.02 of the "workaround-version"!
If i get some feedback from you guys that it's working correct
now and not punishing wrong people anymore it will become the
official version until client_death is finally fixed some time....
Please use the download attached to this post!
- fixed a small bug of the "karma manager" not being
called on non-TKs
- minor code optimizations and tweaks
Grottenolm
06-26-2007, 04:00 PM
Here's Version 1.02 of the "workaround-version"!
If i get some feedback from you guys that it's working correct
now and not punishing wrong people anymore it will become the
official version until client_death is finally fixed some time....
Thanks a lot! I uploaded it just now, so starting from the next map change this version will be tested on these two servers:
80.190.140.230:27015 [RdE] Entenmetzgerei | Avalanche 24/7
80.190.140.230:27023 [RdE]Ententeich
I also asked my clan members to carefully watch out for any further issues happening...
Grottenolm
06-26-2007, 04:03 PM
Well, if you let me know what's wrong with my AFK Manager i'll take a look at it.
I think i already saw the problem with it though and i'll correct the
bad way of scripting that i used at that time.
Will post a new version of that as well very soon.
Sorry, I didn't recall the AFK manager was your's - else I would have asked the question a different way ;)
The issues I saw (If I recall it correctly) were, that quite often people were kicked although they were clearly playing.
Anyway, I'll post in the AFK manager thread regarding this issue now...
FeuerSturm
07-02-2007, 06:22 PM
//
// - 02.07.2007 Version 1.1
// - using DeathMsg event instead of client_death for
// more reliability
// - using ResetHUD event instead of dod_client_spawn for
// more reliability
// - added round state "Draw" to reset team attacks
// - fixed some minor bugs
// - added global tracking cvar
//
As always, please report bugs with the new version immediately!
Enjoy!
FeuerSturm
07-20-2007, 10:30 AM
//
// - 20.07.2007 Version 1.2
// - added complete Multilanguage support!
// You will only need to replace version 1.1
// with this version if you want multilanguage
// support, for now no other changes have been made!
//
Included languages are English and German, i would seriously be happy
if some of our french, spanish, polish, danish etc etc etc.....
comrades could add their translations and send them to me via
private message, i'll add them to my official language file then! :D
RoGuE
08-10-2007, 09:15 PM
Great plugin, but need some advice.
I get the HUD message comming up with NO_REFERENCE: TEAMKILLWARNING (or something like that). I think that it is not referencing the "dod_tkrevenge.txt" file although I have it in all my directories.
Any ideas ?
FeuerSturm
08-11-2007, 03:22 AM
Great plugin, but need some advice.
I get the HUD message comming up with NO_REFERENCE: TEAMKILLWARNING (or something like that). I think that it is not referencing the "dod_tkrevenge.txt" file although I have it in all my directories.
Any ideas ?
There's no entry called "TEAMKILLWARNING", neither in the plugin itself
nor in the dictionary-file. :confused:
Did you maybe edit the source code or received the plugin from another
website than this?
I never saw a message like "NO_REFERENCE" ever, so i'm a bit clueless
what the problem could be, but as i'm currently working on an update
of the plugin i'll check that issue as well.
Did anyone else ever have such a problem?
RoGuE
08-11-2007, 02:32 PM
Thanks for the reply.
The correct message is; ML_NOTFOUND: MENUFORGIVE
Every option that comes up is like that, eg; when the teamkill options come up I get 3 choices but they all say ML_NOTFOUND : (and state vaious error codes like that above).
in the dod_tkrevenge.txt file I see MENUFORGIVE = Forgive!..so i'm thinking that the program is looking for MENUFORGIVE and cant find it.
I have not altered the file any.
Compils and runs ok, its just the text on the menu choices that come up as above.
FeuerSturm
08-11-2007, 02:36 PM
Are you sure that you really have the file "dod_tkrevenge.txt" in the folder
"dod/addons/amxmodx/data/lang/", because this sounds like you
don't if you have that problem with all messages.
Please check your folder and let me know!
RoGuE
08-11-2007, 02:58 PM
Thats it fixed. Thanks.
Did not have it in the right directory.
cartman
08-14-2007, 10:41 PM
Does anyone know the status of fixing the random slaying this plugin does. IE they didn't tk but were randomly slayed?
diamond-optic
08-15-2007, 02:35 AM
will be fixed in the next AMXX release
if you want, feel free to try out the dodx beta (basically whats gonna be included in the next amxx release, just not final yet)
find it here (http://www.dodplugins.net/forums/showthread.php?t=550)
i believe that fixes the false tk's
FeuerSturm
08-15-2007, 02:41 AM
Does anyone know the status of fixing the random slaying this plugin does. IE they didn't tk but were randomly slayed?
That has already been fixed in Version 1.1 some time ago.
It will only punish players that are guilty.
diamond-optic
08-15-2007, 02:45 AM
oh ya lol.. disregard my post i forgot lol.. im outta touch
cartman
08-15-2007, 01:14 PM
Ok I'm running v1.1 of the tk plugin on amxx 1.76d
I thought one of my guys said that this was still going on, perhaps he was mistaken.
Are you sure this has been fixed?
FeuerSturm
08-16-2007, 07:09 PM
Ok I'm running v1.1 of the tk plugin on amxx 1.76d
I thought one of my guys said that this was still going on, perhaps he was mistaken.
Are you sure this has been fixed?
Yes, i'm sure, i already used the fixed version about 2 weeks on my 2 public servers before i posted it.
since that version i never noticed any wrong punishments anymore, neither
did my clan mates, so i'm pretty sure it's working correct now.
i'll take a look at that again, and double check it though.
I have some Problems to configure this Plug.
If a Player get a Ban, he's is banned from Server. The Ban is in AMXbans too.
But my Prob is, the Player din't get a Kick from Server. He's banned but can play on.
---------------------------------------------
If i enable TA-stuff i get TAwarnings for TKs?
knife108
09-21-2007, 11:16 PM
i d added TK-Revenge on my server ,but i found out the 3 options of revenge menu just collide with the anterior three options of dod default voice menu cause i can not use them ;)
i can still use key "c" "v" "b" then choose 1,2 or 3 to punish TKer . if i use them enough times depended on cvar setting like this and chose unforgiven continuously, the TKer will be kicked or banned.
pls fix them !
thx ;)
knife108
09-24-2007, 09:55 AM
i d added TK-Revenge on my server ,but i found out the 3 options of revenge menu just collide with the anterior three options of dod default voice menu cause i can not use them ;)
i can still use key "c" "v" "b" then choose 1,2 or 3 to punish TKer . if i use them enough times depended on cvar setting like this and chose unforgiven continuously, the TKer will be kicked or banned.
pls fix them !
thx ;)
guys do u have the same problem ?
FeuerSturm
09-25-2007, 02:47 AM
i never heard about that problem before and i never had a problem like
that.
could you PM me the list of your running plugins?
knife108
09-25-2007, 07:56 AM
thx buddy,
i d found the solution !
:D
superbulette.nordend
01-15-2008, 03:27 PM
hmm, we have the same problem as keen.
player is banned correctly into the sql-db, but not kicked, so he stays in the server..
any idea?
diamond-optic
01-15-2008, 03:51 PM
its probably the problem with amxbans itself that i had with the dod_blockexploits plugin
from the block exploits thread:
basically what was happening is when the server itself uses amx_ban it has an id of 0, but the amxbans code was trying to get the team of the id that called the ban but since it was the server it threw an error and the plugin stopped..
so i fixed this and it works now, i also posted about it on the amxbans forums, tho i wouldnt be surprised if its ignored :-\
if you want i can download amxbans and fix it (well more or less compare it to mine and see what changes i exactly made for that part) and post it for you if you cant do it yourself :) (...my version of amxbans is quite modified over the original so i dont wanna post that up lol)
superbulette.nordend
01-15-2008, 03:56 PM
hmmkay diamond, that sounds good..
just: how did u fix it?
can you provide me with the solution?
that would be really nice..
thanks in advance,
bulette
diamond-optic
01-15-2008, 04:01 PM
open up the cmdBan.inl file
goto line 473 and find this:
new admin_team[11], admin_steamid[50], admin_nick[100]
get_user_team(id, admin_team, 10)
get_user_authid(id, admin_steamid, 49)
get_user_name(id, admin_nick, 99)i changed that to this:
new admin_team[11], admin_steamid[50], admin_nick[100]
if(id)
{
get_user_team(id, admin_team, 10)
get_user_authid(id, admin_steamid, 49)
get_user_name(id, admin_nick, 99)
}
else
{
formatex(admin_team,10,"RCON")
formatex(admin_steamid,49,"RCON")
formatex(admin_nick,99,"<Server RCON>")
}
i think thats all.. and it should also fix using amx_ban via HLSW
..and the stuff that says RCON you can change to whatever you want to show up
superbulette.nordend
01-15-2008, 04:13 PM
thanks very much, ill try that!
greetz,
bulette
superbulette.nordend
01-15-2008, 04:43 PM
works, thanks for that, diamond!
rudi_the_striker
02-07-2008, 03:16 PM
We let bann the tkler and we have notice in the near past that some banns were ip banns and not steam-id banns.
is that a problem from the tkrevenge or from amxbans that we use??
Reiser
02-21-2008, 05:33 PM
I've got an error with AMX 1.80:
dod_tkrevenge_dbi.sma(601) : error 017: undefined symbol "configsdir"
1 Error.
Could not locate output file compiled/dod_tkrevenge_dbi.amx (compile failed).
But no Problem: BugFix:
Insert this before line 558:
new configsdir[ 64 ]
get_configsdir( configsdir, 63 )
Now it should be work!
Reiser
02-22-2008, 09:00 PM
The SQL Plugin don't work with AMX-Bans, maybe also not with the normal amx_ban-Command.
If it try to ban a User with amx_ban, it only will ban him but not kick.
Now I tried this one:
server_cmd("amx_ban %i %s %s; kick #%d %s",tker_bantimeint,tker_authid,banreason,tker_userid ,banreason)
but it don't works, cause the AMX Ban need time to get the SteamID from the user, to save them into the database.
My Idea:
* The user will be banned.
* 1.5 secounds later it will be kicked. (It works with set_task)
The Changes:
Add this on the beginning or end of the Script (I add it on Line 608):
public delayed_kick(id_str[])
{
new userid = str_to_num(id_str)
new kick_message[128]
get_cvar_string("dod_tkrevenge_amxbansreason",kick_message,127)
server_cmd("kick #%d %s",userid, kick_message)
return PLUGIN_CONTINUE
}
Replace folowing Code:
(Old Code)
if(get_pcvar_num(g_dod_tkrevenge_useamxbans) == 1)
{
new tker_authid[32]
get_user_authid(teamkiller[id],tker_authid,31)
new banreason[128]
get_cvar_string("dod_tkrevenge_amxbansreason",banreason,127)
server_cmd("amx_ban %d %s %s",tker_bantimeint,tker_authid,banreason)
}
... with this one ...
if(get_pcvar_num(g_dod_tkrevenge_useamxbans) == 1)
{
new tker_authid[32]
get_user_authid(teamkiller[id],tker_authid,31)
new banreason[128]
get_cvar_string("dod_tkrevenge_amxbansreason",banreason,127)
new tker_userid = get_user_userid(teamkiller[id])
server_cmd("amx_ban %d %s %s",tker_bantimeint,tker_authid,banreason)
new id_str[32]
num_to_str(tker_userid, id_str, 31)
set_task(1.5, "delayed_kick", 1, id_str, 3)
}
Dear Firestorm, please update your Code!
It should also work with the normal Plugin.
Sorry for my bad english I am from Austria.
diamond-optic
02-22-2008, 09:05 PM
i believe its a problem with amxbans itself...
problem with the actual code for amxbans itself..
basically what was happening is when the server itself uses amx_ban it has an id of 0, but the amxbans code was trying to get the team of the id that called the ban but since it was the server it threw and error and the plugin stopped..
so i fixed this (in my local version of amxbans) and it works now, i also posted about it on the amxbans forums, tho i wouldnt be surprised if its ignored :-\
same thing happens when banning someone thru HLSW when using amxbans, the ban gets added but the player is not kicked
but i wouldnt expect an official fix release from the amxbans site... but theres so many other little problems with amxbans anyway lol
Reiser
02-23-2008, 07:17 AM
i believe its a problem with amxbans itself...
Yeah, I think the same. AMXBans is a nice Plugin, I hope there will be an Update next time :)
But my Code works very good ;)
same thing happens when banning someone thru HLSW when using amxbans, the ban gets added but the player is not kicked
Yeah I tried this too. It dont works.
but i wouldnt expect an official fix release from the amxbans site... but theres so many other little problems with amxbans anyway lol
Let's wait for the Big Bugfix Update *lol*
Reiser
02-26-2008, 01:42 PM
Hello,
I wanna to use the dod_tkrevenge_dbi.sma Plugin, but it doesn't add SQL Entries. It creats the TK-Table, but there wont addet Players with the Karma Points.
Now I found the error in plugin:
There is no INSERT-Command for the MySQL-Table. How this works?
I don't know how the plugin works, so I can't make an bugfix. Please help me :)
rushnnoob
05-31-2008, 07:19 PM
OK, starting from a new install with 1.8 AMXX and compiling the .sma
I have the plugin running when looking at amx_plugins on the server and the CVARs set in AMXX.CFG....
When TK/TA there is no menu coming up....
What am I missing...
Thanks in advance.
{KHH} RUSH-N-NOOB
--> Edit
OK, Read my name....It was working just fine, I had the Admin's Immunity on.... who was testing it ---- ADMINS!!!----, who mainly plays on the server ---- PEOPLE WITH IMMUNITY ----- took a while to figure out...
Reiser you code is not working for me :(
no kicked after ban (sometimes kick's).
I do exacly as you said.
Merrill
12-25-2008, 02:33 PM
When valve messed everything up a few weeks ago the TK Revenge plugin doesn't allow to "not forgive" intentional tk's. The forgive option works but nothing happens when you hit #2 to not forgive.
Can the code be looked at for a possible fix?
Merrill
12-27-2008, 01:43 PM
Ah by bad the bind to key #2 somehow got changed which is why it didnt work.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.