Jump to content

ProconRulz V44j1 - weapon limits and other event-triggered admin actions


ColColonCleaner

Recommended Posts

Originally Posted by BuRockK*:

 

try this:

 

Code:

On Kill;Not Damage SniperRifle; Not Weapon dlSHTR; Weapon U_M82A3_CQB;Weapon U_SR338;
	if %c% == 3; log %p% kicked. 3rd trigger; kick "kicked for not following rules for the 3rd time"
	if %c% == 2; log %p% killed. 2nd trigger; PlayerSay %p% This is your 2nd time not following rules, next time you will be kicked;kill
	if %c% == 1; Log %p% killed. 1st trigger; PlayerSay %p% Only Bolt Sniper and Phantom Bow are allowed.; kill
This rule will trigger if anyone who kills another player with any weapon other than a sniper rifle or a bow.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

try this:

 

Code:

On Kill;Not Damage SniperRifle; Not Weapon dlSHTR; Weapon U_M82A3_CQB;Weapon U_SR338;
	if %c% == 3; log %p% kicked. 3rd trigger; kick "kicked for not following rules for the 3rd time"
	if %c% == 2; log %p% killed. 2nd trigger; PlayerSay %p% This is your 2nd time not following rules, next time you will be kicked;kill
	if %c% == 1; Log %p% killed. 1st trigger; PlayerSay %p% Only Bolt Sniper and Phantom Bow are allowed.; kill
This rule will trigger if anyone who kills another player with any weapon other than a sniper rifle or a bow.
hmm, interesting.

only 1 question, where is that log written?

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

Originally Posted by spatieman*:

 

tirred that players kill them self the whole time with grenades,C4, m320 and other stuff just becouse they are to lame to use the suicide button in the menu ?

below the solution for it.

 

The reset params are used when a player joins ,so that his suicide counter is zero again.

on map changed, map reloads.

 

Code:

# reset parameters
on join;If %ini_punish_suicide[%p%]% >= 1;Set %ini_punish_suicide[%p%]% 0
on spawn;playerfirst;If %ini_punish_suicide[%p%]% >= 1;Set %ini_punish_suicide[%p%]% 0
the stuff below is self explaining....

Code:

############### extended punish kill ###############
On suicide;Weapon Weapons/Gadgets/C4/C4,m67,Weapons/Gadgets/Claymore/Claymore,m320,M15&AT&Mine,crossbow
Incr %ini_punish_suicide[%p%]%
If %ini_punish_suicide[%p%]% >= 7;Set %ini_punish_suicide[%p%]% 1
If %ini_punish_suicide[%p%]% == 1;yell 5 %p% killed him self for the 1st time (1/5);playersay warning 1/5 dont kill your self
If %ini_punish_suicide[%p%]% == 2;yell 5 %p% killed him self for the 2nd time (2/5);playersay warning 2/5 dont kill your self
If %ini_punish_suicide[%p%]% == 3;yell 5 %p% killed him self for the 3th time (3/5);playersay warning 3/5 dont kill your self,3 more and you get kicked
If %ini_punish_suicide[%p%]% == 4;yell 5 %p% killed him self for the 4th time (4/5);playersay warning 4/5 dont kill your self,2 more and you get kicked
If %ini_punish_suicide[%p%]% == 5;yell 5 %p% killed him self for the last time,next = kick (5/5);playersay warning 5/5 dont kill your self,1 more and you get kicked
If %ini_punish_suicide[%p%]% == 6;yell 5 %p% got kicked for being so stupid to kill him self for 6 times;kick this is not a suicide server
On suicide;damage projectileexplosive;not weapon m320
Incr %ini_punish_suicide[%p%]%
If %ini_punish_suicide[%p%]% >= 7;Set %ini_punish_suicide[%p%]% 1
If %ini_punish_suicide[%p%]% == 1;yell 5 %p% killed him self for the 1st time (1/5);playersay warning 1/5 dont kill your self
If %ini_punish_suicide[%p%]% == 2;yell 5 %p% killed him self for the 2nd time (2/5);playersay warning 2/5 dont kill your self
If %ini_punish_suicide[%p%]% == 3;yell 5 %p% killed him self for the 3th time (3/5);playersay warning 3/5 dont kill your self,3 more and you get kicked
If %ini_punish_suicide[%p%]% == 4;yell 5 %p% killed him self for the 4th time (4/5);playersay warning 4/5 dont kill your self,2 more and you get kicked
If %ini_punish_suicide[%p%]% == 5;yell 5 %p% killed him self for the last time,next = kick (5/5);playersay warning 5/5 dont kill your self,1 more and you get kicked
If %ini_punish_suicide[%p%]% == 6;yell 5 %p% got kicked for being so stupid to kill him self for 6 times;kick this is not a suicide server
### END OF LINE ###
a proconrulez restart set also the params back to zero.....

but normaly we dont restart it every 5 minutes, hehe..

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

Originally Posted by BuRockK*:

 

You should also consider using "set %ini_punish% 0" on an "On Round" event to reset params on every new round. Reason is because there will always be random players that will join your server, trigger this code maybe couple times, leave before round ends and never come back again.

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

Originally Posted by BuRockK*:

 

1st code resets the punish count to zero, so, when join, kill self, and leave, and rejoin, will reset it to zero again.

if that player never joins again, that ini variable for that specific player will stay forever.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

so _, mij ini is huge anyway's ,and every 2 months i stop procon complete to make a database backup.

so, why not cleaning out the ini to..

Its your decision, you can leave it the way it is if you want
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Proteas*:

 

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerCount 5;Log %p%banned (No Shotguns/M320/Claymores);Ban %p% No Shotguns/M320/Claymores

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerCount 3;Log %p% kicked (No Shotguns/M320/Claymores);Kick %p% No Shotguns/M320/Claymores

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerSay %p% No Shotguns/M320/Claymores;Kill 100

 

I take this back..

ProconRulz: Warning, damage U_Claymore not found in Procon (but you can still use the key in ProconRulz)

 

How I will remove the claymores from the server but not the grenades ?

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

Originally Posted by s1ngular1ty*:

 

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerCount 5;Log %p%banned (No Shotguns/M320/Claymores);Ban %p% No Shotguns/M320/Claymores

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerCount 3;Log %p% kicked (No Shotguns/M320/Claymores);Kick %p% No Shotguns/M320/Claymores

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerSay %p% No Shotguns/M320/Claymores;Kill 100

 

I take this back..

ProconRulz: Warning, damage U_Claymore not found in Procon (but you can still use the key in ProconRulz)

 

How I will remove the claymores from the server but not the grenades ?

You could try my plugin. It is designed to limit weapons easily with no coding required.

 

myrcon.net/.../simple-weapon-limiter-v1000

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

Originally Posted by BuRockK*:

 

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerCount 5;Log %p%banned (No Shotguns/M320/Claymores);Ban %p% No Shotguns/M320/Claymores

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerCount 3;Log %p% kicked (No Shotguns/M320/Claymores);Kick %p% No Shotguns/M320/Claymores

On Kill;Damage ProjectileExplosive,Shotgun,U_Claymore;PlayerSay %p% No Shotguns/M320/Claymores;Kill 100

 

I take this back..

ProconRulz: Warning, damage U_Claymore not found in Procon (but you can still use the key in ProconRulz)

 

How I will remove the claymores from the server but not the grenades ?

You remove the "ProjectileExplosive" part. But you will also remove rocket launcher usage restrictions.

 

As an alternative and suggested, you can use s1ngular1ty's plugin with ease to make weapon restriction rules

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

Originally Posted by Hodor*:

 

Code:

On Spawn;PlayerFirst;Set %server_kills[%p%]% 0;Set %server_deaths[%p%]% 0
On Kill;Incr %server_kills[%p%]%
On Spawn;PlayerCount 1;Incr %server_deaths[%p%]%

On Say;Text !test;TargetPlayer
     PlayerSay ::: Kills: %server_kills[%t%]% | Deaths: %server_deaths[%t%]%
Hey guys, sometimes the numbers shown to player do not match the actual figures via the TAB/Scoreboard. I think this is because of the assistance in BF4. It is possible somehow get the data Kills/Deaths through Scoreboard(TAB)? Or somehow correct inaccuracies_:huh:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

Code:

On Spawn;PlayerFirst;Set %server_kills[%p%]% 0;Set %server_deaths[%p%]% 0
On Kill;Incr %server_kills[%p%]%
On Spawn;PlayerCount 1;Incr %server_deaths[%p%]%

On Say;Text !test;TargetPlayer
     PlayerSay ::: Kills: %server_kills[%t%]% | Deaths: %server_deaths[%t%]%
Hey guys, sometimes the numbers shown to player do not match the actual figures via the TAB/Scoreboard. I think this is because of the assistance in BF4. It is possible somehow get the data Kills/Deaths through Scoreboard(TAB)? Or somehow correct inaccuracies_:huh:
"On Spawn;PlayerCount 1;Incr %server_deaths[%p%]%" this only increases the variable once on the second time player spawns.

 

use this to record kills and deaths:

 

On Kill; Incr %server_kills[%p%]%; Incr %server_deaths[%v%]%

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

Originally Posted by Hodor*:

 

"On Spawn;PlayerCount 1;Incr %server_deaths[%p%]%" this only increases the variable once on the second time player spawns.

 

use this to record kills and deaths:

 

On Kill; Incr %server_kills[%p%]%; Incr %server_deaths[%v%]%

What about assistance in BF4? You could not to kill a player, but just to inflict 75% damage, and the game will count you as kill assist and it is considered as kill. So in Scoreboard you will have 25 kills but in !test you will have 24 kills.

 

And about Code:

Incr %server_deaths[%v%]%
if you was revived after kill - the death will remain in the record :sad:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

What about assistance in BF4? You could not to kill a player, but just to inflict 75% damage, and the game will count you as kill assist and it is considered as kill. So in Scoreboard you will have 25 kills but in !test you will have 24 kills.

 

And about Code:

Incr %server_deaths[%v%]%
if you was revived after kill - the death will remain in the record :sad:
First, im sorry for misleading before, "On Spawn;PlayerCount 1;Incr %server_deaths[%p%]%" will actually increase "%server_deaths[%p%]%" variable once every trigger. But the code ive given for replacing this will also work

 

For the BF4 kill counts, i dont think you can sync this script with actual kill/death numbers of a player. Certainly cant set plugin to "watch" for those "counted as kill" messages from server.

 

Maybe some other plugins can do this in a better way

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

Originally Posted by 66LOST99*:

 

could there be an option to have certain weapons unpublishable (in a whitelist), reason is I know claymores are a looked upon as stupid in hardcore but in my opinion if you just run around like a chicken and dont open your eyes then its your fault for running into an team mates claymore (go play softcore). The thing has a glowing icon and the amount of times I have layed a claymore to protect my back, someone just spawns on me and runs off right into it when it clear as day is countless. Then they punish you because they are blind!!!

Agreed! :cool:

hi every one.

this is something that I have been looking for.

is there any one who got something like this to work.

actually I think the person that runs/drives over friendly claymores, mines... should have the tk against them

that way they might learn to look where they go :ohmy:

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

Originally Posted by BuRockK*:

 

You cant "force" someone to be "smart" using plugins. The solutions you guys come up with is just gonna ruin the meaning of hardcore mode and you would lose players with a rule that punishes players who gets killed from a FF

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

Originally Posted by 66LOST99*:

 

rule that punishes players who gets killed from a FF

I don't really want to do that.

I just don't want players to be kicked for someone else's stupidity.

 

(but a scenario where I think it should be so is on a server with !p !f

I drive over your mine and then !punish you because I was stupid.

then I should be killed for being a......)

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

Originally Posted by BuRockK*:

 

I don't really want to do that.

I just don't want players to be kicked for someone else's stupidity.

 

(but a scenario where I think it should be so is on a server with !p !f

I drive over your mine and then !punish you because I was stupid.

then I should be killed for being a......)

Okay i meant having punishments on teamkill idea. Its what hardcore mode is about. You take damage from teammates. But thats just me.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by 66LOST99*:

 

Okay i meant having punishments on teamkill idea. Its what hardcore mode is about. You take damage from teammates. But thats just me.

thanx and yes I agree with you one hundred present. we don't have a punish system and don't want it either on our server. but as you know if 5 people run over or drive over strategically placed ordinance, then you are going to be kicked off the server.

 

the second part is for the other servers that do !punish (I hope they read it)

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

Originally Posted by spatieman*:

 

ok, i am confussed, i readed the manual, thought ,let see for some code optimizing..

 

THIS stuff is see'n as ONE rule entry. and does work properly

Code:

On Round;Set %server_rst% %seconds%
+On Say;Text !roundtime,!rt
+	Set %server_sec.0% %seconds% - %server_rst%
+	Set %server_min.0% %server_sec.0% / 60
+	Set %server_hour.0% %server_min.0% / 60
+	PlayerSay Round time: %hms% minutes
+	PlayerYell 5 Round time: %hms% minutes;
thats ok, saves rule line to process

 

 

But this stuff

Code:

On teamkill
+Incr %ini_teamkill_dead[%p%]%
+If %ini_teamkill_dead[%p%]% >= 7;Set %ini_teamkill_dead[%p%]% 1
+If %ini_teamkill_dead[%p%]% == 1;yell 5 %p% teamkilled for the 1st time (1/5);playersay warning 1/5 dont kill teammates
+If %ini_teamkill_dead[%p%]% == 2;yell 5 %p% teamkilled for the 2nd time (2/5);playersay warning 2/5 dont kill teammates
+If %ini_teamkill_dead[%p%]% == 3;yell 5 %p% teamkilled for the 3th time (3/5);playersay warning 3/5 dont kill teammates,3 more and you get kicked
+If %ini_teamkill_dead[%p%]% == 4;yell 5 %p% teamkilled for the 4th time (4/5);playersay warning 4/5 dont kill teammates,2 more and you get kicked
+If %ini_teamkill_dead[%p%]% == 5;yell 5 %p% teamkilled for the last time,next = kick (5/5);playersay warning 5/5 dont kill teammates,1 more and you get kicked
+If %ini_teamkill_dead[%p%]% == 6;yell 5 %p% got kicked for being so stupid to teamkill for 6 times;kick this is not a teamkill server;
is also see'n as 1 rule line, but does not work at all

unless i remove the +line in front of it..

 

so, what is going on here, what do i wrong.

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

Originally Posted by BuRockK*:

 

ok, i am confussed, i readed the manual, thought ,let see for some code optimizing..

 

THIS stuff is see'n as ONE rule entry. and does work properly

Code:

On Round;Set %server_rst% %seconds%
+On Say;Text !roundtime,!rt
+	Set %server_sec.0% %seconds% - %server_rst%
+	Set %server_min.0% %server_sec.0% / 60
+	Set %server_hour.0% %server_min.0% / 60
+	PlayerSay Round time: %hms% minutes
+	PlayerYell 5 Round time: %hms% minutes;
thats ok, saves rule line to process

 

 

But this stuff

Code:

On teamkill
+Incr %ini_teamkill_dead[%p%]%
+If %ini_teamkill_dead[%p%]% >= 7;Set %ini_teamkill_dead[%p%]% 1
+If %ini_teamkill_dead[%p%]% == 1;yell 5 %p% teamkilled for the 1st time (1/5);playersay warning 1/5 dont kill teammates
+If %ini_teamkill_dead[%p%]% == 2;yell 5 %p% teamkilled for the 2nd time (2/5);playersay warning 2/5 dont kill teammates
+If %ini_teamkill_dead[%p%]% == 3;yell 5 %p% teamkilled for the 3th time (3/5);playersay warning 3/5 dont kill teammates,3 more and you get kicked
+If %ini_teamkill_dead[%p%]% == 4;yell 5 %p% teamkilled for the 4th time (4/5);playersay warning 4/5 dont kill teammates,2 more and you get kicked
+If %ini_teamkill_dead[%p%]% == 5;yell 5 %p% teamkilled for the last time,next = kick (5/5);playersay warning 5/5 dont kill teammates,1 more and you get kicked
+If %ini_teamkill_dead[%p%]% == 6;yell 5 %p% got kicked for being so stupid to teamkill for 6 times;kick this is not a teamkill server;
is also see'n as 1 rule line, but does not work at all

unless i remove the +line in front of it..

 

so, what is going on here, what do i wrong.

This should not work because you cant trigger an On Say event inside an On Round event in proconrulez with an example like this. Im not sure how this code would be working

Code:

On Round;Set %server_rst% %seconds%
+On Say;Text !roundtime,!rt
+	Set %server_sec.0% %seconds% - %server_rst%
+	Set %server_min.0% %server_sec.0% / 60
+	Set %server_hour.0% %server_min.0% / 60
+	PlayerSay Round time: %hms% minutes
+	PlayerYell 5 Round time: %hms% minutes;
This should work:

Code:

On teamkill; Incr %ini_teamkill_dead[%p%]%
+    If %ini_teamkill_dead[%p%]% >= 7;Set %ini_teamkill_dead[%p%]% 1
+    If %ini_teamkill_dead[%p%]% == 1;yell 5 %p% teamkilled for the 1st time (1/5);playersay warning 1/5 dont kill teammates
+    If %ini_teamkill_dead[%p%]% == 2;yell 5 %p% teamkilled for the 2nd time (2/5);playersay warning 2/5 dont kill teammates
+    If %ini_teamkill_dead[%p%]% == 3;yell 5 %p% teamkilled for the 3th time (3/5);playersay warning 3/5 dont kill teammates,3 more and you get kicked
+    If %ini_teamkill_dead[%p%]% == 4;yell 5 %p% teamkilled for the 4th time (4/5);playersay warning 4/5 dont kill teammates,2 more and you get kicked
+    If %ini_teamkill_dead[%p%]% == 5;yell 5 %p% teamkilled for the last time,next = kick (5/5);playersay warning 5/5 dont kill teammates,1 more and you get kicked
+    If %ini_teamkill_dead[%p%]% == 6;yell 5 %p% got kicked for being so stupid to teamkill for 6 times;kick this is not a teamkill server;
Paste the errors you get in plugin console that show up when you load the rulez, so we can know more about the problem
* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.