LIMXION Posted July 10, 2021 Share Posted July 10, 2021 help! i use breaking warnning mod (https://steamcommunity.com/sharedfiles/filedetails/?id=1887331613) it's wonderful mod aganist griffers but if someone burn or destroy someting this mod announce ALL player ... i want to edit if some one break or burn somting annouce to host only what should edit i do ? --------------------------------------------------------------------------------------------------- mod text info common_string_warn = "" common_string_hammer = "" common_string_light = "" end local redskull = "" local _ACTION_HAMMER = GLOBAL.ACTIONS.HAMMER.fn GLOBAL.ACTIONS.HAMMER.fn = function(act) if act.doer and act.target and act.target.components.workable.workleft == 1 then if GetModConfigData("notice_method") == 1 then GLOBAL.TheNet:Announce(redskull..common_string_warn..act.doer:GetDisplayName()..common_string_hammer..act.target:GetDisplayName()..redskull) elseif GetModConfigData("notice_method") == 2 then GLOBAL.TheNet:SystemMessage(redskull..common_string_warn..act.doer:GetDisplayName()..common_string_hammer..act.target:GetDisplayName()..redskull) end if act.doer.userid then print(act.doer:GetDisplayName().."("..act.doer.userid..")"..common_string_hammer..act.target:GetDisplayName()) end end return _ACTION_HAMMER(act) end local _ACTION_LIGHT = GLOBAL.ACTIONS.LIGHT.fn GLOBAL.ACTIONS.LIGHT.fn = function(act) if act.doer and act.target then if GetModConfigData("notice_method") == 1 then GLOBAL.TheNet:Announce(redskull..common_string_warn..act.doer:GetDisplayName()..common_string_light..act.target:GetDisplayName()..redskull) elseif GetModConfigData("notice_method") == 2 then GLOBAL.TheNet:SystemMessage(redskull..common_string_warn..act.doer:GetDisplayName()..common_string_light..act.target:GetDisplayName()..redskull) end if act.doer.userid then print(act.doer:GetDisplayName().."("..act.doer.userid..")"..common_string_light..act.target:GetDisplayName()) end end return _ACTION_LIGHT(act) end Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now