CLEO Help Samp Pickups

CLEO related
Status
Not open for further replies.

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
297
Reaction score
103
Location
UGBASE
You can delete pickups from your game via 0215: remove_pickup $PICKUP_HANDLE.

You can get the handle with an SAMPFUNCS opcode 0B51: samp 1@ = pickup_handle_by_id 0@.

So you will need to put the ID into 0@ of the pickup you want to delete and then just do:

0215: remove_pickup 1@

But if you want to remove the pickup by picking it UP, you can
send pick up pickup
as Parazitas said.

The RPC-ID is 131 and the params are just the pickup-id.

greetz,
safa
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,724
Solutions
2
Reaction score
113
This loops through all the pickups in your stream, probably gonna need this too.
Code:
for 30@ = 0x9788C0 to 0x97D620 step 0x20
    if
        30@ > 0
    then
        0A8E: 31@ = 30@ + 0x1A
        0A8D: 31@ = read_memory 31@ size 2 virtual_protect 0
        31@ *= 0x10000
        0A8F: 29@ = 30@ - 0x9788C0
        29@ /= 0x20
        005A: 31@ += 29@
        0B53: samp 0@ = pickup_id_by_handle 31@
    end
end
courtesy of Springfield.
 
Status
Not open for further replies.
Top