OPCODE:
0B50: samp 2@ = object_handle_by_id 1@
Without SAMPFUNCS
~ Samp Object ~
0.3.7 - R1
0.3.7 - R2
0.3.7 - R3
0.3.DL
0.3.7 - R4
0B50: samp 2@ = object_handle_by_id 1@
Without SAMPFUNCS
~ Samp Object ~
0.3.7 - R1
PHP:
:SAMPGetObjectHandleByID
{
0.3.7 - R1
SAMP_MAX_OBJECTS = 1000
0AB1: @SAMPGetObjectHandleByID 1 ObjectID 1249 _Returned: Handle 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x21A0F8 // SAMP_INFO_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x3CD // SAMP_PPOOLS_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x4 // SAMP_PPOOL_OBJECT_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // OBJECT_ID * 0x4
0@ += 0xFA4 // SAMP_OBJECT_PPOOL_STRUCT_OFFSET
005A: 31@ += 0@
0A8D: 30@ = readMem 31@ sz 4 vp 0
IF 30@ > 0
THEN
30@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 30@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
ELSE 059A: return_false
END
END
0AB2: ret 1 30@
0.3.7 - R2
PHP:
:SAMPGetObjectHandleByID
{
0.3.7 - R2
SAMP_MAX_OBJECTS = 1000
0AB1: @SAMPGetObjectHandleByID 1 ObjectID 1249 _Returned: Handle 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x21A100 // SAMP_INFO_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x3C5 // SAMP_PPOOLS_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x14 // SAMP_PPOOL_OBJECT_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // OBJECT_ID * 0x4
0@ += 0xFA4 // SAMP_OBJECT_PPOOL_STRUCT_OFFSET
005A: 31@ += 0@
0A8D: 30@ = readMem 31@ sz 4 vp 0
IF 30@ > 0
THEN
30@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 30@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
ELSE 059A: return_false
END
END
0AB2: ret 1 30@
0.3.7 - R3
PHP:
:SAMPGetObjectHandleByID
{
0.3.7 - R3
SAMP_MAX_OBJECTS = 1000
0AB1: @SAMPGetObjectHandleByID 1 ObjectID 1249 _Returned: Handle 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26E8DC // SAMP_INFO_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x14 // SAMP_PPOOL_OBJECT_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // OBJECT_ID * 0x4
0@ += 0xFA4 // SAMP_OBJECT_PPOOL_STRUCT_OFFSET
005A: 31@ += 0@
0A8D: 30@ = readMem 31@ sz 4 vp 0
IF 30@ > 0
THEN
30@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 30@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
ELSE 059A: return_false
END
END
0AB2: ret 1 30@
0.3.DL
PHP:
:SAMPGetObjectHandleByID
{
0.3.DL
SAMP_MAX_OBJECTS = 2100
0AB1: @SAMPGetObjectHandleByID 1 ObjectID 1249 _Returned: Handle 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x14 // SAMP_PPOOL_OBJECT_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // OBJECT_ID * 0x4
0@ += 0xFA4 // SAMP_OBJECT_PPOOL_STRUCT_OFFSET
005A: 31@ += 0@
0A8D: 30@ = readMem 31@ sz 4 vp 0
IF 30@ > 0
THEN
30@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 30@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
ELSE 059A: return_false
END
END
0AB2: ret 1 30@
0.3.7 - R4
PHP:
:SAMPGetObjectHandleByID
{
0.3.7 - R4
SAMP_MAX_OBJECTS = 1000
0AB1: @SAMPGetObjectHandleByID 1 ObjectID 1249 _Returned: Handle 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x14 // SAMP_PPOOL_OBJECT_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // OBJECT_ID * 0x4
0@ += 0xFA4 // SAMP_OBJECT_PPOOL_STRUCT_OFFSET
005A: 31@ += 0@
0A8D: 30@ = readMem 31@ sz 4 vp 0
IF 30@ > 0
THEN
30@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 30@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
ELSE 059A: return_false
END
END
0AB2: ret 1 30@
Last edited: