Jump to content

Insane Limits: Service Stars / Ingame Stats


ImportBot

Recommended Posts

Originally Posted by LumPenPacK*:

 

These limits can show ingame weapon service stars or stats from the person who killed you.

 

 

Idea:

Since Battlefield 4 doesn't show you weapon service stars in kill cam, I wrote this limit that can write some stats into the chat as a private message.

 

This limit also works with Battlefield 3 and it could be also useful there since the ingame service stars are limited to 100 but there are a lot of players with more than 100 service stars with one weapon.

 

The limit takes the information from Battlelog, so it generates some traffic on your layer. I don't know yet whether this could cause some problems especially because Battlelog cache isn't supported for BF4 at the moment.

But basically it shouldn't be a problem because this limit only takes the weapon stats when someone wants to know it.

 

Not correct. Stats are fetched on player join or plugin enable for existing players. The function assumes the stats are already there.

Full weapon stats are fetched for every player in the server, whether they are used or not. This is particularly expensive for BF3, since the weapon stats are huge, several megabytes of text per player.

Usage option 1: Battlefield 3 + Battlefield 4

 

You have been killed and you want to know how many service stars your killer has with that weapon.

 

Write !stars into the chat and you'll see the service stats, the usage percentage of this weapons and the total kills:

 

Posted Image

 

 

First limit:

 

On Death

Code

Code:

player.Data.setString("LastDeathWeapon", kill.Weapon);
player.Data.setString("LastKiller", killer.Name);
return false;
Second limit:

 

OnAnyChat

Expression

Code:

player.LastChat.StartsWith("!stars")
Code

Code:

if (player.Data.issetString("LastKiller")) {
String LastKiller = player.Data.getString("LastKiller");
String LastDeathWeapon = player.Data.getString("LastDeathWeapon");
PlayerInfoInterface LastKillerInterface = plugin.GetPlayer(LastKiller, false);

if (LastKillerInterface != null) {
BattlelogWeaponStatsInterface WeaponStats = LastKillerInterface.GetBattlelog(LastDeathWeapon);
    
if (WeaponStats != null) {
double WeaponTotalKills = WeaponStats.Kills; 
if (WeaponTotalKills > 0) {
double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/LastKillerInterface.Kills*100);
double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
plugin.SendPlayerMessage(player.Name, plugin.R ("\nKiller: " +LastKiller+ " with " + (plugin.FriendlyWeaponName(LastDeathWeapon).Name) + " || ServSt: " + ServiceStars + "\nUsage percentage: " + WeaponUsagePercentage + "% || Kills with all weapons: " + LastKillerInterface.Kills));
}
else
plugin.SendPlayerMessage(player.Name, plugin.R ("No weapon stats available yet."));
}
}
}
else
plugin.SendPlayerMessage(player.Name, plugin.R ("Nobody has killed you yet."));

return false;
If you dont't use Battlelog Cache, you should set use_slow_weapon_stats to true.

 

Usage option 2: Battlefield 4

 

V10cIPX.jpgmessagesOff.png

 

Players can enable/disable messages with @servicestars command. If it's enabled it shows service stars on every death.

 

First limit

OnAnyChat

Expression

Code:

player.LastChat.StartsWith("@servicestars")
Code

Code:

if (!player.Data.issetBool("NoYell")) {
player.Data.setBool("NoYell", false);
plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages on"),5);
return false;
}

if(player.Data.getBool("NoYell")) {
player.Data.setBool("NoYell", false);
plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages on"),5);
}
else {
player.Data.setBool("NoYell", true);
plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages off"),5);
}
return false;
Second Limit

 

OnDeath

Code

Code:

if (!player.Data.issetBool("NoYell"))
player.Data.setBool("NoYell", true);

if (player.Data.getBool("NoYell")) 
return false;
else {
if (killer.Name != null) {
BattlelogWeaponStatsInterface WeaponStats = killer.GetBattlelog(kill.Weapon);
if (WeaponStats != null) {
double WeaponTotalKills = WeaponStats.Kills; 
if (WeaponTotalKills > 0) {
double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/killer.Kills*100);
double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
plugin.SendPlayerYell(player.Name, plugin.R ("\nKiller: " +killer.Name+ " with " + (plugin.FriendlyWeaponName(kill.Weapon).Name) + "\nService Stars: " + ServiceStars + "\n" + WeaponUsagePercentage + "% of all "  + killer.Kills + " kills."), 6);
}
}
}
}

return false;
Usage option 3: Battlefield 4 - Show round stats: Headshots, Kills, Deaths, KDR [...]

 

Players can enable/disable messages with @servicestars command. If it's enabled it shows service stars on every death.

 

First limit

OnAnyChat

Expression

Code:

player.LastChat.StartsWith("@killerstats")
Code

Code:

if (!player.Data.issetBool("NoYell")) {
player.Data.setBool("NoYell", false);
plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages on"),5);
return false;
}

if(player.Data.getBool("NoYell")) {
player.Data.setBool("NoYell", false);
plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages on"),5);
}
else {
player.Data.setBool("NoYell", true);
plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages off"),5);
}
return false;
Second Limit

OnDeath

Code

Code:

if (!player.Data.issetBool("NoYell"))
player.Data.setBool("NoYell", true);

if (player.Data.getBool("NoYell")) 
return false;
else {
if (killer.Name != null) {
plugin.SendPlayerYell(player.Name, plugin.R ("Stats for " + killer.Name + ": \nHeadshots: " + killer.HeadshotsRound + " Kills: " + killer.KillsRound + "\nDeaths "  + killer.DeathsRound + " KDR: " + Math.Round(killer.KdrRound, 2) ), 6);
}
}
return false;

Attached Files:

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 75
  • Created
  • Last Reply

Originally Posted by PapaCharlie9*:

 

Cool! That's a handy limit to have.

 

The limit takes the information from Battlelog, so it generates some traffic on your layer. I don't know yet whether this could cause some problems especially because Battlelog cache isn't supported for BF4 at the moment.

But basically it shouldn't be a problem because this limit only takes the weapon stats when someone wants to know it.

That's not correct. Full weapon stats are fetched for every player in the server, whether they are used or not. This is particularly expensive for BF3, since the weapon stats are huge, several megabytes of text per player.

 

If you dont't use Battlelog Cache, you should set use_slow_weapon_stats to true.

That setting is required to be True whether you use BattlelogCache or not.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LumPenPacK*:

 

That's not correct. Full weapon stats are fetched for every player in the server, whether they are used or not. This is particularly expensive for BF3, since the weapon stats are huge, several megabytes of text per player.

Good to know. I thought IL only pick up the needed stats.

 

But in this case, IL should only fetches the stats when the player.GetBattlelog-function is called and not when a player is joining, or is that also not correct?

 

 

That setting is required to be True whether you use BattlelogCache or not.

When I disable use_direct_fetch in order to use BL-Cache there is no option to enable or disable use_slow_weapon_stats

 

Posted Image

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

Originally Posted by PapaCharlie9*:

 

Good to know. I thought IL only pick up the needed stats.

 

But in this case, IL should only fetches the stats when the player.GetBattlelog-function is called and not when a player is joining, or is that also not correct?

Not correct. Stats are fetched on player join or plugin enable for existing players. The function assumes the stats are already there.

 

When I disable use_direct_fetch in order to use BL-Cache there is no option to enable or disable use_slow_weapon_stats

I know, those settings are confusing. I'll try to explain.

 

Start be remembering this: If BattlelogCache is available, Insane Limits always uses it. There's no setting, it just uses it.

 

If BattlelogCache is not available, you can decide whether to fetch stats directly (use_direct_fetch is True) or not fetch stats at all (use_direct_fetch is False). Though note that even if you set use_direct_fetch to false, clan tags are still fetched directly, because IL requires clan tags to work properly.

 

Whether using direct fetch or BattlelogCache, weapon stats fetching is controlled by use_slow_weapon_stats, so that setting has to be true for both BattlelogCache and direct fetch for your limit to work.

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

Originally Posted by LumPenPacK*:

 

Not correct. Stats are fetched on player join or plugin enable for existing players. The function assumes the stats are already there.

Okay, I didn't know that. In this case it was a little bit useless to split it into two limits with the intention of keeping the BL request on a minimum. Instead this limit could also show the service stars to everyone on every death with a yell message (with an option to enable or disable it)

 

V10cIPX.jpg

 

BTW: Funny fact: I took this random screenshot and it was exactly the same player as on the random screenshot I took hours ago...

 

 

I know, those settings are confusing. I'll try to explain.

 

Start be remembering this: If BattlelogCache is available, Insane Limits always uses it. There's no setting, it just uses it.

 

If BattlelogCache is not available, you can decide whether to fetch stats directly (use_direct_fetch is True) or not fetch stats at all (use_direct_fetch is False). Though note that even if you set use_direct_fetch to false, clan tags are still fetched directly, because IL requires clan tags to work properly.

 

Whether using direct fetch or BattlelogCache, weapon stats fetching is controlled by use_slow_weapon_stats, so that setting has to be true for both BattlelogCache and direct fetch for your limit to work.

All clear, thanks for the clarification.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Okay, I didn't know that. In this case it was a little bit useless to split it into two limits with the intention of keeping the BL request on a minimum. Instead this limit could also show the service stars to everyone on every death with a yell message (with an option to enable or disable it)

 

V10cIPX.jpg

 

BTW: Funny fact: I took this random screenshot and it was exactly the same player as on the random screenshot I took hours ago...

Sweet! I didn't realize that yells are visible during killcam. That wasn't true in BF3.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 months later...

Originally Posted by LumPenPacK*:

 

Try this one with usage option 2 as second limit: (not tested)

 

Code:

if (!player.Data.issetBool("NoYell"))
	player.Data.setBool("NoYell", true);

if (player.Data.getBool("NoYell")) 
	return false;
else {
	if (killer.Name != null) {
		BattlelogWeaponStatsInterface WeaponStats = killer.GetBattlelog(kill.Weapon);			
		if (WeaponStats != null) {
		double WeaponTotalKills = WeaponStats.Kills; 
			if (WeaponTotalKills > 0) {
			double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/killer.Kills*100);
			double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
			plugin.SendPlayerYell(player.Name, plugin.R ("\nHeadshot %: " + Math.Round((player.HeadshotsTotal/player.KillsTotal)*100, 2)+ " Kills: " + player.KillsTotal + " Deaths: " + player.DeathsTotal + "\nK/D Ratio:" + player.KdrTotal + " Score: "  + killer.Kills + " player.ScoreTotal"), 6);
			}
		}
	}				
}

return false;
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by LumPenPacK*:

 

i keep getting the message ... after i press @stars after been kill

....No weapon stats available yet......

is there something missing i forgot ?

This could have different reasons.

 

You are talking about BF3, right? Do you use Battlelog Cache, if yes make sure it is working correct. If you don't use it, make sure that you have set use_slow_weapon_stats to true.

Another reason could be that not every kill can be allocated with service stars since not every weapons have BL stats. Sometimes it could also happen players have no service stars with a weapon yet.

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

Originally Posted by FLirtY-3D*:

 

thankyou... thats was the problem....

 

is there a way for it just to give the totalkills for the select weapon....

or does it have to be all kills across all weapons ?

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

Originally Posted by LumPenPacK*:

 

thankyou... thats was the problem....

 

is there a way for it just to give the totalkills for the select weapon....

or does it have to be all kills across all weapons ?

You could try this one as

 

Second Limit

 

OnDeath:

 

Code:

if (!player.Data.issetBool("NoYell"))
	player.Data.setBool("NoYell", true);

if (player.Data.getBool("NoYell")) 
	return false;
else {
	if (killer.Name != null) {
		BattlelogWeaponStatsInterface WeaponStats = killer.GetBattlelog(kill.Weapon);			
		if (WeaponStats != null) {
		double WeaponTotalKills = WeaponStats.Kills; 
			if (WeaponTotalKills > 0) {
			double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/killer.Kills*100);
			double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
			plugin.SendPlayerYell(player.Name, plugin.R ("\nKiller: " +killer.Name+ " with " + (plugin.FriendlyWeaponName(kill.Weapon).Name) + "\nWeapon kills: " + WeaponTotalKills + "\n" + WeaponUsagePercentage + "% of all "  + killer.Kills + " kills."), 6);
			}
		}
	}				
}

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

Originally Posted by FLirtY-3D*:

 

You could try this one as

 

Second Limit

 

OnDeath:

 

Code:

if (!player.Data.issetBool("NoYell"))
	player.Data.setBool("NoYell", true);

if (player.Data.getBool("NoYell")) 
	return false;
else {
	if (killer.Name != null) {
		BattlelogWeaponStatsInterface WeaponStats = killer.GetBattlelog(kill.Weapon);			
		if (WeaponStats != null) {
		double WeaponTotalKills = WeaponStats.Kills; 
			if (WeaponTotalKills > 0) {
			double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/killer.Kills*100);
			double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
			plugin.SendPlayerYell(player.Name, plugin.R ("\nKiller: " +killer.Name+ " with " + (plugin.FriendlyWeaponName(kill.Weapon).Name) + "\nWeapon kills: " + WeaponTotalKills + "\n" + WeaponUsagePercentage + "% of all "  + killer.Kills + " kills."), 6);
			}
		}
	}				
}

return false;
i was under the impression that code Usage option 2: was for Battlefield 4 ? sorry if i wrong..... this is for a bf3 server should've said earlier..... my bad

is there no way to just change the end bit on the old code so it shows all kills for the selected weapon... instead of player total kills on all weapons.... as it says kills with all weapons... as you no...

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

Originally Posted by LumPenPacK*:

 

Sorry, my fault, I modified the wrong code.

Here's the code for BF3

 

Code:

if (player.Data.issetString("LastKiller")) {
	String LastKiller = player.Data.getString("LastKiller");
	String LastDeathWeapon = player.Data.getString("LastDeathWeapon");
	PlayerInfoInterface LastKillerInterface = plugin.GetPlayer(LastKiller, false);
	
	if (LastKillerInterface != null) {
		BattlelogWeaponStatsInterface WeaponStats = LastKillerInterface.GetBattlelog(LastDeathWeapon);
			    
		if (WeaponStats != null) {
		double WeaponTotalKills = WeaponStats.Kills; 
			if (WeaponTotalKills > 0) {
			double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/LastKillerInterface.Kills*100);
			double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
			plugin.SendPlayerMessage(player.Name, plugin.R ("\nKiller: " +LastKiller+ " with " + (plugin.FriendlyWeaponName(LastDeathWeapon).Name) + " || Servive Stars: " + ServiceStars + "\nAll weapon kills " + WeaponStats.Kills ));
			}
			else
			plugin.SendPlayerMessage(player.Name, plugin.R ("No weapon stats available yet."));
		}
	}				
}
else
plugin.SendPlayerMessage(player.Name, plugin.R ("Nobody has killed you yet."));

return false;
This shows: Service Stars and total weapon kills.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by FLirtY-3D*:

 

Sorry, my fault, I modified the wrong code.

Here's the code for BF3

 

Code:

if (player.Data.issetString("LastKiller")) {
	String LastKiller = player.Data.getString("LastKiller");
	String LastDeathWeapon = player.Data.getString("LastDeathWeapon");
	PlayerInfoInterface LastKillerInterface = plugin.GetPlayer(LastKiller, false);
	
	if (LastKillerInterface != null) {
		BattlelogWeaponStatsInterface WeaponStats = LastKillerInterface.GetBattlelog(LastDeathWeapon);
			    
		if (WeaponStats != null) {
		double WeaponTotalKills = WeaponStats.Kills; 
			if (WeaponTotalKills > 0) {
			double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/LastKillerInterface.Kills*100);
			double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
			plugin.SendPlayerMessage(player.Name, plugin.R ("\nKiller: " +LastKiller+ " with " + (plugin.FriendlyWeaponName(LastDeathWeapon).Name) + " || Servive Stars: " + ServiceStars + "\nAll weapon kills " + WeaponStats.Kills );
			}
			else
			plugin.SendPlayerMessage(player.Name, plugin.R ("No weapon stats available yet."));
		}
	}				
}
else
plugin.SendPlayerMessage(player.Name, plugin.R ("Nobody has killed you yet."));

return false;
This shows: Service Stars and total weapon kills.
get this messages with the updated code..

[11:55:43 45] [insane Limits] Compiling Limit #5 - @stars info - OnAnyChat

[11:55:43 51] [insane Limits] ERROR: 1 error compiling Expression

[11:55:43 51] [insane Limits] ERROR: (CS1026, line: 55, column: 235): ) expected

 

can i keep the WeaponUsagePercentage aswell thankyou mate .....

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

Originally Posted by FLirtY-3D*:

 

sure.... the same code section _... would like to keep WeaponUsagePercentage in the code two...

so it shows killer name his weapon name service stars usage precantage and the ammount of kills on that weapon....

 

i feel bad taking you from your game.... to do this.... i dont mind if you do it later no rush ....

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

Originally Posted by FLirtY-3D*:

 

Code:

if (player.Data.issetString("LastKiller")) {
	String LastKiller = player.Data.getString("LastKiller");
	String LastDeathWeapon = player.Data.getString("LastDeathWeapon");
	PlayerInfoInterface LastKillerInterface = plugin.GetPlayer(LastKiller, false);
	
	if (LastKillerInterface != null) {
		BattlelogWeaponStatsInterface WeaponStats = LastKillerInterface.GetBattlelog(LastDeathWeapon);
			    
		if (WeaponStats != null) {
		double WeaponTotalKills = WeaponStats.Kills; 
			if (WeaponTotalKills > 0) {
			double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/LastKillerInterface.Kills*100);
			double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
			plugin.SendPlayerMessage(player.Name, plugin.R ("\nKiller: " +LastKiller+ " with " + (plugin.FriendlyWeaponName(LastDeathWeapon).Name) + " || ServSt: " + ServiceStars + "\nUsage percentage: " + WeaponUsagePercentage + "% || Total weapon kills " + WeaponStats.Kills ));
			}
			else
			plugin.SendPlayerMessage(player.Name, plugin.R ("No weapon stats available yet."));
		}
	}				
}
else
plugin.SendPlayerMessage(player.Name, plugin.R ("Nobody has killed you yet."));

return false;
ok i worked it out from what you sent me ... this code is showing

killername

weapon used

srtstars

usage %

and total kills on that weapon....

 

you been a great big help and amzing work on your server i enjoy it alot as you well no...... should come by ours oneday i warn you tho is madness lol ........

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

Originally Posted by LumPenPacK*:

 

Code:

if (player.Data.issetString("LastKiller")) {
	String LastKiller = player.Data.getString("LastKiller");
	String LastDeathWeapon = player.Data.getString("LastDeathWeapon");
	PlayerInfoInterface LastKillerInterface = plugin.GetPlayer(LastKiller, false);
	
	if (LastKillerInterface != null) {
		BattlelogWeaponStatsInterface WeaponStats = LastKillerInterface.GetBattlelog(LastDeathWeapon);
			    
		if (WeaponStats != null) {
		double WeaponTotalKills = WeaponStats.Kills; 
			if (WeaponTotalKills > 0) {
			double WeaponUsagePercentage = Convert.ToInt32(WeaponTotalKills/LastKillerInterface.Kills*100);
			double ServiceStars = Convert.ToInt32(WeaponTotalKills/100);
			plugin.SendPlayerMessage(player.Name, plugin.R ("\nKiller: " +LastKiller+ " with " + (plugin.FriendlyWeaponName(LastDeathWeapon).Name) + " || ServSt: " + ServiceStars + "\nUsage percentage: " + WeaponUsagePercentage + "% || Total weapon kills " + WeaponStats.Kills ));
			}
			else
			plugin.SendPlayerMessage(player.Name, plugin.R ("No weapon stats available yet."));
		}
	}				
}
else
plugin.SendPlayerMessage(player.Name, plugin.R ("Nobody has killed you yet."));

return false;
ok i worked it out from what you sent me ... this code is showing

killername

weapon used

srtstars

usage %

and total kills on that weapon....

 

you been a great big help and amzing work on your server i enjoy it alot as you well no...... should come by ours oneday i warn you tho is madness lol ........

You got everything you want now? Nice :smile:

 

What's your server name? But I think I wouldn't enjoy it without a m16 limit :P

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

Originally Posted by FLirtY-3D*:

 

You got everything you want now? Nice :smile:

 

What's your server name? But I think I wouldn't enjoy it without a m16 limit :P

-={ATF}=- 24/7 METRO MADNESS 1000 TICKETS (PBBans + PBScreens)

 

yah gets a little crazy.. but we have a no explosives friday-satday-sunday

rest week we run a nade limit....

really good fun when you get some good teams... run MB with unstacker and rank 100 spliter ... we let clan tags play together tho..

 

going have to show me that m416 and m16 limit program one day... not sure it will go down well on our server tho... but who knows lol

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

Originally Posted by Tomgun*:

 

ive been away for a while so havent replied..

 

I was hoping for it to give details of the current round in the following format (not from battlelog)

 

Headshots

Kills

Deaths

KDR

 

in form of a yell, this is to help point out possible dodgy players

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

Originally Posted by LumPenPacK*:

 

ive been away for a while so havent replied..

 

I was hoping for it to give details of the current round in the following format (not from battlelog)

 

Headshots

Kills

Deaths

KDR

 

in form of a yell, this is to help point out possible dodgy players

Do you want to show the overall round headshots/kills or only the headshots/kills with weapon the player killed you?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LumPenPacK*:

 

just the player that killed.. otherwise is wouldnt really point anyone out :P

I mean: Do you want to show all round kills/headshots from one specific player or only all round kills/headhsots from one specific player with the last weapon the player was using.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Tomgun*:

 

aarrhh the whole round, if someone is using an aimbot and multiple weapons I wanna see how many headshots and kdr they are getting even if they swap about weapons each time they kill and everyone else can see it also.. a little deterrent maybe :ohmy:

 

sorry for the lack of explanation on my part :ohmy:

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

Originally Posted by LumPenPacK*:

 

Since you don't need any BL stats for this, the code is only that small and simple:

 

Usage option 2

Second Limit

OnDeath

 

Code:

if (!player.Data.issetBool("NoYell"))
player.Data.setBool("NoYell", true);

if (player.Data.getBool("NoYell")) 
return false;
else {
if (killer.Name != null) {
plugin.SendPlayerYell(player.Name, plugin.R ("\nHeadshots: " + killer.HeadshotsRound + " Kills: " + killer.KillsRound + "\nDeaths "  + killer.DeathsRound + " KDR: " + killer.KdrRound ), 6);
}
}

return false;
This shows on every kill:

 

Player's round Headshots with all weapons as a total number.

Player's round Kills with all weapons as a total number.

Player's round Deaths.

Player's round KDR.

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

Originally Posted by Tomgun*:

 

ok right lets see if I got this right

 

first limit

 

first check, OnAnyChat, Expression

player.LastChat.StartsWith("@killstats")

second check, Code

if (!player.Data.issetBool("NoYell")) {

player.Data.setBool("NoYell", false);

plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages on"),5);

return false;

}

 

if(player.Data.getBool("NoYell")) {

player.Data.setBool("NoYell", false);

plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages on"),5);

}

else {

player.Data.setBool("NoYell", true);

plugin.SendPlayerYell(player.Name, plugin.R ("\nMessages off"),5);

}

return false

second limit

 

First check, OnDeath, Code

if (!player.Data.issetBool("NoYell"))

player.Data.setBool("NoYell", true);

 

if (player.Data.getBool("NoYell"))

return false;

else {

if (killer.Name != null) {

plugin.SendPlayerYell(player.Name, plugin.R ("\nHeadshots: " + killer.HeadshotsRound + " Kills: " + killer.KillsRound + "\nDeaths " + killer.DeathsRound + " KDR: " + KdrRound ), 6);

}

}

 

return false;

so I can turn it on or off saying @killstats and when its on it will show on every kill

 

Player's round Headshots with all weapons as a total number.

Player's round Kills with all weapons as a total number.

Player's round Deaths.

Player's round KDR.

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

Originally Posted by Tomgun*:

 

its saying this in procon

 

[10:43:34 51] [insane Limits] Thread(settings): ERROR: 1 error compiling Expression

[10:43:34 51] [insane Limits] Thread(settings): ERROR: (CS1002, line: 56, column: 25): ; expected

[10:43:34 51] [insane Limits] Thread(settings): Compiling Limit #4 - Yell stats on death - OnDeath

[10:43:34 55] [insane Limits] Thread(settings): ERROR: 1 error compiling Code

[10:43:34 55] [insane Limits] Thread(settings): ERROR: (CS0103, line: 34, column: 183): The name 'KdrRound' does not exist in the current context

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

Archived

This topic is now archived and is closed to further replies.




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