- 99
- 3
Не могу понять почему функции сразу же активируется.
Помогите плиз
local memory = require 'memory'
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("mj", megajump)
sampRegisterChatCommand("mjbmx", megabmx)
sampRegisterChatCommand("repair", repair)
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} MultiHack successfully loaded. {DC4747} v0.3{FFFFFF}, {FFFFFF} Author: {DC4747} MOL", -1)
while true do
wait(0)
if MegaJump then
memory.setint8(0x96916C, 1)
elseif not MegaJump then
memory.setint8(0x96916C, 0)
if repair then
if isPlayerPlaying(PLAYER_PED) and isCharInAnyCar(PLAYER_PED) then
local car = storeCarCharIsInNoSave(PLAYER_PED)
setCarRoll(car, 0)
setCarHealth(car, 1000)
elseif not repair then
end
end
end
end
end
function megajump()
MegaJump = not MegaJump
if MegaJump then
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-Jump successfully activated. ", -1)
else
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-Jump successfully deactivated. ", -1)
end
end
function megabmx()
megabmx = not megabmx
if megabmx then
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-BMX successfully activated. ", -1)
else
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-BMX successfully deactivated. ", -1)
end
end
function repair()
repair = not repair
if repair then
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Repair-Car successfully activated. ", -1)
else
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Repair-Car successfully deactivated. ", -1)
end
end
Помогите плиз
local memory = require 'memory'
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("mj", megajump)
sampRegisterChatCommand("mjbmx", megabmx)
sampRegisterChatCommand("repair", repair)
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} MultiHack successfully loaded. {DC4747} v0.3{FFFFFF}, {FFFFFF} Author: {DC4747} MOL", -1)
while true do
wait(0)
if MegaJump then
memory.setint8(0x96916C, 1)
elseif not MegaJump then
memory.setint8(0x96916C, 0)
if repair then
if isPlayerPlaying(PLAYER_PED) and isCharInAnyCar(PLAYER_PED) then
local car = storeCarCharIsInNoSave(PLAYER_PED)
setCarRoll(car, 0)
setCarHealth(car, 1000)
elseif not repair then
end
end
end
end
end
function megajump()
MegaJump = not MegaJump
if MegaJump then
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-Jump successfully activated. ", -1)
else
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-Jump successfully deactivated. ", -1)
end
end
function megabmx()
megabmx = not megabmx
if megabmx then
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-BMX successfully activated. ", -1)
else
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Mega-BMX successfully deactivated. ", -1)
end
end
function repair()
repair = not repair
if repair then
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Repair-Car successfully activated. ", -1)
else
sampAddChatMessage("{DC4747}[multihack]: {FFFFFF} Repair-Car successfully deactivated. ", -1)
end
end