- 139
- 4
- Версия MoonLoader
- .027.0-preview
Хочу что - бы при написание созданной мной командой допустим /hatika
писалось /t
писалось /t
Lua:
script_name ('Hatika')
script_author('HariX')
require("lib.moonloader")
local tag = "[HATIKA] Скрипт успешно запущен!:"
local mycolor = 0xFFFF00
local mycolor_text = "[FFFF00]"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait (100) end
sampAddChatMessage(tag,0xFF0000)
sampRegisterChatCommand("Hatika", cmd_hatika)
while true do
wait(0)
end
end
function cmd_hatika()
sampAddChatMessage('/time', 0xFF0000)
end