Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$CLEO .cs}
- 0000: NOP
- :PEPE_1
- wait 0
- if
- 0AB0: key_pressed 97
- jf @PEPE_1
- wait 0
- if or
- 02F2: $PLAYER_ACTOR model == #TRIBOSS
- 02F2: $PLAYER_ACTOR model == #FBI
- 02F2: $PLAYER_ACTOR model == #SWAT
- 02F2: $PLAYER_ACTOR model == #LAPD1
- 02F2: $PLAYER_ACTOR model == #SFPD1
- 02F2: $PLAYER_ACTOR model == #LVPD1
- 02F2: $PLAYER_ACTOR model == #CSHER
- 02F2: $PLAYER_ACTOR model == #LAPDM1
- jf @ifMentas
- jump @asMentas
- :ifMentas
- wait 0
- if or
- 02F2: $PLAYER_ACTOR model == #ARMY
- 02F2: $PLAYER_ACTOR model == #DSHER
- 02F2: $PLAYER_ACTOR model == #WMYSGRD
- jf @stream
- jump @asMentas
- :stream
- // GET ALL STREAMED PEDS
- 0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
- 000A: 29@ += 0x4
- 0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
- for 30@ = 0 to 35584 step 0x100
- 0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
- 000A: 29@ += 0x1
- if and
- 0029: 31@ >= 0x00
- 001B: 0x80 > 31@
- jf @PEPE_1
- wait 0
- 005A: 31@ += 30@
- // GOT THE PED. 31@ = THE PLAYER (PED)
- jump @check
- :check
- wait 0
- 0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 33@ closest_ped_to 15@
- 0B2B: samp 16@ = get_player_id_by_actor_handle 15@
- 0B36: samp 17@ = get_player_nickname 16@
- if and
- 056D: actor 15@ defined //check if the actor defined
- 00DF: actor $PLAYER_ACTOR driving
- 8449: NOT actor 15@ in_a_car
- jf @PEPE_1
- jump @store
- :store
- wait 0
- actor.StorePos($PLAYER_ACTOR, 21@ , 22@ , 23@) //store your position
- actor.StorePos(15@, 24@ , 25@ , 26@) //store the target position
- 0509: 7@ = distance_between_XY 21@ 22@ and_XY 24@ 25@ //compare each position and store it in variable
- if
- 7@ < =1.9 // this will check if the target is less than 100 meter away from you ,float is better to use (.0)
- jf @PEPE_1
- wait 0
- 0B2B: samp 1@ = get_player_id_by_actor_handle 15@
- 0B36: samp 2@ = get_player_nickname 1@
- 03C0: 10@ = actor $PLAYER_ACTOR car
- if or
- 02F2: actor 15@ model == #TRIBOSS
- 02F2: actor 15@ model == #FBI
- 02F2: actor 15@ model == #SWAT
- 02F2: actor 15@ model == #LAPD1
- 02F2: actor 15@ model == #SFPD1
- 02F2: actor 15@ model == #LVPD1
- 02F2: actor 15@ model == #CSHER
- 02F2: actor 15@ model == #LAPDM1
- jf @model
- jump @rist
- :model
- wait 0
- if or
- 02F2: actor 15@ model == #ARMY
- 02F2: actor 15@ model == #DSHER
- 02F2: actor 15@ model == #WMYSGRD
- jf @PEPE_1
- jump @rist
- :rist
- wait 0
- 0AF9: samp say_msg "/suristi %s" 2@
- wait 200
- 0AF9: samp say_msg "/isodinti %s" 2@
- wait 500
- jump @PEPE_1
- :asMentas
- wait 0
- 0AF9: samp say_msg "as dx"
- jump @PEPE_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement