Jump to content

Reset K,D,R

Not a Bug 2.0.3

Ovniper
Ovniper

Posted

I would like the plugin to reset the player kills, deaths and ratio when they leave the server

David

Posted

Hey, unfortunately I cant add every request into public version but I can help you out. 

Add this block of code into plugin. 
 

void OnPlayerDisconnected(BasePlayer player, string reason)
{ 
	if (player == null) return;
	if (_playerData.ContainsKey(player.userID))
	{   
		_playerData[player.userID].Kills = 0;
		_playerData[player.userID].Death = 0;
	}
}


here for example

image.thumb.png.d11ddcd27d779f30cf06d7b6fa22d1ef.png

David

Posted

Changed Status from Pending to Not a Bug

kavalev.75

Posted

купил не могу скачатЬ

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.8k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

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.