It's difficult to install it because of additional git's signs, example:
+local function addAssistsPoints(attackerId, target)
+ if not attackerId or type(attackerId) ~= 'number' then
+ return
+ end
+
+ if not target or type(target) ~= 'userdata' or not target:isPlayer() then
+ return
+ end
+
+ local ignoreIds = {attackerId, target:getId()}
+ for id in pairs(target:getDamageMap()) do
+ local tmpPlayer = Player(id)
+ if tmpPlayer and not isInArray(ignoreIds, id) then
+ tmpPlayer:setStorageValue(STORAGEVALUE_ASSISTS, math.max(0, tmpPlayer:getStorageValue(STORAGEVALUE_ASSISTS)) + 1)
+ end
+ end
+end
+
I mean pluses and minuses. Can someone post clean code? I tried to clean it up by myself but i receive errors I can't remove (lack of lua skills)