DarkRP.Player.ResetDMCounter
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: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.ResetDMCounter]Player:ResetDMCounter[/url][/b] |
Examples[edit]
Description | Reset's the death-match counter for all players every 3 seconds. |
---|---|
Used on | ![]() |
Code | timer.Create( "anti_anti_dm", 3, 0, UndoDM)
function UndoDM( )
for k, v in pairs(player.GetAll()) do
v:ResetDMCounter()
end
end
|
Output | N/A |
Additional Notes[edit]
- Notice: This will set the players kills to 0.