script_name('OFFNicks')
local memory = require 'memory'
offnicks = false
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('offnicks', function ()
offnicks = not offnicks
sampAddChatMessage(offnicks and '{3660E9}['..thisScript().name..']{FFFFFF} Ники отключены!' or '{3660E9}['..thisScript().name..']{FFFFFF} Ники включены!', -1)
end)
while true do
wait(0)
if offnicks then
memory.setint16(sampGetBase() + 0x70D40, 0xC390, true)
else
memory.setint16(sampGetBase() + 0x70D40, 0x8B55, true)
end
end
end