- 26
- 3
			
				Код:
			
		
		
		---@diagnostic disable: undefined-global, lowercase-global
local main_color = 0x5A90CE
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
local id = sampGetPlayerIdByCharHandle(playerid)
sampRegisterChatCommand("nrg", nrg500)
sampRegisterChatCommand("accept", accepts)
sampRegisterChatCommand("tpdom", tphouse)
    if isKeyJustPressed(0x31) and not sampIsChatInputActive() and not sampIsDialogActive() then
    sampSendChat("/ot")
    end
    if isKeyJustPressed(0x69) and not sampIsChatInputActive() and not sampIsDialogActive() then
    sampSendChat("/vr [A] Помогу по игре, отвечу на вопросы, прослежу за /try! /vr + [A]")
    end
    if isKeyJustPressed(0x39) and not sampIsChatInputActive() and not sampIsDialogActive() then
    sampSendChat("/b Приятной игры на Arizona Supreme! Администрация поможет, Вам, в любой беде!")
    sampSendChat("/b С любовью Рампага!")
    end
end
end
function nrg500(arg)
    sampSendChat("/plveh ".. arg .. " 522 1")
end
function tphouse(arg)
    var1, var2 = string.match(arg, '(.+) (.+)')
        if var1 == nil or var1 == '' then
        sampAddChatMessage('Используйте /tphouse [id player] [id house]', 0xFFFFFF)
    else
        sampSendChat("/gotohouse ".. var2)
        sampSendChat("/gethere ".. var1)
    end
end
function accepts(arg)
    sampSendChat("/a Аццепт можно получить у бота в вк - @----.")
    sampSendChat("/a Привязываете страницу в игре и в боте, получаете аццепт.")
endНужно сделать задержку между выделенных строк, тупо телепортирует к дому и не тепает чела. Кто поможет - пожалуйста, буду благодарен.
 
				
		 
 
		 
 
		 
 
		

 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		