Jump to content

!punish and !forgive rules for PRoConRulz plugin.


ImportBot

Recommended Posts

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
  • Replies 108
  • Created
  • Last Reply

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

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 :smile:

so if still someone needs something like this, feel free to use :smile:

* Restored post. It could be that the author is no longer active.
Link to comment

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 :smile:

so if still someone needs something like this, feel free to use :smile:

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

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 :smile:

* Restored post. It could be that the author is no longer active.
Link to comment

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

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

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
  • 2 weeks later...

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

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

 

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

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

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

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

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

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

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

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

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

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

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

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

Hi

I 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

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

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

Archived

This topic is now archived and is closed to further replies.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.