Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by TheMrApostel*:

 

On Kill;Damage SniperRifle;Incr %ini_vars_%server_sniper[%p%]%%;VictimSay Hello [%v%] Player [%p%] was punished for using a SnipeRifle!;

On Kill;Damage SniperRifle;If %ini_vars_%server_sniper[%p%]%% == 1;Kill 1000;PlayerSay [%p%] - SniperRifles are not allowed! Warning [1 / 3];PlayerYell [%p%] - SniperRifles are not allowed! Warning [1 / 3];

I using the code above and the variable will be saved correctly in a file on my layer.

The only problem is that variable %server_sniper[%p%]%% isn't increasing at all and stays with the value 1.

What do i miss here?

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

Originally Posted by LjMjollnir*:

 

I using the code above and the variable will be saved correctly in a file on my layer.

The only problem is that variable %server_sniper[%p%]%% isn't increasing at all and stays with the value 1.

What do i miss here?

you cant nest Variables that way in Proconrulz..

change %ini_vars_%server_sniper[%p%]%% to %ini_sniper_%p%%

ini variables work like this %ini_section_key% = Value

%ini tells Procon rulz that the variable is to be stored in the ini file

the next section _section is the section in the ini file you want the variable to be placed in

after that is the _key thats the actual variable name you want to save "value"

 

so for example using your code with my changed variable name :ohmy: lets have 3 players p1 p2 p3

p1 is an ass and has killed 3 people with sniper rifles

%ini_sniper_p1% = 3

p2 has only killed 1 and p3 is being good

%ini_sniper_p2% = 1 , %ini_sniper_p3% = 0

the .ini file would look like this

 

[sniper]

p1 = 3

p2 = 1

 

on another note you appear to be using %server_sniper[%p%]%.. that is exactly the same as %sniper%

%server_key% variables are global to the plugin.. %key% type variables are player only

for example

p1 %sniper% = 3

p2 %sniper% = 1

p3 %server_sniper% = 9

 

p1 PlayerSay %sniper% would show 3

p2 PlayerSay %sniper% shows 1

p1 PlayerSay %server_sniper% shows 9

p2 PlayerSay %server_sniper% shows 9

 

and if im not mistaken i think you can even access %sniper% as %server_sniper[%p%]% been a long time since ive used Proconrulz.. so unsure about that one

 

p1 set %sniper% 3

p1 PlayerSay %server_sniper[%p%]% shows 3

p2 PlayerSay %server_sniper[p1]% shows 3

 

im pretty sure it worked like that.. or there was some way to do it like that but they are pretty much exactly the same variable

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

Originally Posted by CoolhandNilsson*:

 

Hello all, thanks for the great plugin, im having some issues on my server, trying to restrict C4, slam and HVM-II, these are the scripts im using;

 

On Kill;Weapon U_Starstreak;PlayerCount 1;Log %p% banned for HVM-II;Ban %p% HVM-II

On Kill;Weapon U_C4;PlayerCount 1;Log %p% banned for C4;Ban %p% C4

On Kill;Weapon U_C4_Support;PlayerCount 1;Log %p% banned for C4;Ban %p% C4

 

 

Something is wrong though, it only bans them if they kill 2 people at the same time, i also want it to shout to server that they got banned for C4/slam/HVM-II

 

Is there any way to restrict even spawning with C4 ? or instantkilling people who pick up HVM-II

 

Any help will be greatly Appreciated.

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

Originally Posted by TheMrApostel*:

 

Hello all, thanks for the great plugin, im having some issues on my server, trying to restrict C4, slam and HVM-II, these are the scripts im using;

 

On Kill;Weapon U_Starstreak;PlayerCount 1;Log %p% banned for HVM-II;Ban %p% HVM-II

On Kill;Weapon U_C4;PlayerCount 1;Log %p% banned for C4;Ban %p% C4

On Kill;Weapon U_C4_Support;PlayerCount 1;Log %p% banned for C4;Ban %p% C4

 

 

Something is wrong though, it only bans them if they kill 2 people at the same time, i also want it to shout to server that they got banned for C4/slam/HVM-II

 

Is there any way to restrict even spawning with C4 ? or instantkilling people who pick up HVM-II

 

Any help will be greatly Appreciated.

You want to ban players after one kill with these weapons?

In that case just remove the "PlayerCount 1;".

 

In BF4 you can restrict weapons at spawn with AdKats and its extension.

The extension is a one time fee ($25)

myrcon.net/.../on-spawn-loadout-enforcer-for-infantryvehicles-adkatslrt

 

myrcon.net/.../advanced-in-game-admin-and-ban-enforcer-adkats

 

i also want it to shout to server that they got banned for C4/slam/HVM-II

Whats about:

On Kill;Weapon U_C4;Tell No C4 allowed on this server

or

On Kill;Weapon U_C4;PlayerYell No C4 allowed on this server or you will get banned

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

Originally Posted by LjMjollnir*:

 

On Kill;Weapon U_C4;Tell No C4 allowed on this server

or

On Kill;Weapon U_C4;PlayerYell No C4 allowed on this server or you will get banned

There is 2 codes for C4 :ohmy:.. best using

On Kill;if %wk% contains _C4;etc...

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

Originally Posted by CoolhandNilsson*:

 

There is 2 codes for C4 :ohmy:.. best using

On Kill;if %wk% contains _C4;etc...

On Kill;Weapon U_Starstreak;Log %p% banned for HVM-II;Ban %p% HVM-II

On Kill;Weapon U_C4;Log %p% banned for C4;Ban %p% C4

On Kill;Weapon U_C4_Support;Log %p% banned for C4;Ban %p% C4

 

How do i add a " !Yell got banned for command to these lines?

 

Thanks

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

Originally Posted by CoolhandNilsson*:

 

On Kill;Weapon U_Starstreak;Log %p% banned for HVM-II;Ban %p% HVM-II

On Kill;Weapon U_C4;Log %p% banned for C4;Ban %p% C4

On Kill;Weapon U_C4_Support;Log %p% banned for C4;Ban %p% C4

 

How do i add a " !Yell got banned for command to these lines?

 

Thanks

On Kill;Weapon U_Starstreak;Log %p% banned for HVM-II;Ban %p% HVM-II;Say %p% AutoBanned For HVM-II;

On Kill;Weapon U_C4;Log %p% banned for C4;Ban %p% C4;Say %p% AutoBanned For C4;

On Kill;Weapon U_C4_Support;Log %p% banned for C4;Ban %p% C4;Say %p% AutoBanned For C4;

 

Will this work? can anyone help me debug my code please

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

Originally Posted by CoolhandNilsson*:

 

On Kill;Weapon U_Starstreak;Log %p% banned for HVM-II;Ban %p% HVM-II;Say %p% AutoBanned For HVM-II;

On Kill;Weapon U_C4;Log %p% banned for C4;Ban %p% C4;Say %p% AutoBanned For C4;

On Kill;Weapon U_C4_Support;Log %p% banned for C4;Ban %p% C4;Say %p% AutoBanned For C4;

 

Will this work? can anyone help me debug my code please

Have debugged and seems to work,, will know for sure tomorrow when servers active
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

On Kill;Weapon U_Starstreak;Log %p% banned for HVM-II;Ban %p% HVM-II;Say %p% AutoBanned For HVM-II;

On Kill;Weapon U_C4;Log %p% banned for C4;Ban %p% C4;Say %p% AutoBanned For C4;

On Kill;Weapon U_C4_Support;Log %p% banned for C4;Ban %p% C4;Say %p% AutoBanned For C4;

 

Will this work? can anyone help me debug my code please

as far as i can tell it looks like it should work.. if the weapon codes are correct :ohmy:..

the C4 lines can be combined as i did in the other post

On Kill;if %wk% contains U_C4;Log %p% banned for C4;Both %p% was banned for using C4!!!

 

to explain that line. %wk% is the Weapon key (basically the same as Weapon but in a variable you can do things with)

if contains .. in this case If weapon key Contains U_C4 matches U_C4 and U_C4_Support :smile: saving you writing the rules separately for both it can be handy later on believe me :ohmy:

 

the Both command is Both Say and Yell at the same time :ohmy:

 

same for Claymores you can match both with if %wk% contains Claymore

 

you could have also written it like this

On Kill;Weapon U_C4,U_C4_Support;etc etc

in this case , is OR

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

Originally Posted by DarkZerO_AT*:

 

Hello all, thanks for the great plugin, im having some issues on my server, trying to restrict C4, slam and HVM-II, these are the scripts im using;

 

On Kill;Weapon U_Starstreak;PlayerCount 1;Log %p% banned for HVM-II;Ban %p% HVM-II

On Kill;Weapon U_C4;PlayerCount 1;Log %p% banned for C4;Ban %p% C4

On Kill;Weapon U_C4_Support;PlayerCount 1;Log %p% banned for C4;Ban %p% C4

 

 

Something is wrong though, it only bans them if they kill 2 people at the same time, i also want it to shout to server that they got banned for C4/slam/HVM-II

 

Is there any way to restrict even spawning with C4 ? or instantkilling people who pick up HVM-II

 

Any help will be greatly Appreciated.

im sure you read the pdf file for proconrulz right?

there it says "PlayerCount N +1"

 

so if you do it like you did "PlayerCount 1" it bans them at 1+1 = 2, thats why they only get banned for the second kill

 

and what you are doing seems unfair to me

at least give them a chance to realize its not allowed

you should atleast use "PlayerCount 2"

 

kill them at the first 2 violations and then ban them

 

Adkats LTR is the best way to kill for spawning with restricted weapons, even tho BFRCON has a similar plugin, but im not sure how good that one is working

and you cannot instakill for picking up the HVM, thats not logged somewhere in procon

 

also you can use a spambot for telling that HVM and C4 is not allowed

or an adaptive spambot with proconrulz

 

#######################################

#

# Adaptive Spam

#

#######################################

On Kill;

Incr %server_spam%;

If %server_spam% = 250;Both [message here];Set %server_spam% 0

this spams a message every 250 kills which can be changed depending on how often you want it to get spammed
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by QuadPrime*:

 

My Rulez Line

 

Code:

On Kill; Not Weapon dlSHTR; Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun; say /punish %p% You Used a %W% to kill %v%.
is filling in "0" for %w%, no matter what weapon is used.

 

Reaction Prompt is like this :

 

AdKats > Tell[5s] > Daikimi > Killed by admin for You Used a 0 to kill docHotRat. [1pts]

Is there a reason for this?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

My Rulez Line

 

Code:

On Kill; Not Weapon dlSHTR; Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun; say /punish %p% You Used a %W% to kill %v%.
is filling in "0" for %w%, no matter what weapon is used.

 

Reaction Prompt is like this :

 

 

 

Is there a reason for this?

%w% instead of %W%.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by No-1Shorty*:

 

Hi people,

 

I would like to our BC2 Server Red Dot Sight for Sniper forbidden.The problem is that it appears to me wird.I have in Prconrulz as "sp_shotgun_s" already tried the "sp_shotgun_s" forbidden but you can still use continue the visor.can there maybe someone help me?

 

Sry for my bad english

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

Originally Posted by NastyPedro*:

 

Hi

 

Question here:

 

Is that possible to set a kick command after 3rd or 4th sniperlimit/admin kill ?

The problem is that the sniperlimit works great but some guys keep taking the rifle and ignoring the limit.

 

Im very sorry if that was explained here already, as a newbe its a lot to search.

 

Regards

 

Pedro

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

Originally Posted by DarkZerO_AT*:

 

Hi

 

Question here:

 

Is that possible to set a kick command after 3rd or 4th sniperlimit/admin kill ?

The problem is that the sniperlimit works great but some guys keep taking the rifle and ignoring the limit.

 

Im very sorry if that was explained here already, as a newbe its a lot to search.

 

Regards

 

Pedro

just use "PlayerCount" 2 or 3 (its always N + 1) so 2 kicks at 3 and 3 kicks at 4
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

http://pastebin.com/

paste stuffs

link

tadaaaaa

he means this

Code:

#######################################
#
# Adaptive Spam
#
#######################################
On Kill;
Incr %server_spam%;
If %server_spam% = 250;Both [message here];Set %server_spam% 0
very very poor... and not very adaptive.. without editing the script each time.. which is why i suggested the Spambot from procon..

 

my plugin uses a timer event to call a function.. with replaceable strings .. it works :ohmy:.. im sure you could do something similar

 

Code:

AnnounceTimer = new Timer(fannounceTimer * 1000);
            AnnounceTimer.Elapsed += new ElapsedEventHandler(Announcer);
            AnnounceTimer.AutoReset = true;
Code:
public void Announcer(object sender, EventArgs e)
        {
            if (fendRound) return;
            if (!fBidEnabled) return;
            if (fplayers == 0) return;
            int count = -1;
            string tmpStr = String.Empty;
            if (fannouncerLine >= fannounceMessages.Count) fannouncerLine = 0;
            foreach (string s in fannounceMessages)
            {
                count++;
                if (count != fannouncerLine) continue;
                if (s.Contains("{win}"))
                {
                    fannouncerLine++;
                    DisplayBid("Server");
                    return;
                }
                if (s.Contains("{map}"))
                {
                    if (fBidMaps)
                    {
                        tmpStr = s.Replace("{map}", String.Empty);
                        ServerSay(tmpStr);
                        fannouncerLine++;
                        return;
                    }
                    else { fannouncerLine++; continue; }
                }
                if (s.Contains("{gm}"))
                {
                    if (fBidGameMode)
                    {
                        tmpStr = s.Replace("{gm}", String.Empty);
                        ServerSay(tmpStr);
                        fannouncerLine++;
                        return;
                    }
                    else { fannouncerLine++; continue; }
                }
                ServerSay(s);
                fannouncerLine++;
                return;
            }
        }
thats from my bidmap.. and it was just a prototype at the time.. the new announcer will have things tidied up alot and more options (since its for a full suite of plugins this time it needs to do more)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Clandestine_ZA*:

 

How do I remove a OnSpawn message? I've checked ProconRulz and all other plugins on all my servers and nowhere do I see the text, that displays when you spawn.

 

Ive turned all plugins off and I still see a OnSpawn message that should not be there. I've also restarted the Procon Layer and all my servers

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

Originally Posted by DarkZerO_AT*:

 

he means this

Code:

#######################################
#
# Adaptive Spam
#
#######################################
On Kill;
Incr %server_spam%;
If %server_spam% = 250;Both [message here];Set %server_spam% 0
very very poor... and not very adaptive.. without editing the script each time.. which is why i suggested the Spambot from procon..
its easy to make it way more adaptive automaticly

but the way it is, its enough for our server :ohmy:

 

How do I remove a OnSpawn message? I've checked ProconRulz and all other plugins on all my servers and nowhere do I see the text, that displays when you spawn.

 

Ive turned all plugins off and I still see a OnSpawn message that should not be there. I've also restarted the Procon Layer and all my servers

maybe you enabled the server spawn message?

go on the "server settings" tab on procon and see if the "message" field is filled in

thats the server side spawn message

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

Originally Posted by ChironeX-BF3*:

 

Hello,

 

I can't figure out how to include the player name on a ban reason, is there any way ?

This is what i am using:

 

On Say;Admin;Text !baserape;TargetPlayer;TargetAction Ban Baserape is not tolerated here

I would like to get:

Baserape is not tolerated here (name of target player)

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

Originally Posted by ty_ger07*:

 

Hello,

 

I can't figure out how to include the player name on a ban reason, is there any way ?

This is what i am using:

 

 

I would like to get:

 

Thx

Baserape is not tolerated here %p%
* 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.