Да ладно, здесь немного другая политика. Вот на форуме сампа, только при одном упоминании о MTA, можно получить блокировку аккаунта. Ну по крайней мере раньше так было.
___
MTA поддерживает только замену объектов. Новые добавлять нельзя (разве что собрать собственную версию клиента). Как вариант, можно заменить объекты сампа на существующие (ГТАшные), но потом придется вручную изменять айди объектов в .map файле.
Try encode binary data to base64 and decode base64 encoded string back to binary.
local file = fileOpen("rec.jpg")
local content = fileRead(file,fileGetSize(file))
--local encode = teaEncode(content,"#qa$aJOAio4jikj!")
local encode = teaEncode(base64Encode(content),"#qa$aJOAio4jikj!")
fileClose(file)
fileDelete("rec.jpg")
local file = fileCreate("rec.jpg")
fileWrite(file,encode)
fileClose(file)
function restoreFile()
fileDelete("rec.jpg")
local image = fileCreate("rec.jpg")
--fileWrite(image,teaDecode(encode,"#qa$aJOAio4jikj!"))
fileWrite(image,base64Decode(teaDecode(encode,"#qa$aJOAio4jikj!")))
fileClose(image)
end
addCommandHandler("restore",restoreFile)