Tebex [FREE]: https://mskscripts.tebex.io/package/5094814
Documentation: https://msk-scripts.gitbook.io…ripts/msk-scripts/welcome
Description
- Set the maxDeaths allowed before the Character gets blocked
- Set Admingroups that are allowed to use the Commands
- Playerdeaths are saved in database users table
Commands
- /deathcounter ID - shows the current deathcount
- /deathcounter ID reset - resets the current deathcount to 0
- /deathcounter ID set deathcount - sets the current deathcount to a specific count
Config
Code
Config = {}
----------------------------------------------------------------
Config.Locale = 'de' -- 'de', 'en'
Config.VersionChecker = true
Config.Debug = true
Config.getSharedObject = 'esx:getSharedObject'
----------------------------------------------------------------
Config.maxDeaths = 45
Config.Groups = {'superadmin', 'admin'}
----------------------------------------------------------------
-- !!! This function is client AND serverside !!!
function notification(src, type, xPlayer, message) -- xPlayer = ESX.GetPlayerFromId(src)
if type == 'client' then
ESX.ShowNotification(message)
elseif type == 'server' then
xPlayer.showNotification(message)
end
end
Alles anzeigen
Installation
Please look at the documentation: https://msk-scripts.gitbook.io…thcounter/getting-started
Requirements
- ESX 1.2 (v1-final) // I only tested it with ESX 1.2 (v1-final) so I can't give you support for other version but it should work too
- myMultichar