Jump to content
  • 0
III_Si_III

Trying to find some old limits (insane limits or procon rules)

Question

Hiya, we have just started up a server again but lost a lot of our old limits we had written (well my friend wrote I am terrible at them). 

 

Does anyone have a decent sniper limit and KDR kicker for insane limits or something similar we could copy and past? 

 

many thanks. 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

i am sure that a collection of the important scripts will come back soon here on the forum.

but for the first you can use this:


proconrulz, sniper limit:

code:

###  ProconRulz - Sniper Limit

# IMPORTANT: HERE YOU CAN SET THE # OF SNIPER SLOT EACH TEAM:
On Kill;ServerFirst; Set %server_sniperlimit% 4
On Say;ServerFirst; Set %server_sniperlimit% 4

# KILL CHECK - RESERVE SNIPER-SLOT AFTER SNIPER KILL - NO FREE SLOT THAN KILL + MESSAGE
On Kill;Damage SniperRifle,DMR;
    If %server_global_snipers[%ptk%]% >= %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; Incr %sniperlimit_warning%; if %sniperlimit_warning% > 4; TeamSay SNIPER-LIMIT: %p% KICKED (20 min. timeban) by sniper limit (max %server_sniperlimit% snipers each team). Type !sniper; TempBan 1200 SNIPER-LIMIT - type !sniper to check the sniper slots before you use a sniper
    If %server_global_snipers[%ptk%]% >= %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; if %sniperlimit_warning% > 2; TeamSay SNIPER-LIMIT: %p% was KICKED by sniper limit (max %server_sniperlimit% snipers each team). Type !sniper; Kick SNIPER-LIMIT - type !sniper to check the sniper slots before you use a sniper
    If %server_global_snipers[%ptk%]% >= %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; TeamSay SNIPER-LIMIT: %p% was KILLED by sniper limit (max %server_sniperlimit% snipers each team). Type !sniper; PlayerYell KILLED by sniper limit - (warining %sniperlimit_warning%/2); Kill 100
    If %server_global_snipers[%ptk%]% < %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; Set %sniperlimit_warning% 0; Set %server_global_playersniperstatus[%p%][%ptk%]% 1; Incr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% have a sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%); PlayerSay SNIPER-LIMIT: Allowed weapons: Sniper, DMR, Pistol, Nades, Knife; PlayerYell YOU HAVE A SNIPER SLOT

# MAKE sniper-SLOT FREE AFTER NO sniper KILL - (allowed kills with sniper slot: sniper, Pistole, Nades, Knife, Vehicles...)
On Kill; Not Damage SniperRifle; Not Damage DMR;Not Damage Explosive;Not Damage Handgun;Not Damage Melee;Not Damage VehicleWater;Not Damage VehicleAir;Not Damage VehicleStationary;Not Damage VehiclePersonal;Not Damage VehicleTransport;Not Damage VehicleLight;Not Damage VehicleHeavy; Not Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,DamageArea,SoldierCollision,Death,RoadKill,VehicleUpsideDown,Suicide,U_BallisticShield,U_SUAV; ; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%); PlayerYell You lost your sniper slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%)

# SERVER LEAVE + TEAM SWITCH CHECK
On Spawn;
    if %ptk% != 0; if %server_global_playersniperstatus[%p%][0]% == 1; Set %server_global_playersniperstatus[%p%][0]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
    if %ptk% != 1; if %server_global_playersniperstatus[%p%][1]% == 1; Set %server_global_playersniperstatus[%p%][1]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
    if %ptk% != 2; if %server_global_playersniperstatus[%p%][2]% == 1; Set %server_global_playersniperstatus[%p%][2]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
    if %ptk% != 3; if %server_global_playersniperstatus[%p%][3]% == 1; Set %server_global_playersniperstatus[%p%][3]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%)

# !sniper IN-GAME-CHAT COMMAND
On Say;Text !sniper; Say SNIPER-LIMIT: Sniper are limited (max %server_sniperlimit% snipers each team).; TeamSay SNIPER-LIMIT: Currently: %server_global_snipers[%ptk%]% of %server_sniperlimit% for your team; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; PlayerSay SNIPER-LIMIT: You have a sniper slot!


###  ProconRulz - Sniper Limit END

insane limits, kd limit:

limit_evaluation: OnSpawn

limit_first_check: Code

limit_action: none

 

code:

//    KD LIMIT - ON SPAWN CHECK    //
// info > insane limits settings: limit_evaluation: OnSpawn     ;     limit_first_check: Code       ;        limit_action: none


// SETTINGS //

double MaxKD = 3.5;      // CUSTOMIZE: max KD (Battlelog current + all-time stats without stats reset)
bool PutReservedSlotsInWhitelist = true;      // CUSTOMIZE: true = all players with reserved slots are in the whitelist

// SETTING END //





// check on first spawn only
int checkDone = 0;
if (player.Data.issetInt("join_checker_" + player.Name)) checkDone = player.Data.getInt("join_checker_" + player.Name);
if (checkDone == 1) {return false;}

// VIP SLOT WHITELIST
if (PutReservedSlotsInWhitelist) {
    if (plugin.GetReservedSlotsList().Contains(player.Name)) {
        player.Data.setInt("join_checker_" + player.Name, 1);
        return false;
    }
}

// KD LIMIT
double TmpPlayerKD = player.Kdr;
double TmpPlayerKDv2 = Math.Round((player.Kills / player.Deaths), 2);
if (!(TmpPlayerKD >= 0)) { TmpPlayerKD = 0; }
if (!(TmpPlayerKDv2 >= 0)) { TmpPlayerKDv2 = 0; }

if ((TmpPlayerKD > MaxKD) || (TmpPlayerKDv2 > MaxKD)) {
    plugin.PRoConChat("IL > ^1^bKD LIMIT:^0^n " + player.Name + " KICKED by KD limit. Max KD " + MaxKD.ToString() + " > Player KD: " + TmpPlayerKD.ToString() + " (all-time: " + TmpPlayerKDv2.ToString() + ")");
    plugin.ConsoleWrite("IL > ^1^bKD LIMIT:^0^n " + player.Name + " KICKED by KD limit. Max KD " + MaxKD.ToString() + " > Player KD: " + TmpPlayerKD.ToString() + " (all-time: " + TmpPlayerKDv2.ToString() + ")");
    plugin.SendPlayerYell(player.Name, " [KD LIMIT]\n " + player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(), 15);
    plugin.SendPlayerMessage(player.Name, player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(),3);
    plugin.SendPlayerMessage(player.Name, player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(),10);
    // kick player with delay
    Thread Kicker1 = new Thread(new ThreadStart(delegate() {
        Thread.Sleep(10000);
        plugin.SendPlayerYell(player.Name, " [KD LIMIT]\n " + player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(), 10);
        Thread.Sleep(5000);
        plugin.KickPlayerWithMessage(player.Name, plugin.R("KD LIMIT: Kicked by KD limit (max " + MaxKD.ToString() + " KD in Battlelog/all time stats)"));
    }));
    Kicker1.IsBackground = true;
    Kicker1.Name = "kicker1";
    Kicker1.Start();
    return false;
}

player.Data.setInt("join_checker_" + player.Name, 1);

 

Share this post


Link to post
Share on other sites
  • 0

Just a quick question ... back when we hosted our old server, we noticed the players who were either cheating or suspect if you will ... they had very high KDs like 3.5+. What in your opinion would be a good range to set? I currently have our KD Limit set to 2.5.

Edited by Kracklin_Bacon

Share this post


Link to post
Share on other sites
  • 0

Hi,

Is it possible to turn on/off plugins from with in other plugins in BF4.

 

Example:

Have a vote system running at start of round in insane limits:

vote 1 - Sniper limit

vote 2 - No Sniper limit

 

If vote 1 meets target then turn on procon rulz where sniper limit code is.

If vote 2 meets target then turn off procon rulz.

 

Trying to find an easy way to get this functionality??  any ideas?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Our picks

    • Hi All,

      So I've been thinking about doing something like this for a while but I always talked myself out of it. I want to get some feedback on this idea and how many would think about using it if it was offered.

      In the past I know how hard it was for some users to get a MySQL database going and running the BFACP (since it's a bit requirement heavy in some cases). What I would be doing is offering to manage both of these for you.

      If enough interest was shown in something like this I would definitely think about doing it. Of course, I also know the risks I would be taking in something like this, but to list what I would be offering I guess is this.

      MySQL Hosting


      Daily backups of the database to a remote site & option to download it yourself.


      No limit on how big your database can be (within reason).




      BFACP Hosting (If running AdKats on your layers)


      This would run the newest version (v3.0)


      Will still be available to run on your own hardware


      Will have extra features that are not available for an open source setup (still need to think of good things )


      Able to use your own domain name with the proper DNS setup.




      Both Above



      Please let me know what you think of this idea and vote in the poll. Again not confirming anything like this will happen but if I get enough interest from the community for something like this then please let me know.

      Disclaimer: This will NOT be something affiliated with MyRCON but will be ran through it in terms of a payment processor.
      • 10 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.