Jump to content

insane limits knife and pistols only


ImportBot

Recommended Posts

  • 2 weeks later...
  • Replies 103
  • Created
  • Last Reply
  • 4 weeks later...

Originally Posted by swift*:

 

@PapaCharlie9 I'm almost scared to ask a question without being flamed i'm lost and i read over and over but i'm lost we want a pistol and knife server on bf4 i got proconrulz and i enter the codes in rulz.txt filenames and some things work am i putting it in the wrong area? or using the wrong code?

double count = limit.Activations(player.Name);

 

if (count == 1)

{

plugin.KillPlayer(player.Name);

plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, this is a pistol only server, do not use %w_n% again! Next time kick"));

}

 

else if (count == 2)

{

plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on pistol only server"));

plugin.PRoConChat(plugin.R("%p_n% has been kicked for sniping on rush."));

}

 

return false;

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

Originally Posted by TMiland*:

 

@PapaCharlie9 I'm almost scared to ask a question without being flamed i'm lost and i read over and over but i'm lost we want a pistol and knife server on bf4 i got proconrulz and i enter the codes in rulz.txt filenames and some things work am i putting it in the wrong area? or using the wrong code?

double count = limit.Activations(player.Name);

 

if (count == 1)

{

plugin.KillPlayer(player.Name);

plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, this is a pistol only server, do not use %w_n% again! Next time kick"));

}

 

else if (count == 2)

{

plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on pistol only server"));

plugin.PRoConChat(plugin.R("%p_n% has been kicked for sniping on rush."));

}

 

return false;

Hi, you need to use this code in Insane Limits, it wont work in Proconruz.

 

Here's what i use for my popular Knifes & Pistols only server:

 

/* Set the limit to evaluate OnKill and set the Action to None.

 

Set first_check to this Expression: */

 

Code:

((kill.Category != "Handgun" || Regex.Match(kill.Weapon, @"(M93R|Glock18|SerbuShorty)", RegexOptions.IgnoreCase).Success) 
&& !(kill.Category == "Suicide" || kill.Category == "Melee" || kill.Category == "Nonlethal" || kill.Category == "None"))
/*

Set second_check to this Code:

*/

Code:

String kCounter = killer.Name + "_TreatAsOne_Count";
TimeSpan time = TimeSpan.FromSeconds(3); // Activations within 3 seconds count as 1

int warnings = 0;
if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter);
    
/*
The first time through, warnings is zero. Whether this is an isolated
activation or the first of a sequence of activations in a short period
of time, do something on this first time through.
*/
String msg = "none";
if (warnings == 0) {
        msg = plugin.R("ATTENTION %k_n%! Do not use %w_n%! THIS IS KNIFES & PISTOLS ONLY!"); // First warning message
        plugin.ServerCommand("admin.say", msg, "player", killer.Name);
        plugin.SendPlayerYell(killer.Name, msg, 20);
        plugin.PRoConChat("ADMIN > " + msg);
		plugin.SendGlobalMessage(msg);
        plugin.KillPlayer(killer.Name, 3);
		plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName);

        server.Data.setInt(kCounter, warnings+1);
        return false;
}

/*
The second and subsequent times through, check to make sure we are not
getting multiple activations in a short period of time. Ignore if
less than the time span required.
*/

if (limit.Activations(killer.Name, time) > 1) return false;

/*
We get here only if there was exactly one activation in the time span
*/

if (warnings == 1) {
        msg = plugin.R("FINAL WARNING %k_n%! Do not use %w_n%! Next Violation is a KICK!"); // Second warning message
        plugin.ServerCommand("admin.say", msg, "player", killer.Name);
        plugin.SendPlayerYell(killer.Name, msg, 20);
        plugin.PRoConChat("ADMIN > " + msg);
        plugin.KillPlayer(killer.Name, 3);
		plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName);

} else if (warnings == 2) {
        msg = plugin.R("Kicking %k_n% for ignoring warnings and killing with %w_n%!");
        plugin.SendGlobalMessage(msg);
        plugin.PRoConChat("ADMIN > " + msg);
        plugin.PRoConEvent(msg, "Insane Limits");
        plugin.KickPlayerWithMessage(killer.Name, msg);
} else if (warnings > 2) {
        msg = plugin.R("TBANNING %k_n% for 30mins. Still using PROHIBITED WEAPONS after being kicked!");
        plugin.SendGlobalMessage(msg);
        plugin.PRoConChat("ADMIN > " + msg);
        plugin.PRoConEvent(msg, "Insane Limits");
        plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, killer.Name, 30 /* minutes */, msg);
}
server.Data.setInt(kCounter, warnings+1);
return false;
This will prohibit M93R|Glock18|SerbuShorty and allow the kill categories Suicide, Melee, Nonlethal and None. :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

@PapaCharlie9 I'm almost scared to ask a question without being flamed

No need to be scared, as long as you don't post the same question in 2 or 3 different forums and send me a PM with the same question.

 

Pick which plugin you want to use, Procon Rulz or Insane Limits. Then, ask your question in the appropriate thread. If you ask here, you are asking about Insane Limits, so any reference to Procon Rulz is just wasting everyone's time, including yours.

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

Originally Posted by swift*:

 

thank you so much i racked my brain trying to figure out..i was putting it on proconRulz i didnt know i could of used Insane Limits thank you again TMiland

:smile:

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

Originally Posted by VBK-Clan*:

 

Hi, Papacharlie thanks for great plug ins

I need for our 32 slot pistol and knife server code

but wants to be kicked in g18 93R and shorty and all other weapons people immediately

defi and razor should be allowed can you please help?

and yell after first spawn rules etc..

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

Originally Posted by TMiland*:

 

Hi, Papacharlie thanks for great plug ins

I need for our 32 slot pistol and knife server code

but wants to be kicked in g18 93R and shorty and all other weapons people immediately

defi and razor should be allowed can you please help?

and yell after first spawn rules etc..

If you see 4 posts above yours, you have it! :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by hepl2000*:

 

i am in bf3 procon using proconrulz i need a pistol melee only but with no automatic pistos(g18, m93r) i didn't find a script for bf3 only for bf4, but i found this code from a rusan page, it works fine but i want to kill/kick wit g18 and 93R pistol use. I add

 

Code:

# kill/kick for using G18 & 93R (PART NOT WORKING)
On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS
On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100
but did not work... here the complete script anybody can tellme where is the error?

 

Code:

#BF3 TEST SCRICPT PROCONRULZ only pistols/melee/defib/repair tool (no g18 & 93r)

On Kill;TeamFirst;Say %p%: first %pt% kill against %v%. 
On Kill;Weapon Weapons/Knife/Knife,Melee;ServerFirst;Say %p%: first knife against %v%. 
On Kill;Headshot;ServerFirst;Say %p%: first headshot against %v%. 
On Kill;Headshot;Rate 14 60;Ban %p% Aimbot banned by codekillers.net; 

# Melee Rule 
On Kill;Damage Melee;Say %p% took the soul of %v%, %v% should be ashamed. 

# G18 y 93R
On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS
On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100 

On Kill;Not Damage Melee;Not Damage Handgun;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols only 
On Kill;Not Damage Melee;Not Damage Handgun;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 
On Kill;Damage Explosive;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols&knife only 
On Kill;Damage Explosive;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 

On Kill;Damage ProjectileExplosive;PlayerCount 2;Log %p% banned;Ban %p% pistol & knife only! 
On Kill;Damage ProjectileExplosive;PlayerSay %p% Pistol & Knife Only!;Kill 100 


On Kill;Weapon Repair&Tool;Say %v% got burned by %p% (%w%) 
On Kill;Weapon Defib;Say %v% was shockingly surprised by %p% (%w%) 


# Claymore test 
#On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;PlayerSay %p% No Claymores!!!; 

On Kill;Weapon Weapons/Gadgets/Claymore/Claymore 
PlayerCount 5;PlayerSay %p% You have NO claymore kills left, you have been punished!;Say %p% Has NO claymore kills left and has been punished!;Kill 
PlayerCount 4;PlayerSay %p% You have NO claymore kills left; 
PlayerCount 3;PlayerSay %p% You have 1 claymore kills left; 
PlayerCount 2;PlayerSay %p% You have 2 claymore kills left; 
PlayerCount 1;PlayerSay %p% You have 3 claymore kills left; 
PlayerCount 0;PlayerSay %p% You have 4 claymore kills left; 

# Unreal Tournament Kill Streak Announcer by ty_ger07 
#### Announcements of killstreak ending: 
On Kill;If %server_streak[%v%]% >= 5;Say %p% ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% 
On TeamKill;If %server_streak[%v%]% >= 5;Say %p%'s TEAMKILL ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% 
On Suicide;If %server_streak[%p%]% >= 5;Say %p% ENDED their %server_streak[%p%]%-KILL STREAK with a SUICIDE 
#### Reset the player's streak count when they are killed: 
On Kill;Set %server_streak[%v%]% 0 
On TeamKill;Set %server_streak[%v%]% 0 
On Suicide;Set %server_streak[%v%]% 0 
#### Reset killincr to 0 if server_streak is 0 
On Kill;If %server_streak[%p%]% == 0;Set %killincr% 0 
#### Accumulate the kill count for each player in a var %server_streak[playername]% 
On Kill;Incr %killincr%;Incr %server_streak[%p%]%; 
#### Say periodic killstreak messages 
On Kill;If %killincr% == 30;Set %killincr% 25;PlayerSay GodLike! %p% %server_streak[%p%]% KILL STREAK 
On Kill;If %server_streak[%p%]% == 25;PlayerSay GodLike! %p% 25-KILL STREAK 
On Kill;If %server_streak[%p%]% == 20;PlayerSay Unstoppable! %p% 20-KILL STREAK 
On Kill;If %server_streak[%p%]% == 15;PlayerSay Dominating! %p% 15-KILL STREAK 
On Kill;If %server_streak[%p%]% == 10;PlayerSay Rampage! %p% 10-KILL STREAK 
On Kill;If %server_streak[%p%]% == 5;PlayerSay Killing Spree! %p% 5-KILL STREAK 

On Kill;Map Subway;Weapon Roadkill;PlayerCount 5;Log %p% banned for MAV;Ban %p% MAV use 
On Kill;Map Subway;Weapon Roadkill;PlayerCount 3;Log %p% kicked for MAV;Kick %p% MAV use 
On Kill;Map Subway;Weapon Roadkill;PlayerSay %p% no MAV;Kill 100 

On Kill;Weapon Death; 

PlayerCount 32;Say %p% kicked for vehicle kills;Kick kicked for vehicle kills 
PlayerCount 20;Say %p% slayed for vehicle kill %c%/5;Kill 100 
Say %p% - no vehicle kills (#%c%/5)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

i am in bf3 procon using proconrulz i need a pistol melee only but with no automatic pistos(g18, m93r) i didn't find a script for bf3 only for bf4, but i found this code from a rusan page, it works fine but i want to kill/kick wit g18 and 93R pistol use. I add

 

Code:

# kill/kick for using G18 & 93R (PART NOT WORKING)
On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS
On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100
but did not work... here the complete script anybody can tellme where is the error?

 

Code:

#BF3 TEST SCRICPT PROCONRULZ only pistols/melee/defib/repair tool (no g18 & 93r)

On Kill;TeamFirst;Say %p%: first %pt% kill against %v%. 
On Kill;Weapon Weapons/Knife/Knife,Melee;ServerFirst;Say %p%: first knife against %v%. 
On Kill;Headshot;ServerFirst;Say %p%: first headshot against %v%. 
On Kill;Headshot;Rate 14 60;Ban %p% Aimbot banned by codekillers.net; 

# Melee Rule 
On Kill;Damage Melee;Say %p% took the soul of %v%, %v% should be ashamed. 

# G18 y 93R
On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS
On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100 

On Kill;Not Damage Melee;Not Damage Handgun;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols only 
On Kill;Not Damage Melee;Not Damage Handgun;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 
On Kill;Damage Explosive;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols&knife only 
On Kill;Damage Explosive;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 

On Kill;Damage ProjectileExplosive;PlayerCount 2;Log %p% banned;Ban %p% pistol & knife only! 
On Kill;Damage ProjectileExplosive;PlayerSay %p% Pistol & Knife Only!;Kill 100 


On Kill;Weapon Repair&Tool;Say %v% got burned by %p% (%w%) 
On Kill;Weapon Defib;Say %v% was shockingly surprised by %p% (%w%) 


# Claymore test 
#On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;PlayerSay %p% No Claymores!!!; 

On Kill;Weapon Weapons/Gadgets/Claymore/Claymore 
PlayerCount 5;PlayerSay %p% You have NO claymore kills left, you have been punished!;Say %p% Has NO claymore kills left and has been punished!;Kill 
PlayerCount 4;PlayerSay %p% You have NO claymore kills left; 
PlayerCount 3;PlayerSay %p% You have 1 claymore kills left; 
PlayerCount 2;PlayerSay %p% You have 2 claymore kills left; 
PlayerCount 1;PlayerSay %p% You have 3 claymore kills left; 
PlayerCount 0;PlayerSay %p% You have 4 claymore kills left; 

# Unreal Tournament Kill Streak Announcer by ty_ger07 
#### Announcements of killstreak ending: 
On Kill;If %server_streak[%v%]% >= 5;Say %p% ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% 
On TeamKill;If %server_streak[%v%]% >= 5;Say %p%'s TEAMKILL ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% 
On Suicide;If %server_streak[%p%]% >= 5;Say %p% ENDED their %server_streak[%p%]%-KILL STREAK with a SUICIDE 
#### Reset the player's streak count when they are killed: 
On Kill;Set %server_streak[%v%]% 0 
On TeamKill;Set %server_streak[%v%]% 0 
On Suicide;Set %server_streak[%v%]% 0 
#### Reset killincr to 0 if server_streak is 0 
On Kill;If %server_streak[%p%]% == 0;Set %killincr% 0 
#### Accumulate the kill count for each player in a var %server_streak[playername]% 
On Kill;Incr %killincr%;Incr %server_streak[%p%]%; 
#### Say periodic killstreak messages 
On Kill;If %killincr% == 30;Set %killincr% 25;PlayerSay GodLike! %p% %server_streak[%p%]% KILL STREAK 
On Kill;If %server_streak[%p%]% == 25;PlayerSay GodLike! %p% 25-KILL STREAK 
On Kill;If %server_streak[%p%]% == 20;PlayerSay Unstoppable! %p% 20-KILL STREAK 
On Kill;If %server_streak[%p%]% == 15;PlayerSay Dominating! %p% 15-KILL STREAK 
On Kill;If %server_streak[%p%]% == 10;PlayerSay Rampage! %p% 10-KILL STREAK 
On Kill;If %server_streak[%p%]% == 5;PlayerSay Killing Spree! %p% 5-KILL STREAK 

On Kill;Map Subway;Weapon Roadkill;PlayerCount 5;Log %p% banned for MAV;Ban %p% MAV use 
On Kill;Map Subway;Weapon Roadkill;PlayerCount 3;Log %p% kicked for MAV;Kick %p% MAV use 
On Kill;Map Subway;Weapon Roadkill;PlayerSay %p% no MAV;Kill 100 

On Kill;Weapon Death; 

PlayerCount 32;Say %p% kicked for vehicle kills;Kick kicked for vehicle kills 
PlayerCount 20;Say %p% slayed for vehicle kill %c%/5;Kill 100 
Say %p% - no vehicle kills (#%c%/5)
You posted in the wrong thread by mistake. This is an Insane Limits thread, not ProconRulz. You probably meant this one:

 

myrcon.net/.../proconrulz-battlefield-4-pistols-and-melee-script

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

Originally Posted by guapoloko*:

 

Papa9, this is correct? It seems that sometimes stops working.

 

First Check: Expression

Code:

kill.Weapon == "U_M98B" || !Regex.Match(kill.Weapon, @"(U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|U_SW40|U_GLOCK18|U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
Secound Check: Code

Code:

double count = limit.Activations(player.Name);
	
	if (count == 1)
	{
	    plugin.KillPlayer(player.Name);
	    plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, THIS IS A PISTOL ONLY SERVER, DO NOT USE %w_n% AGAIN! NEXT TIME KICK"));
	}
	
	else if (count == 2)
	{
            plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, KICKED YOU FOR USING %w_n% ON PILTOL ONLY SERVER"));
            plugin.PRoConChat(plugin.R("%p_n% WAS KICKED FOR HAVING PROHIBITED WEAPON USED IN SERVER."));
	}

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

Originally Posted by PapaCharlie9*:

 

Papa9, this is correct? It seems that sometimes stops working.

Change second_check to this:

 

Secound Check: Code

Code:

double count = limit.Activations(player.Name);
	
	if (count == 1)
	{
	    plugin.KillPlayer(player.Name);
	    plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, THIS IS A PISTOL ONLY SERVER, DO NOT USE %w_n% AGAIN! NEXT TIME KICK"));
	}
	
	else
	{
            plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, KICKED YOU FOR USING %w_n% ON PILTOL ONLY SERVER"));
            plugin.PRoConChat(plugin.R("%p_n% WAS KICKED FOR HAVING PROHIBITED WEAPON USED IN SERVER."));
	}

 return false;
You could also change first_check to this Expression:

 

Code:

kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by guapoloko*:

 

Papa9, is possible to combine these two expressions:

 

Code:

kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
Code:
(Regex.Match(server.MapFileName, @"(_:MP_Prison|Metro)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(C4|NLAW|RPG7|SMAW|SRAW|M320|M67|V40|Grenade_RGO|MGL|XM25|M34|Claymore|m224|Handflare|Flashbang|M18|M67|V40|M15|SLAM)", RegexOptions.IgnoreCase).Success)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TMiland*:

 

Papa9, is possible to combine these two expressions:

 

Code:

kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
Code:
(Regex.Match(server.MapFileName, @"(_:MP_Prison|Metro)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(C4|NLAW|RPG7|SMAW|SRAW|M320|M67|V40|Grenade_RGO|MGL|XM25|M34|Claymore|m224|Handflare|Flashbang|M18|M67|V40|M15|SLAM)", RegexOptions.IgnoreCase).Success)
Try this:

 

Code:

Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success 
&&  Regex.Match(kill.Category, @"(Handgun|Explosive|Impact)").Success
:smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by guapoloko*:

 

Try this:

 

Code:

Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success 
&&  Regex.Match(kill.Category, @"(Handgun|Explosive|Impact)").Success
:smile:
TMiland, I want to keep the server as guns and knives only, and prohibit explosives.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TMiland*:

 

TMiland, I want to keep the server as guns and knives only, and prohibit explosives.

Then the original limit will work, since only knifes and pistols are allowed.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by guapoloko*:

 

Then the original limit will work, since only knifes and pistols are allowed.

I understand, but the use of artifacts this too unfortunately have no way to prevent the use, only use followed by death.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TMiland*:

 

I understand, but the use of artifacts this too unfortunately have no way to prevent the use, only use followed by death.

I am using this:

 

Code:

((kill.Category != "Handgun" || Regex.Match(kill.Weapon, @"(M93R|Glock18|SerbuShorty)", RegexOptions.IgnoreCase).Success) 
&& !(kill.Category == "Suicide" || kill.Category == "Melee" || kill.Category == "Nonlethal" || kill.Category == "None"))
That should cover exploding barrels and gas tanks, plus some other stuff. :smile:

 

And M93R|Glock18|SerbuShorty is NOT allowed.

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

Originally Posted by guapoloko*:

 

I am using this:

 

Code:

((kill.Category != "Handgun" || Regex.Match(kill.Weapon, @"(M93R|Glock18|SerbuShorty)", RegexOptions.IgnoreCase).Success) 
&& !(kill.Category == "Suicide" || kill.Category == "Melee" || kill.Category == "Nonlethal" || kill.Category == "None"))
That should cover exploding barrels and gas tanks, plus some other stuff. :smile:

 

And M93R|Glock18|SerbuShorty is NOT allowed.

And being released M93R and the Glock 18 as would be the expression?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

TMiland is right, but the maps still need to be combined.

 

Try this:

 

Code:

Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success 
&&  kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by guapoloko*:

 

TMiland is right, but the maps still need to be combined.

 

Try this:

 

Code:

Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success 
&&  kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
Papa9, to map rotation just add the maps "(: MP_Prison | XP0_Metro)"?

 

Thank you for your help TMiland like to know as much as you.

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

Originally Posted by TMiland*:

 

Papa9, to map rotation just add the maps "(: MP_Prison | XP0_Metro)"?

 

Thank you for your help TMiland like to know as much as you.

PC9 is my teacher :biggrin:

 

If you want more maps, add them like this:

 

Code:

(_:MP_Prison|XP0_Metro[b]|MapName3|MapName4[/b])
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Papa9, to map rotation just add the maps "(: MP_Prison | XP0_Metro)"?

When you said you wanted to combine the two expressions, I thought you meant the maps also. What I suggested "try this" above means: For Op. Locker and Metro 2014 only, punish weapons that are not Handgun, Defib, Melee (knife), Suicide, SoldierCollision, DamageArea or Death.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 6 months later...

Originally Posted by p19blo*:

 

im using this to restrict certain weapons on my server when when i add this code

 

Code:

! Regex.Match(kill.Weapon, @"(U_A91|U_ACR|U_AEK971|U_AK12|U_AK5C|U_AKU12|U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_AR160|U_ASVAL|U_AWS|U_Bulldog|U_CBJ-MS|U_CS-LR4|U_CS5|U_CZ805|U_CZ75|U_DesertEagle|U_Defib|EODBot|U_F2000|U_FAMAS|U_Flashbang|U_FN57|U_FY-JS|U_G36C|U_GalilACE|U_GalilACE23|U_GalilACE52|U_GalilACE53|U_Glock18|U_GOL|U_Grenade_RGO|U_HK45C|U_JNG90|U_JS2|U_L85A2|U_L96A1|U_LSAT|U_M16A4|U_M1911|U_M200|U_M240|U_M249|U_M39EBR|U_M40A5|U_M416|U_M4A1|U_M60E4|U_M67|U_M82A3|U_M82A3_CQB|U_M82A3_MED|U_M9|U_M93R|U_M98B|U_MagpulPDR|U_Medkit|U_MG4|U_MK11|U_MP7|U_MP412Rex|U_MP443|U_MTAR21|U_MPX|U_MX4|U_P226|U_P90|U_Pecheneg|U_PortableMedicpack|U_PP2000|U_QBB95|U_QBU88|U_QBZ951|U_QSZ92|U_Repairtool|U_RFB|U_RPK12|U_RPK-74|U_SAR21|U_SCAR-H|U_SCAR-HSV|U_Scorpion|U_Scout|U_SG553LB|U_SKS|U_SR2|U_SR338|U_SRS|U_SteyrAug|U_SV98|U_SVD12|U_SW40|U_Taurus44|U_Type88|U_Type95B|U_Ultimax|U_UMP9|U_UMP45|U_Unica6|U_V4|Melee|Suicide|SoldierCollision|DamageArea|Death|)", RegexOptions.IgnoreCase)
i get this error

 

Code:

[16:21:32 88] [Insane Limits] ERROR: (CS0023, line: 27, column: 23):  Operator '!' cannot be applied to operand of type 'System.Text.RegularExpressions.Match'
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

im using this to restrict certain weapons on my server when when i add this code

 

Code:

! Regex.Match(kill.Weapon, @"(U_A91|U_ACR|U_AEK971|U_AK12|U_AK5C|U_AKU12|U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_AR160|U_ASVAL|U_AWS|U_Bulldog|U_CBJ-MS|U_CS-LR4|U_CS5|U_CZ805|U_CZ75|U_DesertEagle|U_Defib|EODBot|U_F2000|U_FAMAS|U_Flashbang|U_FN57|U_FY-JS|U_G36C|U_GalilACE|U_GalilACE23|U_GalilACE52|U_GalilACE53|U_Glock18|U_GOL|U_Grenade_RGO|U_HK45C|U_JNG90|U_JS2|U_L85A2|U_L96A1|U_LSAT|U_M16A4|U_M1911|U_M200|U_M240|U_M249|U_M39EBR|U_M40A5|U_M416|U_M4A1|U_M60E4|U_M67|U_M82A3|U_M82A3_CQB|U_M82A3_MED|U_M9|U_M93R|U_M98B|U_MagpulPDR|U_Medkit|U_MG4|U_MK11|U_MP7|U_MP412Rex|U_MP443|U_MTAR21|U_MPX|U_MX4|U_P226|U_P90|U_Pecheneg|U_PortableMedicpack|U_PP2000|U_QBB95|U_QBU88|U_QBZ951|U_QSZ92|U_Repairtool|U_RFB|U_RPK12|U_RPK-74|U_SAR21|U_SCAR-H|U_SCAR-HSV|U_Scorpion|U_Scout|U_SG553LB|U_SKS|U_SR2|U_SR338|U_SRS|U_SteyrAug|U_SV98|U_SVD12|U_SW40|U_Taurus44|U_Type88|U_Type95B|U_Ultimax|U_UMP9|U_UMP45|U_Unica6|U_V4|Melee|Suicide|SoldierCollision|DamageArea|Death|)", RegexOptions.IgnoreCase)
i get this error

 

Code:

[16:21:32 88] [Insane Limits] ERROR: (CS0023, line: 27, column: 23):  Operator '!' cannot be applied to operand of type 'System.Text.RegularExpressions.Match'
Add .Success to the end:

 

Code:

! Regex.Match(kill.Weapon, @"(U_A91|U_ACR|U_AEK971|U_AK12|U_AK5C|U_AKU12|U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_AR160|U_ASVAL|U_AWS|U_Bulldog|U_CBJ-MS|U_CS-LR4|U_CS5|U_CZ805|U_CZ75|U_DesertEagle|U_Defib|EODBot|U_F2000|U_FAMAS|U_Flashbang|U_FN57|U_FY-JS|U_G36C|U_GalilACE|U_GalilACE23|U_GalilACE52|U_GalilACE53|U_Glock18|U_GOL|U_Grenade_RGO|U_HK45C|U_JNG90|U_JS2|U_L85A2|U_L96A1|U_LSAT|U_M16A4|U_M1911|U_M200|U_M240|U_M249|U_M39EBR|U_M40A5|U_M416|U_M4A1|U_M60E4|U_M67|U_M82A3|U_M82A3_CQB|U_M82A3_MED|U_M9|U_M93R|U_M98B|U_MagpulPDR|U_Medkit|U_MG4|U_MK11|U_MP7|U_MP412Rex|U_MP443|U_MTAR21|U_MPX|U_MX4|U_P226|U_P90|U_Pecheneg|U_PortableMedicpack|U_PP2000|U_QBB95|U_QBU88|U_QBZ951|U_QSZ92|U_Repairtool|U_RFB|U_RPK12|U_RPK-74|U_SAR21|U_SCAR-H|U_SCAR-HSV|U_Scorpion|U_Scout|U_SG553LB|U_SKS|U_SR2|U_SR338|U_SRS|U_SteyrAug|U_SV98|U_SVD12|U_SW40|U_Taurus44|U_Type88|U_Type95B|U_Ultimax|U_UMP9|U_UMP45|U_Unica6|U_V4|Melee|Suicide|SoldierCollision|DamageArea|Death|)", RegexOptions.IgnoreCase).Success
* 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.