Автор Тема: vc-torcie_mind.dll (Alpha)  (Прочитано 3283 раз)

Оффлайн Jak łaska za praca

  • Прохожий
  • *
  • Сообщений: 58
  • Репутация: +1/-0
  • Как украшение на торт
    • aktel999
    • Просмотр профиля
vc-torcie_mind.dll (Alpha)
« : Июль 01, 2016, 05:52:55 pm »
Список функций:
Cmd_AddCommand("command_name", lua_callback, "desc") // Создать комманду
int Cvar_Get("var_name", "def_value", "desc") // Создать переменую
int Cmd_Argc() // Получить количество аргументов комманды
string Cmd_Argv(arg_num) //Получить строковой аргумент
int Q_atoi("string") //String to Integer
int CvGetInt(convar) // Получить переменную как int
string CvGetString(convar) // Получить переменную как String
CvSetInt(convar, integer) // Задать Int переменной.
CvSetString(convar, "new_value") // Задать String переменной.
Cmd_RemoveCommand("command_name") // Удалить комманду.
string FS_LoadFile("path", out_leght) // Загрузить файл
Mem_Free(pointer) // Закрыть файл
Msg("message"); // Вывести в консоль

Пример:
local function mission_complete()
 GXT_AddBigMessageWithNumber("M_PASS", 5000, 0, 100) 
 PlayMusic(1)
 SetPlayerMoney(PLAYER_CHAR, GetPlayerMoney(PLAYER_CHAR) + 100)
 MISSION_COMPLETE = 1
 
 ICON_MISSION_1 = nil
 ICON_MISSION_2 = CreateBlip(4, 77.3075, -879.1083, 10.4481, 2, 3)
 SetBlipSprite(ICON_MISSION_2, 6)
 Msg("Mission_complete")
 mission_end()
end

function MISSION_1()
Cmd_AddCommand("mission_complete", mission_complete, "Description for command")
end

Команды:
   show_console   
exec_as            execute a as file
    exec_c            execute a c file Tiny C Compiler
   memlist            prints memory pool information
      exec            execute a script file
   fs_path            show filesystem search pathes
  unsetall            reset all console variables to their default values
  cvarlist            display all console variables beginning with the specified prefix
     latch            apply latched values
     reset            reset any type variable to initial value
       set            create or change the value of a console variable
    toggle            toggles a console variable's values (use for more info)
     alias            create a script function. Without arguments show the list of all alias
 stuffcmds            execute commandline parameters (must be present in main script)
   cmdlist            display all console commands beginning with the specified prefix
      wait            make script execution wait for some rendered frames
      echo            print a message to the console (useful in scripts)
17 commands

Чтобы открыть консоль запустите gta-vc.exe с параметром -console или в autoexec.cfg напишете show_console.

Скачать:
http://rgho.st/8R64CGx7d 350 кбайт.

P.s Warning это альфа версия дополнения.
Украшаю торты на своих вечеринках, классных вечеринках.