{$CLEO .cs}
thread 'TowCars'
0@ = 0 // Initialize toggle variable to off
:TowCars_Loop
wait 0
if
0@ == 1 // If toggle variable is on
then
0C8F: samp process_chat_input "/towcars" // Execute the "/towcars" command
wait 30000 // Wait for 30 seconds
end
jump @TowCars_Loop
:TowCars_Cmd
wait 0
if
056D: actor $PLAYER_ACTOR defined // If player is defined
then
0AD2: 0@ = get_console_variable "toggle_towcars" // Get the value of the "toggle_towcars" console variable
if
0@ == 0 // If the variable is currently off
then
0ACD: show_text_styled "Auto Tow-Cars: ~g~ON~w~" time 1500 // Show "Auto Tow-Cars: ON" message
0A96: 0@ = 1 // Set the variable to on
else
0ACD: show_text_styled "Auto Tow-Cars: ~r~OFF~w~" time 1500 // Show "Auto Tow-Cars: OFF" message
0A96: 0@ = 0 // Set the variable to off
end
0AD3: set_console_variable "toggle_towcars" 0@ // Set the value of the "toggle_towcars" console variable
end
jump @TowCars_Cmd
please can anyone help me with this code when /att sent the /towcars command gets executed every 60 seconds please