Pay Day Master

Pesto

Участник
Автор темы
192
12
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R2
Ищу скрипт, который во время Пей Дея выводит в банковский чек, сколько я за час заработал.
 

Вложения

  • sa-mp-049.png
    sa-mp-049.png
    1.4 MB · Просмотры: 167

Hideme Flow

Известный
555
193
Lua:
script_name("[ARZ] PayDayMaster")
script_author("Boberich")
require "lib.moonloader"
sp = require "lib.samp.events"
inicfg = require 'inicfg'
mainini = inicfg.load({
obnylenie =
{
    day = os.date("%a"),
    shet = tonumber(0),
    online = tonumber(0)
}
}, "PayDayMaster")
inicfg.save(mainini, 'PayDayMaster.ini')
function sp.onServerMessage(clr, text)
    if text:find("Депозит в банке: $%d") and not text:find("говорит") then
        depoz = text:match("Депозит в банке: $(%d+)")
    elseif text:find("Сумма к выплате: $%d") and not text:find("говорит") then
        zp = text:match("Сумма к выплате: $(%d+)")
    elseif text:find("Текущая сумма в банке:") and not text:find("говорит") then
        mainini.obnylenie.shet = zp + depoz + mainini.obnylenie.shet
        if inicfg.save(mainini, "PayDayMaster.ini") then
            sampAddChatMessage("Заработано с PayDay`ев $"..mainini.obnylenie.shet, -1)
        end
    end
end
 

Вложения

  • PayDayMaster.lua
    962 байт · Просмотры: 53
  • Нравится
Реакции: rvng