JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser .
[CLEO] Some multi-samp snippets
Status
Not open for further replies.
PHP:
:isLocalPlayerRequiredToSendSpawn
{
0AB1: @isLocalPlayerRequiredToSendSpawn 0
}
IF 0AA2: 31@ = "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
THEN
0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3CD // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x18 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x22 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x306 // SAMP_LOCAL_PLAYER_SPAWN_AVAILABILITY_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 2 // 0.3.7 R2
THEN
0A8E: 30@ = 31@ + 0x21A100 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3C5 // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x306 // SAMP_LOCAL_PLAYER_SPAWN_AVAILABILITY_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 3 // 0.3.DL
THEN
0A8E: 30@ = 31@ + 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x30A // SAMP_LOCAL_PLAYER_SPAWN_AVAILABILITY_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 4 // 0.3.7 R3
THEN
0A8E: 30@ = 31@ + 0x26E8DC // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x2F3A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x306 // SAMP_LOCAL_PLAYER_SPAWN_AVAILABILITY_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 5 // 0.3.7 R4
THEN
0A8E: 30@ = 31@ + 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x2A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x306 // SAMP_LOCAL_PLAYER_SPAWN_AVAILABILITY_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 6 // 0.3.7 R4 - v2
THEN
0A8E: 30@ = 31@ + 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x306 // SAMP_LOCAL_PLAYER_SPAWN_AVAILABILITY_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 17@ == 7 // 0.3.7 R5
THEN
0A8E: 30@ = 31@ + 0x26EB94 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
30@ += 0x306 // SAMP_LOCAL_PLAYER_SPAWN_AVAILABILITY_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
END
IF 30@ == TRUE
THEN 0485: return_true
ELSE 059A: return_false
END
END
0AA3: free_library 31@
END
0AB2: 0
PHP:
:SendSpawn
{
0AB1: @SendSpawn 0
}
IF 0AA2: 31@ = "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
THEN
0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3CD // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x18 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x22 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
0A8E: 29@ = 31@ + 0x3EC0 // SAMP_REQUEST_SPAWN_OFFSET
0A8E: 28@ = 31@ + 0x3AD0 // SAMP_SEND_SPAWN_OFFSET
END
IF 17@ == 2 // 0.3.7 R2
THEN
0A8E: 30@ = 31@ + 0x21A100 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3C5 // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
0A8E: 29@ = 31@ + 0x3EC0 // SAMP_REQUEST_SPAWN_OFFSET
0A8E: 28@ = 31@ + 0x3AE0 // SAMP_SEND_SPAWN_OFFSET
END
IF 17@ == 3 // 0.3.DL
THEN
0A8E: 30@ = 31@ + 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
0A8E: 29@ = 31@ + 0x3F40 // SAMP_REQUEST_SPAWN_OFFSET
0A8E: 28@ = 31@ + 0x3B20 // SAMP_SEND_SPAWN_OFFSET
END
IF 17@ == 4 // 0.3.7 R3
THEN
0A8E: 30@ = 31@ + 0x26E8DC // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x2F3A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
0A8E: 29@ = 31@ + 0x3ED0 // SAMP_REQUEST_SPAWN_OFFSET
0A8E: 28@ = 31@ + 0x3AD0 // SAMP_SEND_SPAWN_OFFSET
END
IF 17@ == 5 // 0.3.7 R4
THEN
0A8E: 30@ = 31@ + 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x2A // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
0A8E: 29@ = 31@ + 0x4050 // SAMP_REQUEST_SPAWN_OFFSET
0A8E: 28@ = 31@ + 0x3C10 // SAMP_SEND_SPAWN_OFFSET
END
IF 17@ == 6 // 0.3.7 R4 - v2
THEN
0A8E: 30@ = 31@ + 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
0A8E: 29@ = 31@ + 0x4060 // SAMP_REQUEST_SPAWN_OFFSET
0A8E: 28@ = 31@ + 0x3C20 // SAMP_SEND_SPAWN_OFFSET
END
IF 17@ == 7 // 0.3.7 R5
THEN
0A8E: 30@ = 31@ + 0x26EB94 // SAMP_INFO_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_POOLS_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x4 // SAMP_POOL_PLAYER_OFFSET
0A8D: 30@ = readmem 30@ sz 4 vp 0
30@ += 0x26 // SAMP_LOCAL_PLAYER_OFFSET
0A8D: 30@ readMem 30@ sz 4 vp 0
0A8E: 29@ = 31@ + 0x4060 // SAMP_REQUEST_SPAWN_OFFSET
0A8E: 28@ = 31@ + 0x3C20 // SAMP_SEND_SPAWN_OFFSET
END
0AA6: call_method 29@ struct 30@ num_params 0 pop 0 _retVal 26@
0AA6: call_method 28@ struct 30@ num_params 0 pop 0 _retVal 25@
END
0AA3: free_library 31@
END
0AB2: 0
PHP:
:GetLocalPlayerName
{
0AB1: @GetLocalPlayerName 0 _Returned: Name 31@
}
IF 0AA2: 31@ = "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
THEN
0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x3CD // SAMP_PPOOLS_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x18 // SAMP_PPOOL_PLAYER_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0xA // SAMP_LOCAL_PLAYER_NAME_OFFSET
END
IF 17@ == 2 // 0.3.7 R2
THEN
0A8E: 30@ = 31@ + 0x21A100 // SAMP_INFO_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x3C5 // SAMP_PPOOLS_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_PPOOL_PLAYER_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x6 // SAMP_LOCAL_PLAYER_NAME_OFFSET
END
IF 17@ == 3 // 0.3.DL
THEN
0A8E: 30@ = 31@ + 0x2ACA24 // SAMP_INFO_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_PPOOL_PLAYER_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x6 // SAMP_LOCAL_PLAYER_NAME_OFFSET
END
IF 17@ == 4 // 0.3.7 R3
THEN
0A8E: 30@ = 31@ + 0x26E8DC // SAMP_INFO_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_PPOOL_PLAYER_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x2F22 // SAMP_LOCAL_PLAYER_NAME_OFFSET
END
IF 17@ == 5 // 0.3.7 R4
THEN
0A8E: 30@ = 31@ + 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x8 // SAMP_PPOOL_PLAYER_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x12 // SAMP_LOCAL_PLAYER_NAME_OFFSET
END
IF 17@ == 6 // 0.3.7 R4 - v2
THEN
0A8E: 30@ = 31@ + 0x26EA0C // SAMP_INFO_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x4 // SAMP_PPOOL_PLAYER_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0xA // SAMP_LOCAL_PLAYER_NAME_OFFSET
END
IF 17@ == 7 // 0.3.7 R5
THEN
0A8E: 30@ = 31@ + 0x26EB94 // SAMP_INFO_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x3DE // SAMP_PPOOLS_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0x4 // SAMP_PPOOL_PLAYER_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
30@ += 0xA // SAMP_LOCAL_PLAYER_NAME_OFFSET
END
END
END
0AB2: ret 1 30@
PHP:
:SAMPGetCarNumberPlateByVehicleID
{
IF 0AB1: @SAMPGetCarNumberPlateByVehicleID 1 VehicleID 1249 _Returned: NumberPlate 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
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@ += 0x1C // SAMP_PPOOL_VEHICLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // VEHICLE_ID * 0x14
0@ += 0x1134
005A: 31@ += 0@
0A8D: 31@ = readMem 31@ sz 4 vp 0
31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
0A8D: 30@ = readMem 31@ sz 1 vp 0
END
IF 17@ == 2 // 0.3.7 R2
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@ += 0xC // SAMP_PPOOL_VEHICLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // VEHICLE_ID * 0x14
0@ += 0x1134
005A: 31@ += 0@
0A8D: 31@ = readMem 31@ sz 4 vp 0
31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
0A8D: 30@ = readMem 31@ sz 1 vp 0
END
IF 17@ == 3 // 0.3.DL
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@ += 0xC // SAMP_PPOOL_VEHICLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // VEHICLE_ID * 0x14
0@ += 0x1134
005A: 31@ += 0@
0A8D: 31@ = readMem 31@ sz 4 vp 0
31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
0A8D: 30@ = readMem 31@ sz 1 vp 0
END
IF 17@ == 4 // 0.3.7 R3
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@ += 0xC // SAMP_PPOOL_VEHICLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // VEHICLE_ID * 0x14
0@ += 0x1134
005A: 31@ += 0@
0A8D: 31@ = readMem 31@ sz 4 vp 0
31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
0A8D: 30@ = readMem 31@ sz 1 vp 0
END
IF 17@ == 5 // 0.3.7 R4
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@ += 0xC // SAMP_PPOOL_VEHICLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // VEHICLE_ID * 0x14
0@ += 0x1134
005A: 31@ += 0@
0A8D: 31@ = readMem 31@ sz 4 vp 0
31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
0A8D: 30@ = readMem 31@ sz 1 vp 0
END
IF 17@ == 6 // 0.3.7 R4 - v2
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@ += 0x0 // SAMP_PPOOL_VEHICLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // VEHICLE_ID * 0x14
0@ += 0x1134
005A: 31@ += 0@
0A8D: 31@ = readMem 31@ sz 4 vp 0
31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
0A8D: 30@ = readMem 31@ sz 1 vp 0
END
IF 17@ == 7 // 0.3.7 R5
THEN
31@ += 0x26EB94 // 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@ += 0x0 // SAMP_PPOOL_VEHICLE_OFFSET
0A8D: 31@ readMem 31@ sz 4 vp 0
0@ *= 0x4 // VEHICLE_ID * 0x14
0@ += 0x1134
005A: 31@ += 0@
0A8D: 31@ = readMem 31@ sz 4 vp 0
31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
0A8D: 30@ = readMem 31@ sz 1 vp 0
END
IF 30@ > 0
THEN
0485: return_true
ELSE
059A: return_false
31@ = 0
END
END
0AA3: free_library 31@
END
0AB2: ret 1 31@
Status
Not open for further replies.