I had made something like that a long time ago.
First you need to type /OP_ISBOT on your second GTA_SA.
Then you have to type /OP_EXEC follow playerID on your main gta_sa window and you're done...
If you want to write a chat messsage on your second GTA_SA just type "/OP_EXEC HELLOO THIS IS A CHAT MESSAGE"
This was done on ONE PC using AntiAFK and Sandboxie( or just enable it in sampfuncs.ini )
I dont have sanny builder so.... someone has to compile it for you
PHP:
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0B34: "OP_EXEC" @OP_EXEC
0B34: "OP_ISBOT" @OP_ISBOT
10@ = -1
WHILE TRUE
WAIT 0
IF
20@ == TRUE
THEN
IF
0A9A: 0@ = openfile "CLEO\OP_BOT.log" mode "rt"
THEN
32@ = 0
0AC8: 1@ = allocate_memory_size 260
REPEAT
0AD7: read_string_from_file 0@ to 1@ size 260
IF
0AD4: 33@ = scan_string 1@ "follow %d" 10@
THEN
018C: play_sound 1052 at 0.0 0.0 0.0
0AF9: say_msg "I will run like a noob around id %d" 10@
break
END
0AF9: say_msg 1@
break
UNTIL 0AD6: end_of_file 0@ reached
0AC9: free_allocated_memory 2@
0AC9: free_allocated_memory 1@
0A9B: closefile 0@
IF 0AAB: file_exists "CLEO\OP_BOT.log"
THEN 0B00: delete_file "CLEO\OP_BOT.log"
END
END
IF
0B23: is_player_connected 10@
THEN
IF
0B20: 11@ = actor_handle_by_samp_player_id 10@
THEN
IF
8104: actor $PLAYER_ACTOR near_actor 11@ radius 3.0 3.0 3.0 sphere 0
THEN
0AB1: @PRESS_W 0
0AB1: @GET_ANGLE_BETWEEN_ACTORS 2 $PLAYER_ACTOR 11@ 12@
12@ += 45.0
Actor.Angle($PLAYER_ACTOR) = 12@
0AB1: @PRESS_SPACE 0
END
IF
00DF: actor 11@ driving
THEN
IF
0104: actor $PLAYER_ACTOR near_actor 11@ radius 3.0 3.0 3.0 sphere 0
THEN
IF
80DF: actor $PLAYER_ACTOR driving
THEN
03C0: 12@ = actor $PLAYER_ACTOR car
IF
0431: car 12@ passenger_seat_free 0
THEN
05CA: AS_actor $PLAYER_ACTOR enter_car 12@ passenger_seat 0 time 1000 // THIS MIGHT CRASH, SO REMOVE THIS LINE.
END
END
END
END
END
END
END
END
:GET_ANGLE_BETWEEN_ACTORS
Actor.StorePos(0@, 5@, 6@, 7@)
Actor.StorePos(1@, 8@, 9@, 10@)
0AB1: @getZAngleBetweenPoints 4 from_XY 8@ 9@ btw 5@ 6@ store_to 13@
0AB2: 1 13@
:OP_EXEC
0B35: 31@ LAST_CMD_PARAMS
IF
0A9A: 30@ = openfile "CLEO\OP_BOT.log" mode "at"
THEN
0AF8: "{FF0000}OP_EXEC: {FFFFFF}%s" -1 31@
0AD9: write_formatted_text "%s%c" in_file 30@ 31@ 0xA
0A9B: closefile 30@
END
0B43: CMD_RET
:OP_ISBOT
20@ = TRUE
0B43: CMD_RET
:PRESS_W
31@ = 0xB73458
31@ += 1
0A8C: write_memory 31@ size 1 value 255 virtual_protect 0
0AB2: 0
:PRESS_SPACE
8@ = 12006488
8@ += 32
0A8C: write_memory 8@ size 1 value 255 virtual_protect 0
0Ab2: 0
:getZAngleBetweenPoints
0063: 0@ -= 2@
0063: 1@ -= 3@
0604: get_Z_angle_for_point 0@ 1@ store_to 4@
0AB2: ret 1 4@