- 3
- 0
- Версия MoonLoader
- .027.0-preview
Не понимаю почему "lock 1" и "lock 4" работают , а "rem" и "key" - нет.
Lua:
function main()
repeat wait(0) until isSampAvailable()
while true do
wait(0)
if isKeyJustPressed(49) and isKeyJustPressed(18) and not sampIsChatInputActive() and not sampIsDialogActive() then sampSendChat("/lock 1") end
if isKeyJustPressed(52) and isKeyJustPressed(18) and not sampIsChatInputActive() and not sampIsDialogActive() then sampSendChat("/lock 4") end
end
if isKeyJustPressed(50) and isKeyJustPressed(18) and not sampIsChatInputActive() and not sampIsDialogActive() then sampSendChat("/rem") end
if isKeyJustPressed(51) and isKeyJustPressed(18) and not sampIsChatInputActive() and not sampIsDialogActive() then sampSendChat("/key") end
end