Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by bambam*:

 

Looking for a no mortar rule that will warn, then kill, then ban. I have looked through this thread, forgive me if I missed it. Thanks for you help.

It's post #1, example #1 on this thread, and the weapon key for the Mortar is "Death" (use where the example says "Weapon Siaga20k"). The bummer here is ALL vehicles are ALSO "Weapon Death", so there is no way with BF3/4 to block one and not the other. Nothing you can do about that.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by chesterfield*:

 

Guys i really need help pls we cant play anymore without a sniperlimit on our Rush 64p.

I gave this into the plugin but nothing happens.

 

PLS Help!

 

# SET THE MAX # OF SNIPERS HERE:

On Kill;ServerFirst;Set %server_sniperlimit% 3

On Say;ServerFirst;Set %server_sniperlimit% 3

 

# SNIPER LOG MESSAGES

On Spawn;If %server_sl_sniper[%p%]% == 1;Log Sniper %pt% %p% re-spawned. %server_sl_total[%ptk%]% snipers on team %ptk%

On Kill;If %server_sl_sniper[%v%]% == 1;Log Sniper %vtk% %v% killed. %server_sl_total[%vtk%]% snipers on team %vtk%

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Damage SniperRifle;Damage DMR;

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay -;PlayerSay - %p% killed by SNIPER LIMIT max %server_sniperlimit%;PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SNIPER SLOT !!! %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerSay -;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

 

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES

On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SNIPER slot!!!;TeamSay -;Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%

On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SNIPER slot !!!;TeamSay -;Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

 

# !snipers / !sniperx INFO MESSAGES

On Say;Text !snipers;

PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%. Reserve slot with sniper kill, lose it with non-sniper/handgun kill.

If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS on team %pt%

If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%

If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%

If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%

If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

 

On Say;Text !sniperx;

PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%

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

Originally Posted by tarreltje*:

 

Guys i really need help pls we cant play anymore without a sniperlimit on our Rush 64p.

I gave this into the plugin but nothing happens.

 

PLS Help!

 

# SET THE MAX # OF SNIPERS HERE:

On Kill;ServerFirst;Set %server_sniperlimit% 3

On Say;ServerFirst;Set %server_sniperlimit% 3

 

# SNIPER LOG MESSAGES

On Spawn;If %server_sl_sniper[%p%]% == 1;Log Sniper %pt% %p% re-spawned. %server_sl_total[%ptk%]% snipers on team %ptk%

On Kill;If %server_sl_sniper[%v%]% == 1;Log Sniper %vtk% %v% killed. %server_sl_total[%vtk%]% snipers on team %vtk%

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Damage SniperRifle;Damage DMR;

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay -;PlayerSay - %p% killed by SNIPER LIMIT max %server_sniperlimit%;PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SNIPER SLOT !!! %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerSay -;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

 

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES

On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SNIPER slot!!!;TeamSay -;Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%

On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SNIPER slot !!!;TeamSay -;Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

 

# !snipers / !sniperx INFO MESSAGES

On Say;Text !snipers;

PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%. Reserve slot with sniper kill, lose it with non-sniper/handgun kill.

If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS on team %pt%

If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%

If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%

If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%

If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

 

On Say;Text !sniperx;

PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%

Were did you put those rules? If you just loaded them the old fasion way, the rules should work.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

prdebug xsay

in 5000+ posts you're the first person that's asked for this.

ahahaha that was actually the first thing i was going to ask about today :P specially since my new script controls all the weapons from within the game itself..

 

was kind of annoying last night when China rising came out i had to actually disable the script so normal weapons was enabled (was playing a bit of Pistol/Knife only) and then i was stuck downloading the patches for an hour.. luckily only 1 person logged into the server before our other admin was able to get in anyway so was able to reenable the plugin and walk him through the new commands i had setup.

 

todays script will be a better version of the Knife/Defib/Repair tool kill announcer (multiple random messages instead of the single one i have right now)..

 

reminds me of the other question i wanted to ask you Mr BamBam.. Random numbers? is there a way to generate one at the moment ? i dont remember seeing one in the docs (i am planning to just use kills to increase a counter at the moment.. but a true number generator would be better :ohmy: )

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

Originally Posted by chesterfield*:

 

Were did you put those rules? If you just loaded them the old fasion way, the rules should work.

ProconRulz - 44e.2 and put the sniperlimit to the Proconrulz - Rules

 

THX for Helping me

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

Originally Posted by shadow2k1*:

 

ok so ive updated my procon rulz plugin, all my rules are gone. no problem tho.

however i have a couple questions.

 

im assuming all my rules go into the *.txt file and then i list the name of the .txt file in the string array? is this correct? if not can someone please explain as i have went thru the online documentation and couldnt find anything about it.

 

if the above question is true, how do i get the .txt file to be seen by procon if im running a layer service?

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

Originally Posted by cannonfodder*:

 

Chat you type in the Procon console doesn't trigger the same events as when in game, so it's a bit tricky. If it helps I have a 'debug' workaround in procon chat to treat the chat as 'normal'. Type:

 

prdebug xsay

 

e.g.

 

prdebug xsay @warn fred

 

then "@warn fred" will be treated as 'normal chat' by proconrulz.

 

It's a bit of a handful but it's a necessary workaround. The special treatment of chat that comes from the server (as in admin chat into the procon chat window) prevents bad rulz making ProconRulz get stuck in an infinite loop for example if someone wrote !rules output that contained the string !rules which immediately triggered the same rulz again... in 5000+ posts you're the first person that's asked for this.

bambam great thanks.. i tried this out. works fine to me...

Wonder that nobody get the idea to use the rules from procon chat. rediculous...

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

Originally Posted by tarreltje*:

 

ok i have it

THX tarreltje

 

But a question what can i do for the chatspamm?

And how can players check the status how many snipers are playing?

 

THX again

Most of the chatspam was already removed, !sniperx !snipers will give you information

only spam you have is:

 

- playersay: You have a sniperslot

- team: there is a free sniper slot

- playersay: You lost your sniper slot

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

Originally Posted by Gunslinger1973*:

 

I wonder if it is possible to set the Ticket Counter Value (vars.GameModeCounter) for the next round. I use adaptive Ticket Size but sometimes I just need more Tickets than provided. I tried the following code with no results. I just get a 0 out of it and on the Server (ProconLayer) I don't see any ini-file written. Any1 any ideas?

 

Code:

On Say;Admin;Text !ticketprozent; %targettext%;Set %ini_ticks[%targettext%]%; PlayerSay Ticket-Percent for next round set to %ini_ticks[%targettext%]%
On Round;Exec vars.gameModeCounter %ini_ticks[%targettext%]%
It's possible that I entered some errors because I'm at work and reproduced it "by heart"... I just wonder if I used the variables correctly.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by shadow2k1*:

 

i just cant seem to find in the online doc where it instructs me to get the rules to display when someone types in !rules

in the chat window.

 

is it not listed there or am i over looking it?

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

Originally Posted by bambam*:

 

I wonder if it is possible to set the Ticket Counter Value (vars.GameModeCounter) for the next round. I use adaptive Ticket Size but sometimes I just need more Tickets than provided. I tried the following code with no results. I just get a 0 out of it and on the Server (ProconLayer) I don't see any ini-file written. Any1 any ideas?

 

Code:

On Say;Admin;Text !ticketprozent; %targettext%;Set %ini_ticks[%targettext%]%; PlayerSay Ticket-Percent for next round set to %ini_ticks[%targettext%]%
On Round;Exec vars.gameModeCounter %ini_ticks[%targettext%]%
It's possible that I entered some errors because I'm at work and reproduced it "by heart"... I just wonder if I used the variables correctly.
with those rulz, your "On Round;Exec vars.gameModeCounter %ini_ticks[%targettext%]%" cannot work because there is no %targettext% for an "On Round" triggered rule. Maybe your memory isn't right.

 

You could use "On Say;Admin;Text !ticks;.... Set %ini_gunslinger_ticks% %targettext%

and then

On Round;Exec vars.gameModeCounter %ini_gunslinger_ticks%

 

Note that ini vars have to have THREE parts "ini", "section name", "var name", which will become clear when you look in the config file.

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

Originally Posted by tarreltje*:

 

for someone who uses a layer server and doesnt have access to upload to the server, how are we supposed to get the rules.txt files to be read_.

If you cant upload txt files, just put the rulz into the normal section of proconrulz
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

Mr BamBam got a Q for you :P

 

is there a possible way to get varibles as text to save in an ini file... as the varible name

 

so i want my players to be able to set custom knife messages so need them to be able to type !setknife %p% sliced open %v% and have that saved in the ini file.. at the moment it appears it just replaces those with 0's 8(

 

ive had a look at your code and i cant really see anything there except maybe $'s which im about to try.. sigh $'s just replaces it aswell 8(

looks like i might have to hand edit the ini file grrr!!!

 

nvm... it seems even if i store %p% %v% in the ini file and PlayerSay that it just says %p% %v% with subsitution.. looks like im going to have to develop that in C# as a proper plugin.. (i kind of need to for my map manager anyway.. Ultimate Map manager is good but i need ingame commands)

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

Originally Posted by shadow2k1*:

 

does anyone have an updated knife/defid/repair torch kill announcer?

the one on the main page, when used, say

[18:10:03 32] ProconRulz: Warning, weapon Weapons/Knife/Knife not found in Procon (but you can still use the key in ProconRulz)

[18:10:03 32] ProconRulz: Warning, weapon Defib not found in Procon (but you can still use the key in ProconRulz)

[18:10:03 32] ProconRulz: Warning, weapon Repair Tool not found in Procon (but you can still use the key in ProconRulz)

 

 

it also might be a good idea if someone can update the main page with the examples that work in bf4

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

Originally Posted by lordicon*:

 

does anyone have an updated knife/defid/repair torch kill announcer?

the one on the main page, when used, say

[18:10:03 32] ProconRulz: Warning, weapon Weapons/Knife/Knife not found in Procon (but you can still use the key in ProconRulz)

[18:10:03 32] ProconRulz: Warning, weapon Defib not found in Procon (but you can still use the key in ProconRulz)

[18:10:03 32] ProconRulz: Warning, weapon Repair Tool not found in Procon (but you can still use the key in ProconRulz)

 

it also might be a good idea if someone can update the main page with the examples that work in bf4

Code:
On Kill;Weapon Melee;Yell %p% grabbed and stabbed %v% !!!
On Kill;Weapon U_Defib;Yell %p% zapped %v% with the Defib !!!
On Kill;Weapon U_Repairtool;Yell %p% killed %v% with the Repair Tool !!!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

Oh god.. there is absolutely no documentation on how to write a C# plugin for Procon and the base plugins that come with it are huge and hard to read.. been many years since ive played with C# no jumping into that one with no docs 8(.. guess im stuck with Proconrulz for now... sigh..

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

Originally Posted by shadow2k1*:

 

Code:

On Kill;Weapon Melee;Yell %p% grabbed and stabbed %v% !!!
On Kill;Weapon U_Defib;Yell %p% zapped %v% with the Defib !!!
On Kill;Weapon U_Repairtool;Yell %p% killed %v% with the Repair Tool !!!
thanks but U_defib isnt recognized
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ixnorp*:

 

Is this possible?

On Kill;Damage ProjectileExplosive;

PlayerSay %p% do not kill with %w%;Kill

PlayerCount 1;tban 600

PlayerCount 1;If %v% == Admin;PlayerSay u kill admin with Restricted weapon!;ban

 

Is this victim = admin kill command workable?

 

 

Sent from my iPhone using Tapatalk

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

Originally Posted by LjMjollnir*:

 

On Kill;If %wk% contains Defib;Say %p% zapped %v% with the Defib Zap Zap motherfucker !!!

 

is what i use for Defib messages

 

Before I forget, bambam is OnSpawn working yet so we can lets say kill anyone that spawns in with a flashbang and send them a message saying it is not allowed?

OnSpawn works.. however for Bf3 and Bf4 you cant tell what people have in their kit so that kind of rule will not work (only Bf3 and Bf4.. BFBC2 you can see whats in the kit i believe)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ixnorp*:

 

is this possible?

On Kill;Damage Explosive;PlayerSay no %w%;kill

PlayerCount 1;PlayerSay 2 times;tban 600

PlayerCount 1;PlayerSay killed admin;if %v% == Admin;tban 1200

 

or just put them together like this?

 

PlayerCount 1;PlayerSay 2 times;tban 600;if %v% == Admin;PlayerSay killed admin;tban 1200

 

Will last command work? And if the explosives killed two or more including admin. Will the plugin use the last command for killing admin instead of the tban 600

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

Originally Posted by warhammertx*:

 

Hey WarHammertx

this is a quick throw together based on my Pistol/Knife only script it is untested but should only allower Sniper/DMR/Melee kills (BF4)

this script worked great for Pistol/Knife only i just changed the Handgun to SniperRifle in the code so i assume it works but as i said its untested.

 

i use Spambot to repeatedly spam "!rules for server rules" and it also spams the weapon rules eg. "Pistol/Knife only"

i have several weapon rules made up and it just switch them as needed as per the reason why i have the !rules in each weapon rule set.. saves changing another file every time :ohmy:

 

Code:

On Kill;Not Damage SniperRifle;Not Damage Melee;PlayerCount 1;Kick %p% Sniper Rifle/DMR/Knife only;Say ### Kicked %p% for breaking rules ###
On Kill;Not Damage SniperRifle;Not Damage Melee;PlayerSay %p% Sniper Rifle/DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Say;Text !rules
    PlayerSay #################    RULES     ###################
    PlayerSay Sniper Rifles/DMR and Knifes only.
    PlayerSay Grenades. Only use Flashbang Smoke and Flares
    PlayerSay however use them at your own risk. they can kill and you will be punished if they do.
    PlayerSay Vehicles are for transport only. Killing using them will result in your death and possible kick/ban
    PlayerSay you will be Killed for killing with the wrong weapons. Next time is a kick.. after that guess 8)
    PlayerSay If you have a request ask an Admin - xxxxxxx
as a note my scripts currently do NOT ban people as i am still in testing mode :ohmy: you might have a setting somewhere that does people after a certain number of kicks just be aware of that if you dont want people banned.

 

Here is my work on a Bolt action only script.. as i said its completely untested and probably wont work.. im still learning this stuff myself :ohmy:

Code:

### %kl% = Kick at # of punish, %tb% # before temp ban, %pb% Perma Ban, %tbt% Temporary ban time (in seconds)
## eg. kl = 2 tb = 4 pb = 6. 1st kill 2nd kill 3rd kick 4th 10min ban 5th kick 6th perma ban
On Round;Set %kl% 2;Set %tb% 4;Set %pb% 6;Set %tbt% 600

## type !rename in game to rename the server to what ever is below 
On Say;Admin;Text !rename;Exec vars.serverName "example Bolt action snipers only"

On Kill;Not Damage SniperRifle;Not Damage Melee
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Kill;Weapon U_RFB
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Kill;Weapon U_MK11
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     If %pun% = 2;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###

On Kill;Weapon U_SKS
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Kill;Weapon U_SVD12
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay %p% Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Kill;Weapon U_QBU88
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay %p% Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Kill;Weapon U_M39EBR
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay %p% Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Kill;Weapon U_GalilACE53
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

On Kill;Weapon U_SCAR-HSV
     Incr %pun%
     If %pun% = %pb%;Ban Sniper Rifle NO DMR/Knife only;Say ### Perma Banned %p% for breaking rules ###
     If %pun% = %tb%;TempBan %tbt% Sniper Rifle NO DMR/Knife only;Say ### Temporary Banned(10mins) %p% for breaking rules ###
     If %pun% > %kl%;Kick Sniper Rifle NO DMR/Knife only;Say ### Kicked %p% for breaking rules ###
     PlayerSay Sniper Rifle NO DMR/Knife only;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules

#On Spawn;PlayerSay you have broken the rules %pun% times

On Spawn;PlayerFirst;PlayerSay ### type !rules to see the rules ###

On Say;Text !rules
    PlayerSay ###    RULES     ###
    PlayerSay Sniper Rifles NO DMR and Knifes only.
    PlayerSay Grenades. Only use Flashbang Smoke and Flares. If it kills you will be punished
    PlayerSay Vehicles are for transport only.
    PlayerSay Rule break = kill then kill, Next time = kick, Next you guess 8)
Edited with latest version of the Bolt action only script. appears to work.. havent tested it much.. been waiting for friends to log on all day sigh 8(...

 

Warning this script has the potential to Ban people!!!! just edit the script if you dont want to ban.

 

Sorry for editting this post (LjMjollnir feel free to strip this) but there's bugs in these rulz relating to the use of 'server vars' versus 'player vars', particularly in the initial On Round rule:

 

On Round;Set %kl% 2;Set %tb% 4;Set %pb% 6;Set %tbt% 600

 

These should probably be %server_kl%, %server_tb% etc. Because later on On kill; If... %pb%;.. is referring to a *per-player* variable called %pb%, and On Round doesn't have those. It's a complicated topic but see docs.

 

Bambam

Thanks gave it a try it randomly killed people and didnt block the right weapons, trying to get it figured out.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

i have a much better script these days :ohmy:... ingame commands to disable any combination of weapons.. that script was made before procon 1.4.1.3 .. since then you can do a search on Damage DMR would make it alot easier

 

but yeah as BamBam noted you need to change all the instances of %kl% %tb% %pb% and %tbt% --> to --> %server_kl% %server_tb% %server_pb% %server_tbt%

 

that script did work.. but it just kicked people right away because i didnt understand that without the %server? it was player only varibles they need to be global :ohmy:.. since its checking if a player needs to be punished compared to a 0 value it kicks right away

 

use Find and replace in note pad to change them all as noted above and it should work fine.

 

btw tho this is the script i now use :ohmy: much better

Code:

Script removed by LjMjollnir
so if you wanted Bolt action only an admin in game can type

!setlimits (this one only ever needs to be done once.. it just sets the ban and kick limits in the ini file)

 

!swp 0 (to disable ALL weapons)

!sniper 1 (enable bolt action snipers)

and thats pretty much all you need to do.. since it saves the weapon config in the ini file you are set

want to add pistols and knifes... easy done

!pistol 1

!melee 1

and you can always see what weapons are enabled by typing !wlist (spams to the whole server what weapons can be used)

or !rules which is set to PlayerSay only

* 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.




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