DarkRP.Player.ResetDMCounter

From Official DarkRP Wiki
Jump to navigation Jump to search
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.
Check here for a up-to-date list of functions.
Function
Function name Player:ResetDMCounter()
Description:
Overrides DarkRP's death-matching feature, calling this every so often will prevent users from getting kicked because of death-matching.
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.ResetDMCounter]Player:ResetDMCounter[/url][/b]

Examples

DescriptionReset's the death-match counter for all players every 3 seconds.
Used onNewerServer.png
Code
timer.Create( "anti_anti_dm", 3, 0, UndoDM)
function UndoDM( )
	for k, v in pairs(player.GetAll()) do
   		v:ResetDMCounter()
	end
end
OutputN/A


Additional Notes

  • Notice: This will set the players kills to 0.