помогите

xavier_v

Участник
Автор темы
81
3
Нарушение правил раздела
Версия MoonLoader
.026-beta
как сделать так, чтобы что-то произошло, при взятие АК47 в руки

именно ак-47 а не все оружие



вот код на все оружие


Lua:
local weapons = require('game.weapons')
local LastWeapon = 0

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if getCurrentCharWeapon(PLAYER_PED) ~= LastWeapon then
            LastWeapon = getCurrentCharWeapon(PLAYER_PED)
            sampSendChat('/me взял в руки '..weapons.get_name(LastWeapon))
        end
    end
end
 
Решение
как сделать так, чтобы что-то произошло, при взятие АК47 в руки

именно ак-47 а не все оружие



вот код на все оружие


Lua:
local weapons = require('game.weapons')
local LastWeapon = 0

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if getCurrentCharWeapon(PLAYER_PED) ~= LastWeapon then
            LastWeapon = getCurrentCharWeapon(PLAYER_PED)
            sampSendChat('/me взял в руки '..weapons.get_name(LastWeapon))
        end
    end
end
Ид АК-47 это 30

YarikVL

Известный
Проверенный
4,798
1,814
как сделать так, чтобы что-то произошло, при взятие АК47 в руки

именно ак-47 а не все оружие



вот код на все оружие


Lua:
local weapons = require('game.weapons')
local LastWeapon = 0

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if getCurrentCharWeapon(PLAYER_PED) ~= LastWeapon then
            LastWeapon = getCurrentCharWeapon(PLAYER_PED)
            sampSendChat('/me взял в руки '..weapons.get_name(LastWeapon))
        end
    end
end
Ид АК-47 это 30
 
  • Bug
Реакции: xavier_v