CLEO SNIPPET [SNIPPET] SA-MP Checkpoints

springfield

Well-Known Member
Staff member
Joined
Feb 18, 2005
Messages
2,964
Likes
80
Points
193
Website
www.ugbase.eu
#1
Checks if there's any checkpoint active, use as condition(if)
//call @is_cp_active 0
Code:
:is_cp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x212A94
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x24
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

Checks if there's any race checkpoint active, use as condition(if)
//call @is_racecp_active 0
Code:
:is_racecp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x212A94
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x49
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

Gets checkpoint position(XYZ)
//call @get_cp_pos 0 X [email protected] Y [email protected] Z [email protected]
Code:
:get_cp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x212A94
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]

Gets racecheckpoint position(XYZ)
//call @get_racecp_pos 0 X [email protected] Y [email protected] Z [email protected]
Code:
:get_racecp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x212A94
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x2C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
 

Fu$10N

Well-Known Member
Joined
Mar 5, 2014
Messages
1,103
Likes
8
Points
143
#2
Re: SA-MP Checkpoints

So with this snippets can I make a race checkpoint teleporter ? :surprised:

If so  :urtheman: [member=111]springfield[/member] .
 

Zin

Well-Known Member
Joined
Aug 1, 2013
Messages
1,696
Likes
111
Points
208
Website
youtube.com
#3
Re: SA-MP Checkpoints

could i make a checkpoint auto driver with this so i can do bus missions on roleplay
 

Fu$10N

Well-Known Member
Joined
Mar 5, 2014
Messages
1,103
Likes
8
Points
143
#4
Re: SA-MP Checkpoints

zin link said:
could i make a checkpoint auto driver with this so i can do bus missions on roleplay
Probably  :imoverit:
 

Zin

Well-Known Member
Joined
Aug 1, 2013
Messages
1,696
Likes
111
Points
208
Website
youtube.com
#5
Re: SA-MP Checkpoints

is there a way i can check if i have reached the checkpoint?
 

iToX

New Member
Joined
Mar 25, 2015
Messages
2
Likes
0
Points
26
#7
Re: SA-MP Checkpoints

Thanks springfield now i can make a checkpoint teleporter :D  :urtheman:
 

0B36

Well-Known Member
Joined
Jan 6, 2014
Messages
1,327
Likes
3
Points
143
#8
Re: SA-MP Checkpoints

Updated for SA-MP 0.3.7 R1

For CP
Code:
call @is_cp_active 0
:is_cp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x24
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

call @get_cp_pos 0 X [email protected] Y [email protected] Z [email protected]
:get_cp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
Code:
call @is_racecp_active 0
:is_racecp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x49
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

call @get_racecp_pos 0 X [email protected] Y [email protected] Z [email protected]
:get_racecp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x2C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
 

Fu$10N

Well-Known Member
Joined
Mar 5, 2014
Messages
1,103
Likes
8
Points
143
#9
Re: SA-MP Checkpoints

0B36 link said:
Updated for SA-MP 0.3.7 R1

For CP
Code:
call @is_cp_active 0
:is_cp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x24
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

call @get_cp_pos 0 X [email protected] Y [email protected] Z [email protected]
:get_cp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
Code:
call @is_racecp_active 0
:is_racecp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x49
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

call @get_racecp_pos 0 X [email protected] Y [email protected] Z [email protected]
:get_racecp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x2C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
Thx again :urtheman:.
 

Gorkem

Well-Known Member
Joined
Aug 9, 2014
Messages
59
Likes
0
Points
81
#10
Re: SA-MP Checkpoints

0B36 link said:
Updated for SA-MP 0.3.7 R1

For CP
Code:
call @is_cp_active 0
:is_cp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x24
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

call @get_cp_pos 0 X [email protected] Y [email protected] Z [email protected]
:get_cp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
Code:
call @is_racecp_active 0
:is_racecp_active
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x49
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0

call @get_racecp_pos 0 X [email protected] Y [email protected] Z [email protected]
:get_racecp_pos
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x2C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
TY
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,215
Likes
415
Points
113
Location
Lithuania
Website
ugbase.eu
20
#11
~ 0.3.7 - R1 ~

For CP
PHP:
:is_cp_active
{
    0.3.7 - R1
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x21A10C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x24
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_cp_pos
{
    0.3.7 - R1
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x21A10C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
PHP:
:is_racecp_active
{
    0.3.7 - R1
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x49
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_racecp_pos
{
    0.3.7 - R1
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A10C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x2C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
 
Last edited:

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,215
Likes
415
Points
113
Location
Lithuania
Website
ugbase.eu
20
#12
~ 0.3.7 - R2 ~

For CP
PHP:
:is_cp_active
{
    0.3.7 - R2
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x21A114 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] + 0x4D
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_cp_pos
{
    0.3.7 - R2
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x21A114 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x35
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
PHP:
:is_racecp_active
{
    0.3.7 - R2
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A114 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x29
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_racecp_pos
{
    0.3.7 - R2
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x21A114 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
 
Last edited:

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,215
Likes
415
Points
113
Location
Lithuania
Website
ugbase.eu
20
#13
~ 0.3.7 - R3 ~

For CP
PHP:
:is_cp_active
{
    0.3.7 - R3
}
0AA2: [email protected] = loadlib "samp.dll"
0A8E: [email protected] = [email protected] + 0x26E8F4 // SAMP_MISC_INFO
0A8D: [email protected] = readMem [email protected] sz 4 vp 0
[email protected] += 0x24
0A8D: [email protected] = readMem [email protected] sz 4 vp 0
IF [email protected] == TRUE
THEN 0485:  return_true
ELSE 059A:  return_false
END
0AA3: freelib [email protected]
0AB2: ret 0
PHP:
:get_cp_pos
{
    0.3.7 - R3
}
0AA2: [email protected] = loadlib "samp.dll"
0A8E: [email protected] = [email protected] + 0x26E8F4 // SAMP_MISC_INFO
0A8D: [email protected] = readMem [email protected] sz 4 vp 0
[email protected] += 0xC
0A8D: [email protected] = readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] = readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] = readMem [email protected] sz 4 vp 0
0AA3: freelib [email protected]
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
PHP:
:is_racecp_active
{
    0.3.7 - R3
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x26E8F4 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x49
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_racecp_pos
{
    0.3.7 - R3
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x26E8F4 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x2C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
 
Last edited:

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,215
Likes
415
Points
113
Location
Lithuania
Website
ugbase.eu
20
#14
~ 0.3.DL ~

For CP
PHP:
:is_cp_active
{
    0.3.DL
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x2ACA3C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] + 0x4D
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_cp_pos
{
    0.3.DL
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x2ACA3C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x35
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
PHP:
:is_racecp_active
{
    0.3.DL
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x2ACA3C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x29
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_racecp_pos
{
    0.3.DL
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x2ACA3C // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
 
Last edited:

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,215
Likes
415
Points
113
Location
Lithuania
Website
ugbase.eu
20
#15
~ 0.3.7 - R4 ~

For CP
PHP:
:is_cp_active
{
    0.3.7 - R4
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x26EA24 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] + 0x4D
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_cp_pos
{
    0.3.7 - R4
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x26EA24 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x35
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
For Race CP
PHP:
:is_racecp_active
{
    0.3.7 - R4
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x26EA24 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x29
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    IF [email protected] == TRUE
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
    0AA3: freelib [email protected]
END
0AB2: ret 0
PHP:
:get_racecp_pos
{
    0.3.7 - R4
}
IF 0AA2: [email protected] = loadlib "samp.dll"
THEN 0A8E: [email protected] = [email protected] + 0x26EA24 // SAMP_MISC_INFO
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0xC
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    [email protected] += 0x4
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0AA3: freelib [email protected]
END
0AB2: ret 3 [email protected] [email protected] [email protected]
 
Last edited:
Top