function sampev.onSetPlayerHealth(hp)
if bool then
return false
else
return true
end
end
0AA2: 31@ = "samp.dll"
31@ += 0x19550
IF 0@ == TRUE
THEN 0A8C: write_memory 31@ size 1 value 0xC3 virtual_protect 1
ELSE 0A8C: write_memory 31@ size 1 value 0x56 virtual_protect 1
END
0AB2: 0
//Change offsets to R1
How to use? I have no knowledge about these things.Or in cleo:JavaScript:function sampev.onSetPlayerHealth(hp) if bool then return false else return true end end
JavaScript:0AA2: 31@ = "samp.dll" 31@ += 0x19550 IF 0@ == TRUE THEN 0A8C: write_memory 31@ size 1 value 0xC3 virtual_protect 1 ELSE 0A8C: write_memory 31@ size 1 value 0x56 virtual_protect 1 END 0AB2: 0 //Change offsets to R1
Can you make cleo file ..Or in cleo:JavaScript:function sampev.onSetPlayerHealth(hp) if bool then return false else return true end end
JavaScript:0AA2: 31@ = "samp.dll" 31@ += 0x19550 IF 0@ == TRUE THEN 0A8C: write_memory 31@ size 1 value 0xC3 virtual_protect 1 ELSE 0A8C: write_memory 31@ size 1 value 0x56 virtual_protect 1 END 0AB2: 0 //Change offsets to R1