[REQUEST] Weapon Finder 0.3DL SAMP

Goad

Active member
Joined
Nov 27, 2018
Messages
25
Reaction score
1
* Name of the mod (if the mod doesn't exist, you don't have to tell one): Weapon Finder.
* Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not):
* What do you want (the most important part, explain this carefully): Something like this :
BUT FOR 0.3DL samp and to work!
* Details (add more details to your request): FOR SAMP 0.3DL AND TO WORK.
* On/off key (specify it): K+3
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,487
Reaction score
228
Location
( ͡° ͜ʖ ͡°)
I cant find the offset for the model of the pickup. So this mod will show all pickups near you:
Code:
{$CLEO .cs}
0000:

WHILE TRUE
    WAIT 0
// FOR ALL PICKUPS
    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@           
            // GOT THE PICKUP.
            065B: store_pickup 31@ position_to 0@ 1@ 2@

            0AB1: call_scm_func @getScreenXYFrom3DCoords 3 3D_coords_X 0@ Y 1@ Z 2@ store_screen_X_to 3@ Y_to 4@
            03F0: enable_text_draw 1
            045A: draw_text_1number 3@ 4@ GXT 'ALLRACE' number 0@  // ALL RACES WON!~n~~w~$~1~

            

            
            
        end
    end
// FOR ALL PICKUPS END
END


//0AB1: call_scm_func @getScreenXYFrom3DCoords 3 3D_coords_X 0@ Y 1@ Z 2@ store_screen_X_to 3@ Y_to 4@
:getScreenXYFrom3DCoords
0AA7: call_function 0x70CE30 num_params 6 pop 6 clipNear 1 clipFar 1 yMult 7@s xMult 6@s outVector 2@s inVector 0@s result 29@
0073: 2@ /= 6@
0073: 2@ /= 4@
0073: 3@ /= 7@
0073: 3@ /= 4@
2@ *= 640.0
3@ *= 448.0
0AB2: ret 2 2@ 3@
 

Attachments

  • pickup.cs
    18.6 KB · Views: 88

Goad

Active member
Joined
Nov 27, 2018
Messages
25
Reaction score
1
I cant find the offset for the model of the pickup. So this mod will show all pickups near you:
Code:
{$CLEO .cs}
0000:

WHILE TRUE
    WAIT 0
// FOR ALL PICKUPS
    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@          
            // GOT THE PICKUP.
            065B: store_pickup 31@ position_to 0@ 1@ 2@

            0AB1: call_scm_func @getScreenXYFrom3DCoords 3 3D_coords_X 0@ Y 1@ Z 2@ store_screen_X_to 3@ Y_to 4@
            03F0: enable_text_draw 1
            045A: draw_text_1number 3@ 4@ GXT 'ALLRACE' number 0@  // ALL RACES WON!~n~~w~$~1~

           

           
           
        end
    end
// FOR ALL PICKUPS END
END


//0AB1: call_scm_func @getScreenXYFrom3DCoords 3 3D_coords_X 0@ Y 1@ Z 2@ store_screen_X_to 3@ Y_to 4@
:getScreenXYFrom3DCoords
0AA7: call_function 0x70CE30 num_params 6 pop 6 clipNear 1 clipFar 1 yMult 7@s xMult 6@s outVector 2@s inVector 0@s result 29@
0073: 2@ /= 6@
0073: 2@ /= 4@
0073: 3@ /= 7@
0073: 3@ /= 4@
2@ *= 640.0
3@ *= 448.0
0AB2: ret 2 2@ 3@


Dude i'm saying for weapons finder, droped weapons on the floor something like this.
 
  • Like
Reactions: Yam
Top