Skip to content

Commit 4ef7d35

Browse files
authored
Merge pull request #8 from JarosLucky/patch-1
Устанавливаем score даже для тех, кто не донил у нас Вдруг игрок донил на другом проекте?
2 parents 2cb5343 + db3e308 commit 4ef7d35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addons/igs-core/lua/igs/processor_sv.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ local function updateBalance(pl, fOnFinish, bGiveBonuses)
4141

4242
if diff ~= 0 then -- баланс ~= nil и не 0 (? https://t.me/c/1353676159/45001)
4343
pl:SetIGSVar("igs_balance", now_igs_) -- НЕ ДОЛЖНО ВЫПОЛНЯТЬСЯ НА НЕ_КЛИЕНТОВ
44-
pl.igs_score = now_score_ -- #todo make netvar
4544
end
4645

46+
pl.igs_score = now_score_ -- #todo make netvar
47+
4748
if now_igs_ then -- значит есть транзакции
4849
recalcTransactionsAndBonuses(pl, bGiveBonuses)
4950
end

0 commit comments

Comments
 (0)