moonloader

DaloikoWhat

Активный
Автор темы
98
58
Кароч как сделать так чтобы если у игрока больше 10кк то скрипт говорит привет и выключается
 

БеzликиЙ

Автор темы
Проверенный
1,101
685
fuck.lua:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(0) end
    repeat -- это ожидание момента, когда игрок зайдёт на сервер
        wait(0)
        _, my_id = sampGetPlayerIdByCharHandle(PLAYER_PED)
        my_name = sampGetPlayerNickname(my_id)
        if _ then score = sampGetPlayerScore(my_id) end
    until score > 0
    if getPlayerMoney(PLAYER_HANDLE) > 10000000 then
        sampAddChatMessage("Привет", -1)
    end
end