ImportBot Posted November 10, 2013 Author Share Posted November 10, 2013 Originally Posted by SirHitman*: What I want is a tempban on 4 punishes, im guessing this counter is reset at end of round? I liked the sorry/autoforgive (silently so its not abused). And i removed the Kill command because I think it just causes further irritation and abuse possibility (like vehicle stealing). I copy pasted some of your code together. Would this work for me or did my copy/paste skills fail me? x Removed because broken * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 15, 2013 Author Share Posted November 15, 2013 Originally Posted by staazvaind*: thx for the rulz - works nice in bf4 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 16, 2013 Author Share Posted November 16, 2013 Originally Posted by SirHitman*: ... # Team Kill Rules On TeamKill;PlayerSay %p%: watch your fire! #%c% On TeamKill;Say %v%: !forgive or !punish ... The PlayerSay comes up in Procon Chat but is not visible to anyone inge and the Say command spams to all players on the server. So temp fix for me was to change this to SquadSay. Same goes for the last part of the forgive/punish text. Anyone know how to fix the PlayerSay so it just goes to the killer and victim? EDIT: Seems that the SquadSay dosnt work always ether. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by dziobolek*: Something that works now pretty nice for me ist this code #### Teamkill Announcement On TeamKill;Say %p% just teamkilled %v% with %w%, watch your fire! On TeamKill;Say %v%: !f or !forgive / !p or !punish On TeamKill;Set %server_lastteamkill[%p%]% %v% On TeamKill;Set %server_lastteamkiller[%v%]% %p% ##### Automatic Forget On Kill;Set %server_lastteamkiller[%v%]% 0;Set %server_lastteamkill[%p%]% 0 On Say;Text sorry,soz,sry;Set %server_lastteamkiller[%server_lastteamkill[%p%]%]% 0;Set %server_lastteamkill[%p%]% 0 ###### Team Kill Punishment and Banning Rule On Kill;Set %server_lastteamkiller[%v%]% 0;Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: player has already been automatically forgiven, 'cause he apologized!;Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p;If %punishments[%server_lastteamkiller[%p%]%]% >= 4;TargetPlayer %server_lastteamkiller[%p%]%;Say %server_lastteamkiller[%p%]% got banned for 5 Minutes for 5 or more TKs!;Set %punishments[%server_lastteamkiller[%p%]%]% 0;TargetAction TempBan 300;TargetConfirm;Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p;If %server_lastteamkiller[%p%]% != 0;Incr %punishments[%server_lastteamkiller[%p%]%]%;TargetPlayer %server_lastteamkiller[%p%]%;Say %server_lastteamkiller[%p%]% killed for team killing. He has now %punishments[%server_lastteamkiller[%p%]%]% Teamkills!;TargetAction Kill;TargetConfirm;Set %server_lastteamkiller[%p%]% 0 On Say;Text !forgive,!f;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: player has already been automatically forgiven, 'cause he apologized!;Set %server_lastteamkiller[%p%]% 0 On Say;Text !forgive,!f;If %server_lastteamkiller[%p%]% != 0;Set %server_lastteamkill[%server_lastteamkiller[%p%]%]% 0;Say %server_lastteamkiller[%p%]% was forgiven by %p%.;Set %server_lastteamkiller[%p%]% 0 maybe its written a bit too complicated, but it works pretty nice for me so if still someone needs something like this, feel free to use * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by SirHitman*: Something that works now pretty nice for me ist this code maybe its written a bit too complicated, but it works pretty nice for me so if still someone needs something like this, feel free to use Perfect thanks that actually works apart from what I had. Made some modifications thou and added "On Spawn;PlayerFirst;Set %punishments[%server_lastteamkiller[%p%]%]% 0" on top so that the value is reset every round.Also i removed the Kill command "TargetAction Kill;TargetConfirm;" to match our own preferences, along with some of the Say to reduce the spam. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by dziobolek*: yeah, but i think you have to change it to "On Spawn;PlayerFirst;Set %punishments[%p%]% 0 with your code the punishments of the last teamkiller of the new player will be set to 0, but the new player wasn't teamkilled etc... when i think correctly of this code * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by ty_ger07*: Each new round should reset the variables so you shouldn't have to set them to 0 each round manually. Unless BF4 or BamBam made something change. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by madmuthamonk*: I posted this in the plugin thread but should have posted it here. So when I use this code and someone tk's someone when they type in !forgive or !punish it says it couldn't find a recent teamkill to punish or forgive. Is my code wrong or am I just missing something. Code: # TEAMKILL RULZ On Spawn;ServerFirst;Set %ini_punish% 0 On TeamKill;PlayerSay %p%: watch your fire! This is your %c% victim. On TeamKill;PlayerSay %p%: Say sorry, soz or sry to have your TK forgiven automatically On TeamKill;VictimSay %v%: type !forgive to forgive teamkiller On TeamKill;PlayerCount 5;Say %p% Excessive Teamkills (%c%) (was %v% with %w%);Kick Excessive Teamkills On TeamKill;PlayerCount 4;Say %p% SUICIDAL TEAMKILL #%c% on %v% with %w%;Kill 100 On TeamKill;Say %p% TEAMKILL #%c% (on %v% with %w%) # Automatic Forget On Kill;Set %server_lastteamkiller[%v%]% 0;Set %server_lastteamkill[%p%]% 0 On Say;Text sorry,soz,sry;Set %server_lastteamkiller[%server_lastteamkill[%p%]%]% 0;Set %server_lastteamkill[%p%]% 0 # Team Kill Punish Rule On Say;Text !punish;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: could not find a recent team kill to punish. On Say;Text !punish;If %server_lastteamkiller[%p%]% != 0;TargetPlayer %server_lastteamkiller[%p%]%;Say %server_lastteamkiller[%p%]% killed for team killing.;TargetAction Kill;TargetConfirm;Set %server_lastteamkiller[%p%]% 0 On Say;Text !forgive;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: could not find a recent team kill to forgive. On Say;Text !forgive;If %server_lastteamkiller[%p%]% != 0;Set %server_lastteamkill[%server_lastteamkiller[%p%]%]% 0;Say %server_lastteamkiller[%p%]% was forgiven by %p%.;Set %server_lastteamkiller[%p%]% 0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by dziobolek*: @monk as far as i see, you don't set the %server_lastteamkiller[%p%]% variable on a kill. so its always 0. you need to On TeamKill;Set %server_lastteamkiller[%v%]% %p% On TeamKill;Set %server_lastteamkill[%p%]% %v% with this both lines you will set that the lastteamkiller of the victim is %p% and the last teammember killed by %p% is the victim %v%now you will have a true state in your if clause. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by SirHitman*: Tested some other changes to one of our server yesterday and while doing so we also med some unplaned testing of the punish system and found some issues (if i remember correctly) it went like this. A killed B and C C punished (the teamkill counter said 2) B punished (the teamkill counter said 1) (if they punish in the "correct" order it was fine) did not think to further check with more than 2 teamkills what happened if D also got killed and punished. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 1, 2013 Author Share Posted December 1, 2013 Originally Posted by ToRNiO*: Hello, This this code below, is it possible to get the message to display only to the people it affects: IE: Only the people who were team killed or did the team killing see the message, rather than the whole server. Thanks #### Teamkill Announcement On TeamKill;Say %p% just teamkilled %v% with %w%, watch your fire! On TeamKill;Say %v%: !f or !forgive / !p or !punish On TeamKill;Set %server_lastteamkill[%p%]% %v% On TeamKill;Set %server_lastteamkiller[%v%]% %p% ##### Automatic Forget On Kill;Set %server_lastteamkiller[%v%]% 0;Set %server_lastteamkill[%p%]% 0 On Say;Text sorry,soz,sry;Set %server_lastteamkiller[%server_lastteamkill[%p%]%]% 0;Set %server_lastteamkill[%p%]% 0 ###### Team Kill Punishment and Banning Rule On Kill;Set %server_lastteamkiller[%v%]% 0;Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: player has already been automatically forgiven, 'cause he apologized!;Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p;If %punishments[%server_lastteamkiller[%p%]%]% >= 4;TargetPlayer %server_lastteamkiller[%p%]%;Say %server_lastteamkiller[%p%]% got banned for 5 Minutes for 5 or more TKs!;Set %punishments[%server_lastteamkiller[%p%]%]% 0;TargetAction TempBan 300;TargetConfirm;Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p;If %server_lastteamkiller[%p%]% != 0;Incr %punishments[%server_lastteamkiller[%p%]%]%;TargetPlayer %server_lastteamkiller[%p%]%;Say %server_lastteamkiller[%p%]% killed for team killing. He has now %punishments[%server_lastteamkiller[%p%]%]% Teamkills!;TargetAction Kill;TargetConfirm;Set %server_lastteamkiller[%p%]% 0 On Say;Text !forgive,!f;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: player has already been automatically forgiven, 'cause he apologized!;Set %server_lastteamkiller[%p%]% 0 On Say;Text !forgive,!f;If %server_lastteamkiller[%p%]% != 0;Set %server_lastteamkill[%server_lastteamkiller[%p%]%]% 0;Say %server_lastteamkiller[%p%]% was forgiven by %p%.;Set %server_lastteamkiller[%p%]% 0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 1, 2013 Author Share Posted December 1, 2013 Originally Posted by PapaCharlie9*: According to this R12 information: showthread....ll=1#post86641* It is not possible to do !forgive or automatic apologies for team-kills and have a server be Hardcore in Battlelog rather than Custom. If the server is Hardcore, you have to set vars.teamKillKickForBan to 3 to 10, you can't set it to 0. That means that once enough kicks have happened, regardless of forgives, the player will be banned. The same is true for team-kill count for kicks. Plus, according to that post, the counts do not reset at end of round, so 2 team-kills in round 1 and 2 team-kills in round 2 will result in a kick, if vars.teamKillCountForKick is set to 4. TL;DR: no matter how many times a player is forgiven, they will still get kicked/banned from the server eventually. We all need someone to do the following experiment with the ProconRulz for !punish/!forgive on R12: 1) Insure the server is configured Hardcore or at least has these settings if Custom: vars.friendlyFire true vars.teamKillValueForKick 4 vars.teamKillCountForKick 4 vars.teamKillKickForBan 3 2) Two friends join on the same team. Go in some isolated corner. Player A should be Assault with defib paddles. Repeat the following 16 times: a) Player A team-kills player B Player B immediately !forgives player A c) Player A defibs player B d) repeat -- if player A is kicked, rejoin on the same team If after 4 repetitions player A is kicked, we know that forgive is not working. If after 16 repetitions player A is banned, we know that R12 won't support !forgive. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 2, 2013 Author Share Posted December 2, 2013 Originally Posted by ty_ger07*: PC, these rules do no affect the server's punishment of players in accordance with EA. The forgive command simply makes it so that a player won't be automatically killed by the plugin for repeat offenses. EA's rules still overrule everything as always. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 2, 2013 Author Share Posted December 2, 2013 Originally Posted by IAF-SDS*: PC, these rules do no affect the server's punishment of players in accordance with EA. The forgive command simply makes it so that a player won't be automatically killed by the plugin for repeat offenses. EA's rules still overrule everything as always.It depends on what forgive/punish system you use. I think your system requires a player to be forgiven in order to prevent an automatic punishment if I recall correctly. But you will still have conflicts with the existing DICE system that keeps a running teamkill count and won't reset the tk count on a new map (which is the problem Papa was focusing on). If you don't use an automatic punishment on each teamkill, and instead use a forgive/punish system where each forgive causes the TK to not count against the player's running count and where only a player's punish will cause the player to be killed (punish and silence both increase count), then these rules will also conflict with DICE's existing system that has a cumulative count to kick at 5 and ban at 3 kicks regardless of how many maps played. We now know DICE is having discussions about it and hope they fix it soon. You may read more about the issue here: LINK* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 2, 2013 Author Share Posted December 2, 2013 Originally Posted by kycu*: Hello, I've question about admin / reserved slots. How to make a rulez thats show info when player with reserved slot gets punish ex. "This player have VIP SLOT and is protected from punish" greetings! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 2, 2013 Author Share Posted December 2, 2013 Originally Posted by ty_ger07*: Hello, I've question about admin / reserved slots. How to make a rulez thats show info when player with reserved slot gets punish ex. "This player have VIP SLOT and is protected from punish" greetings! I don't think proconrulz checks the reserved slots list. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 3, 2013 Author Share Posted December 3, 2013 Originally Posted by leandro-motta*: It would be possible to do procon_ruls auto-punishing to count 5 team would kill to be kicked so for some BF4 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 3, 2013 Author Share Posted December 3, 2013 Originally Posted by kycu*: I don't think proconrulz checks the reserved slots list.Yes, he does... in ProconRulz manual is Conditions = (prefix with "Not " to reverse meaning) "Admin": player is a server Admin - typically use Not Admin "Admins": at least one server admin is on the server "Protected": player is admin or in reservedslots list and protected from ProconRulz kicks and kills (...) And ProconRulz have option thats protect admins and reserved slots http://s10.postimg.org/8of5s780p/Schowek04.jpg * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 3, 2013 Author Share Posted December 3, 2013 Originally Posted by PapaCharlie9*: It depends on what forgive/punish system you use. I think your system requires a player to be forgiven in order to prevent an automatic punishment if I recall correctly. But you will still have conflicts with the existing DICE system that keeps a running teamkill count and won't reset the tk count on a new map (which is the problem Papa was focusing on).Indeed. Consider a player that has been forgiven for every team-kill he committed, but he still gets kicked. He's going to think some badmin punished him on purpose and complain, loudly. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 3, 2013 Author Share Posted December 3, 2013 Originally Posted by ty_ger07*: Yes, he does... in ProconRulz manual is And ProconRulz have option thats protect admins and reserved slots http://s10.postimg.org/8of5s780p/Schowek04.jpg I thought "protected" meant that the player is an admin or on the reserved slots list AND that protecting admins and reserved slots was enabled in the plugin. I thought just being on the reserved slots list wasn't enough to be considered "protected". * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 3, 2013 Author Share Posted December 3, 2013 Originally Posted by SirHitman*: Is there a way to Say to players but not have it show in Procon Chat tab? Every teamkill gives a minumum of 2 lines in the chat (and more if they decide to punish or forgive). Also changed the regular ban to exec command so it shows up as banned by admin (instead of the player doing the last punish), however i cant get this Ban to accept more than 1 word. Anyone know what im doing wrong? On Say;Text !punish,!p;If %punishments[%server_lastteamkiller[%p%]%]% >= 5;Say %server_lastteamkiller[%p%]% has been banned for 60 minutes for excessive teamkilling;Exec banList.add name %server_lastteamkiller[%p%]% seconds 3600 BannedForPunishedTeamkills;Log %server_lastteamkiller[%p%]% banned for excessive teamkilling Also is there a way to log to a specific file with procon rulz? I want a separate punish log so we can easily keep track of who is punishing and getting punished. NOT WORKING: the punishcounter seems to not tick upwards even after multiple punishes and is stuck at 1. Anyone see what im doing wrong here? #### Teamkill Announcement On TeamKill;PlayerSay You just teamkilled %v%, watch your fire! On TeamKill;VictimSay !f or !forgive / !p or !punish %p% for teamkilling On TeamKill;Set %server_lastteamkiller[%v%]% %p% ##### Auto Forget On Kill; Set %server_lastteamkiller[%v%]% 0 On Say; Text fuck,retard,idiot,moron,stupid;If %server_lastteamkiller[%p%]% != 0; Set %server_lastteamkiller[%p%]% 1 ##### On Say;Text !punish,!p;If %server_lastteamkiller[%p%]% == 0;PlayerSay There is no teamkiller to Punish On Say;Text !forgive,!f;If %server_lastteamkiller[%p%]% == 0;PlayerSay There is no teamkiller to Forgive On Say;Text !punish,!p,!forgive,!f;If %server_lastteamkiller[%p%]% == 1;PlayerSay Your teamkiller was forgiven because of your bad language;Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p;If %server_lastteamkiller[%p%]% != 0;Incr %punishments[%server_lastteamkiller[%p%]%]%;PlayerSay %server_lastteamkiller[%p%]% has been punished for teamkilling;Log %p% punished teamkiller %server_lastteamkiller[%p%]% punishcount %punishments[%server_lastteamkiller[%p%]%]% On Say;Text !punish,!p;If %punishments[%server_lastteamkiller[%p%]%]% >= 5;Say %server_lastteamkiller[%p%]% has been banned for 60 minutes for excessive teamkilling;Exec banList.add name %server_lastteamkiller[%p%]% seconds 3600 BannedForPunishedTeamkills;Log %server_lastteamkiller[%p%]% banned for excessive teamkilling On Say;Text !punish,!p;If %server_lastteamkiller[%p%]% != 0;Set %server_lastteamkiller[%p%]% 0 On Say;Text !forgive,!f;If %server_lastteamkiller[%p%]% != 0;PlayerSay %server_lastteamkiller[%p%]% has been forgiven for teamkilling;Set %server_lastteamkiller[%p%]% 0 NOT WORKING * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by Talzac*: Hi I am using this code:############################################# ############ # Teamkill Punisher v1.1 # Original Author ty_ger07 # Enhancements by russel5 ################################################## ####### On Spawn;ServerFirst;Set %ini_punish% 0 On TeamKill;PlayerSay %p% you TEAMKILLED %v%. Watch your fire! This is your %c% victim. On TeamKill;VictimSay %v%: !punish or !forgive # Team Kill Tracking Rulz On TeamKill;Set %server_lastteamkill[%p%]% %v% On TeamKill;Set %server_lastteamkiller[%v%]% %p% # Team Kill Punish Rulz On Say;Text !punish;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: could not find a recent team kill to punish. On Say;Text !punish;If %server_lastteamkiller[%p%]% != 0 Incr %ini_punish_count[%server_lastteamkiller[%p%]%]% If %ini_punish_count[%p%]% == 9;kick %p% You have been kicked for team killing.;Set %ini_punish_count[%p%]% 0 TargetPlayer %server_lastteamkiller[%p%]%;TargetAction PlayerSay %t% killed for team killing.;TargetAction Kill;TargetConfirm;Set %server_lastteamkiller[%p%]% 0 # Team Kill Forgive Rulz On Say;Text !forgive;If %server_lastteamkiller[%p%]% == 0;PlayerSay %p%: could not find a recent team kill to forgive. On Say;Text !forgive;If %server_lastteamkiller[%p%]% != 0;TargetPlayer %server_lastteamkiller[%p%]%;Set %server_lastteamkill[%server_lastteamkiller[%p%]%]% 0;TargetAction PlayerSay %t% was forgiven by %p%.;Set %server_lastteamkiller[%p%]% 0 #Leave On Leave;Set %ini_punish_count[%p%]% 0 But I do not want to kill on first punish? How can I get the code to send a warning to the user on the first TK Warning next punish you will be KILLED for TK? I want to give the people one free card? I have tried to modify this but I can not get it to work.... Can some one please help me? Thanks * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by SirHitman*: Well iv kinda give up on this as there dont seem to be anyone who knows how to fix the issues. The teamkill counter seems to be separat for each victim of that teamkilller. What iv tinkered with the script to add some more features while waiting to see if someone knows a fix to the issues in my previous post. Teamkiller can forgive himself a maximum of 2 times by saying sorry (per round) Each player has 3 punishes per round (will be given more for each !forgive (where other action has not already been taken)) Victim will forgive teamkiller if he starts swearing (if he then tries to !punish it counts towards this players "3 punishes" limit). If victim tries to !p/!f after action taken he will get appropriate message (forgiven by sorry/swearing or no teamkiller found) If the victim is teamkilled by the same teamkiller 2 times in a row (not counted if !forgive or swearing) the teamkiller is @kill(ed) Removed the code as it is obviously broken, the above can be seen as my wish on how I want it to work. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by Talzac*: Well iv kinda give up on this as there dont seem to be anyone who knows how to fix the issues. The teamkill counter seems to be separat for each victim of that teamkilller. What iv tinkered with the script to add some more features while waiting to see if someone knows a fix to the issues in my previous post. Teamkiller can forgive himself a maximum of 2 times by saying sorry (per round) Each player has 3 punishes per round (will be given more for each !forgive (where other action has not already been taken)) Victim will forgive teamkiller if he starts swearing (if he then tries to !punish it counts towards this players "3 punishes" limit). If victim tries to !p/!f after action taken he will get appropriate message (forgiven by sorry/swearing or no teamkiller found) If the victim is teamkilled by the same teamkiller 2 times in a row (not counted if !forgive or swearing) the teamkiller is @kill(ed) /// NOT TESTED #### Teamkill Announcement On TeamKill;PlayerSay You just teamkilled %v%, watch your fire! On TeamKill;VictimSay !f or !forgive / !p or !punish %p% for teamkilling On TeamKill;Set %server_lastteamkiller[%v%]% %p% On TeamKill;Set %server_lastteamkill[%p%]% %v% ##### Auto Forget ## Victim was killed (suicide or by enemy) without !p/f action so teamkiller was auto forgiven (TK not counted towards @kill) On Kill; Set %server_lastteamkiller[%v%]% 0;Set %PreviousTeamkiller[%p%]% 0 ## Victim starts swearing so teamkiller is forgiven (TK not counted towards @kill) On Say; Text retard,idiot,moron,stupid; If %server_lastteamkiller[%p%]% != 0;Set %PreviousTeamkiller[%p%]% 0; Set %server_lastteamkiller[%p%]% 1 ## Teamkiller forgives himself, unless he have done so 2 times already (TK still counts towards @kill) On Say; Text sorry,sry; If %sorry[%p%]% On Say; Text sorry,sry; If %sorry[%p%]% >= 3; PlayerSay You cant forgive yourself anymore ##### Actions On Say;Text !punish,!p; If %server_lastteamkiller[%p%]% == 0; PlayerSay There is no teamkiller to Punish On Say;Text !forgive,!f; If %server_lastteamkiller[%p%]% == 0; PlayerSay There is no teamkiller to Forgive On Say;Text !punish,!p,!forgive,!f; If %server_lastteamkiller[%p%]% == 1; PlayerSay Your teamkiller was forgiven because of your bad language; Incr %punish[%p%]%; Set %server_lastteamkiller[%p%]% 0 On Say;Text !punish,!p,!forgive,!f; If %server_lastteamkiller[%p%]% == 2; PlayerSay Your teamkiller was forgiven because he apologized; Set %server_lastteamkiller[%p%]% 0 ## Victim out of punishes, teamkiller is forgiven (TK still counts towards @kill) On Say;Text !punish,!p;If %punish[%p%]% >= 3; PlayerSay You have dealt out enough !punish for this round, teamkiller is forgiven. Maybe your should try to !forgive once in a while_; Set %PreviousTeamkiller[%p%]% %server_lastteamkiller[%p%]%; Set %server_lastteamkiller[%p%]% 0 ## Victim is killed by same teamkiller and did not forgive last time, Teamkiller is @Kill(ed) On Say;Text !punish,!p; If %server_lastteamkiller[%p%]% == %PreviousTeamkiller[%p%]%; TargetPlayer %server_lastteamkiller[%p%]%; TargetAction Kill;TargetConfirm; PlayerSay %server_lastteamkiller[%p%]% was killed for teamkilling you multiple times in a row; Log %server_lastteamkiller[%p%]% was killed for teamkilling %p% multiple times in a row ## Victim punishes, Victim punish count is increased, Teamkillers Punishments count is increased (TK counts towards @kill) On Say;Text !punish,!p; If %server_lastteamkiller[%p%]% != 0; Incr %punish[%p%]%; Incr %punishments[%server_lastteamkiller[%p%]%]%; PlayerSay %server_lastteamkiller[%p%]% has been punished for teamkilling; Log %p% punished teamkiller %server_lastteamkiller[%p%]% punishcount %punishments[%server_lastteamkiller[%p%]%]% ## Teamkilled banned if Punishments Count is to high On Say;Text !punish,!p; If %punishments[%server_lastteamkiller[%p%]%]% >= 5; Say %server_lastteamkiller[%p%]% has been banned for 60 minutes for excessive teamkilling; Exec banList.add name %server_lastteamkiller[%p%]% seconds 3600 BannedForPunishedTeamkills; Log %server_lastteamkiller[%p%]% banned for excessive teamkilling ## Continuing ## Victim punishes resetting variables so multiple actions cant be taken On Say;Text !punish,!p; If %server_lastteamkiller[%p%]% != 0; Set %PreviousTeamkiller[%p%]% %server_lastteamkiller[%p%]%; Set %server_lastteamkiller[%p%]% 0 ## Victim forgives, also giving the Victim another Punish (TK not counted towards @kill) On Say;Text !forgive,!f; If %server_lastteamkiller[%p%]% != 0; Decr %punish[%p%]%; PlayerSay %server_lastteamkiller[%p%]% has been forgiven for teamkilling; Set %server_lastteamkiller[%p%]% 0; Set %PreviousTeamkiller[%p%]% 0 /// NOT TESTED HiI am testing your code, it seems that when the player is sorry and he can not be sorry any more he is not killed on TK when he says he is sorry again, but there is text saying he was killed. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by Talzac*: I have now tested it some more, he says sorry: and get the message You cant forgive yourself anymore But he his not killed on punish. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by Talzac*: it seems that it does not have to do with the sorry...it just stopped killing on punish I do not know why... * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by Talzac*: there is some thing that is not working with the team killing multiple times in a row? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by SirHitman*: Ok well then something is broken i just dont know what and why. Ill just remove the code so people dont try to use broken stuff. Have anyone tested the punish.txt sent with the plugin? I started to look at the punish script they send with the plug-in and realize i apparently dont understand how any of it works. According to me it checks if server_lastteamkiller[Victim] is not 0 (thereby has the value of the teamkiller) actually I dont even think it would continue from here without a "+" first on the next line Then it increases the teamkillers punish counter Then it bans the victim if he has a punish counter of 4 It then kills the teamkiller * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by Talzac*: Hi, Can we modify your code so that it kills every time? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 9, 2013 Author Share Posted December 9, 2013 Originally Posted by Talzac*: ## Victim is killed by same teamkiller and did not forgive last time, Teamkiller is @Kill(ed) On Say;Text !punish,!p; If %server_lastteamkiller[%p%]% == %PreviousTeamkiller[%p%]%; TargetPlayer %server_lastteamkiller[%p%]%; TargetAction Kill;TargetConfirm; PlayerSay %server_lastteamkiller[%p%]% was killed for teamkilling you multiple times in a row; Log %server_lastteamkiller[%p%]% was killed for teamkilling %p% multiple times in a row ## Victim punishes, Victim punish count is increased, Teamkillers Punishments count is increased (TK counts towards @kill) On Say;Text !punish,!p; If %server_lastteamkiller[%p%]% != 0; Incr %punish[%p%]%; Incr %punishments[%server_lastteamkiller[%p%]%]%; PlayerSay %server_lastteamkiller[%p%]% has been punished for teamkilling; Log %p% punished teamkiller %server_lastteamkiller[%p%]% punishcount %punishments[%server_lastteamkiller[%p%]%]% * Restored post. It could be that the author is no longer active. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.