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