Method to check Attached object and get its Handle
0.3.7 R1
0.3.7 R2
0.3.7 R3
0.3.7 R4 v1
0.3.7 R4 v2
0.3.7 R5
0.3.DL
0.3.7 R1
PHP:
:isAttachedObjectExist
{
0.3.7 - R1
MAX ATTACHED OBJECTS = 10
IF 0AB1: @isAttachedObjectExist 1 ID: 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x21A0F8 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3CD // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x18 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x22 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x4C // SAMP_ATTACHED_OBJECT_EXIST
005A: 31@ += 0@ // (int)
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:GetAttachedObjectHandle
{
0.3.7 - R1
MAX ATTACHED OBJECTS = 10
IF 0AB1: @GetAttachedObjectHandle 1 ID: 0@ _Returned: Handle 1@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x21A0F8 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3CD // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x18 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x22 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x27C // SAMP_OBJECT_STURCT_OFFSET
005A: 31@ += 0@ // (int)
0A8D: 30@ readMem 31@ sz 1 vp 0
IF 30@ > 0
THEN
0485: return_true
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
ELSE 059A: return_false
END
END
0AB2: ret 1 31@
0.3.7 R2
PHP:
:isAttachedObjectExist
{
0.3.7 - R2
MAX ATTACHED OBJECTS = 10
IF 0AB1: @isAttachedObjectExist 1 ID: 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x21A100 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3C5 // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x4C // SAMP_ATTACHED_OBJECT_EXIST
005A: 31@ += 0@ // (int)
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:GetAttachedObjectHandle
{
0.3.7 - R2
MAX ATTACHED OBJECTS = 10
IF 0AB1: @GetAttachedObjectHandle 1 ID: 0@ _Returned: Handle 1@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x21A100 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3C5 // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x27C // SAMP_OBJECT_STURCT_OFFSET
005A: 31@ += 0@ // (int)
0A8D: 30@ readMem 31@ sz 1 vp 0
IF 30@ > 0
THEN
0485: return_true
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
ELSE 059A: return_false
END
END
0AB2: ret 1 31@
0.3.7 R3
PHP:
:isAttachedObjectExist
{
0.3.7 - R3
MAX ATTACHED OBJECTS = 10
IF 0AB1: @isAttachedObjectExist 1 ID: 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26E8DC // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x2F3A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x4C // SAMP_ATTACHED_OBJECT_EXIST
005A: 31@ += 0@ // (int)
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:GetAttachedObjectHandle
{
0.3.7 - R3
MAX ATTACHED OBJECTS = 10
IF 0AB1: @GetAttachedObjectHandle 1 ID: 0@ _Returned: Handle 1@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26E8DC // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x2F3A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x27C // SAMP_OBJECT_STURCT_OFFSET
005A: 31@ += 0@ // (int)
0A8D: 30@ readMem 31@ sz 1 vp 0
IF 30@ > 0
THEN
0485: return_true
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
ELSE 059A: return_false
END
END
0AB2: ret 1 31@
0.3.7 R4 v1
PHP:
:isAttachedObjectExist
{
0.3.7 R4 v1
MAX ATTACHED OBJECTS = 10
IF 0AB1: @isAttachedObjectExist 1 ID: 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x2A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x104 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x4C // SAMP_ATTACHED_OBJECT_EXIST
005A: 31@ += 0@ // (int)
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:GetAttachedObjectHandle
{
0.3.7 R4 v1
MAX ATTACHED OBJECTS = 10
IF 0AB1: @GetAttachedObjectHandle 1 ID: 0@ _Returned: Handle 1@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x2A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x104 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x27C // SAMP_OBJECT_STURCT_OFFSET
005A: 31@ += 0@ // (int)
0A8D: 30@ readMem 31@ sz 1 vp 0
IF 30@ > 0
THEN
0485: return_true
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
ELSE 059A: return_false
END
END
0AB2: ret 1 31@
0.3.7 R4 v2
PHP:
:isAttachedObjectExist
{
0.3.7 R4 v2
MAX ATTACHED OBJECTS = 10
IF 0AB1: @isAttachedObjectExist 1 ID: 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x104 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x4C // SAMP_ATTACHED_OBJECT_EXIST
005A: 31@ += 0@ // (int)
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:GetAttachedObjectHandle
{
0.3.7 R4 v2
MAX ATTACHED OBJECTS = 10
IF 0AB1: @GetAttachedObjectHandle 1 ID: 0@ _Returned: Handle 1@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x104 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x27C // SAMP_OBJECT_STURCT_OFFSET
005A: 31@ += 0@ // (int)
0A8D: 30@ readMem 31@ sz 1 vp 0
IF 30@ > 0
THEN
0485: return_true
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
ELSE 059A: return_false
END
END
0AB2: ret 1 31@
0.3.7 R5
PHP:
:isAttachedObjectExist
{
0.3.7 - R5
MAX ATTACHED OBJECTS = 10
IF 0AB1: @isAttachedObjectExist 1 ID: 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26EB94 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x104 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x4C // SAMP_ATTACHED_OBJECT_EXIST
005A: 31@ += 0@ // (int)
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:GetAttachedObjectHandle
{
0.3.7 - R5
MAX ATTACHED OBJECTS = 10
IF 0AB1: @GetAttachedObjectHandle 1 ID: 0@ _Returned: Handle 1@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x26EB94 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x104 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x27C // SAMP_OBJECT_STURCT_OFFSET
005A: 31@ += 0@ // (int)
0A8D: 30@ readMem 31@ sz 1 vp 0
IF 30@ > 0
THEN
0485: return_true
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
ELSE 059A: return_false
END
END
0AB2: ret 1 31@
0.3.DL
PHP:
:isAttachedObjectExist
{
0.3.DL
MAX ATTACHED OBJECTS = 10
IF 0AB1: @isAttachedObjectExist 1 ID: 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x4C // SAMP_ATTACHED_OBJECT_EXIST
005A: 31@ += 0@ // (int)
0A8D: 31@ readMem 31@ sz 4 vp 0
IF 31@ > 0
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AB2: ret 0
:GetAttachedObjectHandle
{
0.3.DL
MAX ATTACHED OBJECTS = 10
IF 0AB1: @GetAttachedObjectHandle 1 ID: 0@ _Returned: Handle 1@
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 31@ = readmem 31@ sz 4 vp 0
31@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x0 // SAMP_ACTOR_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 4
0@ += 0x27C // SAMP_OBJECT_STURCT_OFFSET
005A: 31@ += 0@ // (int)
0A8D: 30@ readMem 31@ sz 1 vp 0
IF 30@ > 0
THEN
0485: return_true
0A8D: 31@ readMem 31@ sz 4 vp 0
31@ += 0x44 // SAMP_OBJECT_HANDLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
ELSE 059A: return_false
END
END
0AB2: ret 1 31@