How to run a „No Sniper rifles“ server (or „no DMR rifles“)

This code allows you to run a server, that allows all classes, but limits the weapons: no sniper and no DMR rifles are allowed, if you use this code, as it is.All you need to run this code: you have to have a Procon Layer running and install the ProconRulz plugin.

What does the code do?

In Battlefield 3 and 4, you can detect the weapons only, when someone is killed. Due to this, this code works like this:

  1. If someone kills someone with a forbidden weapon, he is killed and receives a message saying „No sniper rifles allowed“.
  2. If the same person kills a second time with any of the forbidden weapons, he is kicked from the server with the same message.

Usually you would work with a more clever code and don’t duplicate all the settings. Unfortunately in BF4 this was not working when i was creating the script, I am not sure, if it works now. So if you want to modify it, i recommend to copy/paste this code into a text editor and use find/replace to modify it.

Do you use this code?

If you use this script, it would be kind, if you put a link to this website, in case someone else needs the same script.

Need help?

If you need additional help, contact us in our forum.

ProconRulz code:

 

#START

On Kill;Weapon U_CS-LR4;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;*Damage*SniperRifle;Kill 100;Say [%p%] was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;
On Kill;Weapon U_RFB;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_M40A5;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_Scout;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_SV98;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_JNG90;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_M98B;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_FY-JS;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_MK11;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_SKS;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_SVD12;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!

# need more info about this script? http://www.bombrats.com/ or http://www.bombrats.com/battlefield-4/run-sniper-rifles-server-dmr-rifles/
# author: Smoerble
# in BF3 you could create a better code, but in BF4, ProconRulz does not support working logics :(.

On Kill;Weapon U_M39EBR;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!

On Kill;Weapon U_M39EMR;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_GalilACE53;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_SCAR-HSV;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_QBU88;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_338-Recon;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_L96A1;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!

 

On Kill;Weapon U_M82A3;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_M82A3_CQB;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!
On Kill;Weapon U_M82A3_MED;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!

 

#SRR-61:
On Kill;Weapon U_M200;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!

 

# 388-Recon:
On Kill;Weapon U_SRS;Kill 100;Say Player „%p%“ was killed for using a sniper rifle! NO SNIPER RIFLES ALLOWED!;PlayerCount 1;Kick %p% No sniper rifles!

 

# http://www.bombrats.com/ or http://www.bombrats.com/battlefield-4/run-sniper-rifles-server-dmr-rifles/ by Smoerble and the Bombrats [BRAT]

 # END