CLEO Help Pickup Deletor

CLEO related
Status
Not open for further replies.

daki

Active member
Joined
Oct 11, 2019
Messages
38
Reaction score
5
Location
Serbia
Hi, does it exist pickupdeleter who will erase pickups by id: 19522, 1273, 1239, 1272, 1274, 1314, 1275, 1254, 19132, 19131, 19134, 19130, 19133 ?
 

Hidend

Expert
Joined
Mar 4, 2013
Messages
653
Reaction score
49
require "lib.moonloader"
local sampev = require 'lib.samp.events'

function main()
useRenderCommands(true)
while true do
wait(0)
end
end

function sampev.onCreatePickup(id, model, pickupType, position)
if model == 19522 or model == 19522 or model == 19522 or model == 19522 or model == 19522 then
return false
end
end

it's lua im too lazy for cleo replace ids
 

daki

Active member
Joined
Oct 11, 2019
Messages
38
Reaction score
5
Location
Serbia
require "lib.moonloader"
local sampev = require 'lib.samp.events'

function main()
useRenderCommands(true)
while true do
wait(0)
end
end

function sampev.onCreatePickup(id, model, pickupType, position)
if model == 19522 or model == 19522 or model == 19522 or model == 19522 or model == 19522 then
return false
end
end

it's lua im too lazy for cleo replace ids

Can you send me as cleo code?
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
Code:
{$CLEO}
0000:
wait 3000

WHILE TRUE
wait 0
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@
        065B: store_pickup 31@ position_to 1@ 2@ 3@
        IF OR
            0@ == 19522
            0@ == 1273
            0@ == 1239
            0@ == 1272
            0@ == 1274
            0@ == 1314
            0@ == 1275
            0@ == 1254
        THEN
            0215: destroy_pickup 31@
            LOG "Pickup deleter courtesy of Zin & Springfield: Deleted pickup %d at %f %f %f" 0@ 1@ 2@ 3@
        ELSE
            IF OR
                0@ == 19132
                0@ == 19131
                0@ == 19134
                0@ == 19130
                0@ == 19133
            THEN
                0215: destroy_pickup 31@
                LOG "Pickup deleter courtesy of Zin & Springfield: Deleted pickup %d at %f %f %f" 0@ 1@ 2@ 3@   
            END
        END
    end
end
END
Ask for 0.3.DL version and you will be flamed, now stop spamming the forums!
 
Status
Not open for further replies.
Top