Angel9
Active member
I can't seem to get the script to send the /start command can someone help me?
Code:
{$CLEO .cs}
0000: NOP
wait 10000 // wait until samp is ready
while true
wait 0
if
0ADC: test_cheat "ON" // if press keys O AND N
then
0@ = true
0AD1: show_formatted_text_highpriority "Walking...." time 2000
end
if
0@ == true
then // 1
if or
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1431.0006 -1867.7249 radius 1.0 1.0 on_foot // start position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x121 state 255 //enter
0AF9: samp say_msg "/start "
then
repeat
wait 0
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
0AB1: @CAMERA_AT_POS 3 XYZ: 1431.0006 -1867.7249 10.8203
until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1431.0006 -1867.7249 radius 1.0 1.0 on_foot /// repeat until reach position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 0
if or
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1431.0006 -1867.7249 radius 1.0 1.0 on_foot // if reached position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x3D9 state 255
then // 3
repeat
wait 0
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
0AB1: @CAMERA_AT_POS 3 XYZ: 1426.6090 -1872.1099 10.8203
until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1426.6090 -1872.1099 radius 1.0 1.0 on_foot /// repeat until reach position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 0
if or
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1426.6090 -1872.1099 radius 1.0 1.0 on_foot // if reached position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x3D9 state 255
then // 4
repeat
wait 0
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
0AB1: @CAMERA_AT_POS 3 XYZ: 1421.0555 -1867.9093 10.8203 10.8203
until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1421.0555 -1867.9093 radius 1.0 1.0 on_foot /// repeat until reach position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 0
if or
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1421.0555 -1867.9093 radius 1.0 1.0 on_foot // if reached position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x3D9 state 255
then // 5
repeat
wait 0
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
0AB1: @CAMERA_AT_POS 3 XYZ: 1416.8649 -1871.7772 10.8203 10.8203
until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1416.8649 -1871.7772 radius 1.0 1.0 on_foot /// repeat until reach position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 0
if or
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1416.8649 -1871.7772 radius 1.0 1.0 on_foot // if reached position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x3D9 state 255
then // 5
repeat
wait 0
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
0AB1: @CAMERA_AT_POS 3 XYZ: 1416.8649 -1871.7772 10.8203 10.8203
until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1416.8649 -1871.7772 radius 1.0 1.0 on_foot /// repeat until reach position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 0
if or
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1416.8649 -1871.7772 radius 1.0 1.0 on_foot // if reached position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x3D9 state 255
then // 5
repeat
wait 0
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
0AB1: @CAMERA_AT_POS 3 XYZ: 1431.0006 -1867.7249 10.8203
until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 1431.0006 -1867.7249 radius 1.0 1.0 on_foot /// repeat until reach position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 0
if or
00ED: actor $PLAYER_ACTOR sphere 0 near_point 1431.0006 -1867.7249 radius 1.0 1.0 on_foot // if reached position
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x3D9 state 255
then // 6 , so we have 6 - then , that means we need 6 end
1@ += 1 // counter
0AD1: show_formatted_text_highpriority "~w~You reached last position ~n~ ~r~Current runing time: %d" time 2000 1@
end
end
end
end
end
end
end
end
if 1@ >= 10 // if runned 10 or more times then disable code
then
0@ = false // disable bot
end
end // also while true always must have - end
:Set_Virtual_Key
{
255 = true
0 = false
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x3D9 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@ // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
//0AB1: @AIM_AT_POS 3 XYZ: 1@ 2@ 3@
:CAMERA_AT_POS
0087: 8@ = 3@
068D: get_camera_position_to 3@ 4@ 5@
0063: 0@ -= 3@
0063: 1@ -= 4@
0604: get_Z_angle_for_point 0@ 1@ store_to 6@
6@ -= 90.0
0017: 6@ /= 57.2957795
005B: 6@ += 8@ // (float)
0A8D: 7@ = read_memory 0xB6F248 size 4 virtual_protect 0
0A25: set_camera_on_players_X_angle 7@ Z_angle 6@
0661: "by Opcode.eXe | UGBASE.EU"
0AB2: 0