pai1ne13
Active member
- Joined
- Jan 2, 2019
- Messages
- 59
- Reaction score
- 4
hello, i have a problem with this code.Need to do command "/getmats" at specific coordonates and when i am behind my vehicle need to press "H".
how can i fix it
how can i fix it
Code:
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
WHILE TRUE
WAIT 0
0@ = $PLAYER_ACTOR car
IF OR
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1623.0679 688.2296 radius 4.0 4.0 on_foot
THEN
0AF9: samp say_msg "/getmats"
if
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
then
key_down 72
END
end