Jump to content
  • 0

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


III_Si_III

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. 

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • Plugin Developer

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);

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Hello iamadeadpixel,

Punkbuster is active.

when i activate the plugin i only get these messages.
[13:40:28 17] [Insane Limits] Battlelog Cache plugin will be used for stats fetching!
[13:40:28 37] [Insane Limits] Thread (activator): Waiting for privacy_policy_agreement value
[13:40:28 37] [Insane Limits] Thread (activator): Agreement received, activating plugin now!
[13:40:31 35] [Insane Limits] Thread (settings): Version = 0.9.17.0
[13:40:34 41] [Insane Limits] Thread (fetch): DONE inserting 1 new players, 0 still in queue, took a total of 2 secs

Link to comment
Share on other sites

Ejh, ok..

 

Try this, this is a troll script.

	Works best on: BF3 / BF4
name: anti hacker trol
evaluation: onintervalserver
evaluation_interval 900
	first_check: code
 
	// AntiHacker Troll - Limit 1 of 1
// v1.0 - OnIntervalServer - first_check
//
	String[] sMsgs = { "[PBBANS] Potential Hacker Detected...",
                   "[PBBANS] Running Server-side Scan..." };
	plugin.SendGlobalYell("\n" + sMsgs[0] + "\n" + sMsgs[1], 8);
for (int i = 0; i < sMsgs.Length; i++)
{
    plugin.SendGlobalMessage(sMsgs[i]);
}
	return false;
	

Link to comment
Share on other sites

Hello maxdralle,

my server is running at Gamed! they put on the new Procon version today and I also use the new Procon version.

I deleted the file on my Server PluginCache.xml and a new PluginCache.xml file was created.

Unfortunately, the commands still don't work.

Here is an example:

image.png.20a609f6915e671cc6f0b823352849e7.png

Link to comment
Share on other sites

  • Plugin Developer

ohh no, please not gamed.de... few years ago the provider gamed.de does blocking many things in the procon layer server, (file permission, ips etc). you can not use the plugin insane limits on this provider...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further 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.