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

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

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

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