Help CLEO changes and compile

kokom7

Active member
Joined
Nov 4, 2016
Messages
43
Reaction score
1
Location
United Kingdom
Hello, i need help to changes and re compile a Spectating CLEO, i try to re-compile but ends with errors
{

Made by Opcode.eXe

Write /.spec ID to spectate an player.
Type /.spec to stop spectating.


www.youtube.com/Opcodexe


}

{$CLEO .cs}
0000:


0B34: samp register_client_command ".spec" to_label @SPEC

if
8AAB: file_exists "CLEO\.spec.ini"
then
0AF1: write_int 0 to_ini_file "CLEO\.spec.ini" section "SPEC" key "StickToPlayer"
0AF1: write_int 1 to_ini_file "CLEO\.spec.ini" section "SPEC" key "ShowInfos"
end



WHILE TRUE
WAIT 0
if
30@ == 1
then
if
0B23: player_connected 1@
then
if
0B20: samp 2@ = actor_handle_from_samp_playerid 1@
then
0AF0: 0@ = get_int_from_ini_file "CLEO\.spec.ini" section "SPEC" key "StickToPlayer"
if
0@ == 1
then
04C4: store_coords_to 3@ 4@ 5@ from_actor 2@ with_offset 0.0 0.0 -35.0
6@ = Actor.Angle(2@)
02CE: 5@ = ground_z_at 3@ 4@ 5@
5@ -= 30.0
Actor.PutAt($PLAYER_ACTOR, 3@, 4@, 5@)
Actor.Angle($PLAYER_ACTOR) = 6@
end
0AF0: 0@ = get_int_from_ini_file "CLEO\.spec.ini" section "SPEC" key "ShowInfos"
if
0@ == 1
then
0B36: samp 7@ = get_player_nickname 1@
0B25: samp 8@ = get_player_health_from_actor_handle 2@
0B2A: samp 9@ = get_player_ping 1@
0AD1: show_formatted_text_highpriority "~R~%s(~w~%d~r~) - ~r~PING:~w~ %d" time 100 7@ 1@ 9@
end

else
30@ = 0
end
else
30@ = 0
end
end
END

:SPEC
0B35: samp 31@ = get_last_command_params
if
0AD4: 0@ = scan_string 31@ format "%d" 1@
then
if
0B23: player_connected 1@
then
if
0B20: samp 2@ = actor_handle_from_samp_playerid 1@
then
if
00DF: actor 2@ driving
then
03C0: 3@ = actor 2@ car
0158: camera_on_car 3@ mode 3 switchstyle 1
else
0159: camera_on_ped 2@ mode 4 switchstyle 1
end
30@ = 1
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}PLAYER_ID {FF0000}%d {FFFFFF}IS NOW BEING SPECTATED." color 0xFFFFFF 1@
else
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}PLAYER_ID {FF0000}%d {FFFFFF}IS NOT STREAMED IN." color 0xFFFFFF 1@
end
else
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}PLAYER_ID {FF0000}%d {FFFFFF}IS NOT CONNECTED." color 0xFFFFFF 1@
30@ = 0
end
else
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}DISABLED SPEC MODUS" color 0xFFFFFF
30@ = 0
Camera.Restore_WithJumpCut()
end
0B43: cmd_ret
i want this part is removed, so theres no chatlog when executing the command
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}PLAYER_ID {FF0000}%d {FFFFFF}IS NOW BEING SPECTATED." color 0xFFFFFF 1@
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}PLAYER_ID {FF0000}%d {FFFFFF}IS NOT STREAMED IN." color 0xFFFFFF 1@
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}PLAYER_ID {FF0000}%d {FFFFFF}IS NOT CONNECTED." color 0xFFFFFF 1@
0AF8: samp add_message_to_chat "{FF0000}[.SPEC] {FFFFFF}DISABLED SPEC MODUS" color 0xFFFFFF
 
Top