Избранное ASI SAMPFUNCS

FYP

Известный
Автор темы
Администратор
1,763
5,890
предрелизная версия для 0.3z, ещё даже не тестировалась. список всех опкодов, включая новые, ниже. все нововведения будут описаны после релиза. у консоли пока что команд нет. прошу сообщать о каждом найденом баге.
Код:
0AF6=0,samp spawn_player
0AF7=1,samp %1d% = get_base
0AF8=-1,samp add_message_to_chat %1s% color %2d%
0AF9=-1,samp say_msg %1s%
0AFA=0, is_samp_available
0AFB=1,samp request_class %1d%
0AFC=4,samp send_scm_event %1d% event_id %2d% param_1 %3d% param_2 %4d%
0AFD=1,samp set_special_action %1d%
0AFE=2,samp send_death_by_player %1d% with_reason %2d%
0AFF=2,samp %2d% = car_handle_by_samp_vehicle_id %1d%
0B20=2,samp %2d% = actor_handle_by_samp_player_id %1d%
0B21=0,    samp is_chat_opened
0B22=2,samp set_sendrate %1d% to %2d%
0B25=2,samp %2d% = get_player_health %1d%
0B26=2,samp %2d% = get_player_armor %1d%
0B27=1,samp set_gamestate %1d%
0B28=1,samp disconnect_with_reason %1d%
0B29=-1,samp set_local_name %1s%
0B23=1, samp is_player_connected %1d%
0B24=2,samp %2d% = get_player_struct_ptr %1d%
0B2A=2,samp %2d% = get_player_ping %1d%
0B2B=2,samp %2d% = get_player_id_by_actor_handle %1d%
0B2C=2,samp %2d% = get_vehicle_id_by_car_handle %1d%
0B2D=3,write_samp_memory offset %1d% value %2d% size %3d%
0B2E=3,%3d% = read_samp_memory offset %1d% size %2d%
0B2F=4,samp get_streamed_out_player_pos %1d% to %2d% %3d% %4d%
0B30=2,samp send_enter_vehicle %1d% as_passenger %2d%
0B31=1,samp send_exit_vehicle %1d%
0B32=0,samp send_spawn
0B33=5,samp send_damage_vehicle %1d% panel %2d% doors %3d% lights %4d% tires %5d%
0B34=2,samp register_client_command %1s% to_label %2p%
0B35=1,samp %1d% = get_last_command_params
0B36=2,samp %2d% = get_player_nickname %1d%
0B37=2,samp %2d% = get_player_color %1d%
0B38=2,samp connect_to_server %1s% port %2d%
0B39=2,samp get_current_server_address %1d% port %2d%
0B3A=1,samp %1s% = get_current_server_name
0B3B=6,samp show_dialog id %1d% caption %2s% text %3s% button_1 %4s% button_2 %5s% style %6d%
0B3C=4, samp is_dialog_responded id %1d% button %2d% list_item %3d% input_text %4s%
0B43=0,samp cmd_ret
0B44=10,samp %10d% = create_3d_text %1s% color %2d% position %3d% %4d% %5d% view_distance %6d% show_behind_walls %7d% attached_to_player %8d% attached_to_vehicle %9d%
0B45=1,samp destroy_3d_text %1d%
0B46=1,    samp 3d_text %1d% defined
0B47=1,samp close_current_dialog_with_button %1d%
0B48=1,    samp %1d% = get_current_dialog_list_item
0B49=1,samp set_current_dialog_list_item %1d%
0B4A=1,samp %1d% = get_current_dialog_editbox_text
0B4B=1,samp set_current_dialog_editbox_text %1d%
0B4C=1, samp is_dialog_active %1d%
0B4D=1,samp %1d% = get_current_dialog_type
0B4E=1,samp %1d% = get_current_dialog_id
0B4F=1,samp %1d% = get_gamestate
0B50=2,samp %2d% = object_handle_by_id %1d%
0B51=2,samp %2d% = pickup_handle_by_id %1d%
0B52=2,samp %2d% = object_id_by_handle %1d%
0B53=2,samp %2d% = pickup_id_by_handle %1d%
0B54=1,samp %1d% = listbox_items_count
0B55=5,convert_3D_coords %1d% %2d% %3d% to_screen %4d% %5d%
0B56=2,set_game_key %1d% state %2d%
0B57=2,samp %2d% = player %1d% animation_id
0B58=3,samp get_animation_name_to %2d% file_to %3d% by_id %1d%
0B59=3,samp %3d% = animation_id_by_name %1d% file %2d%
0B5A=2,get_screen_resolution %1d% %2d%
0B5B=2,samp get_listbox_item %1d% text_to %2d%
0B5D=1,samp toggle_cursor %1d%
0B5E=2,get_cursor_pos %1d% %2d%
0B5F=4,convert_window_screen_coords %1d% %2d% to_game_screen_coords %3d% %4d%
0B60=4,convert_game_screen_coords %1d% %2d% to_window_screen_coords %3d% %4d%
0B5C=1, samp is_player %1d% paused
0B61=0, samp is_local_player_spawned
0B62=2,samp %2d% = player %1d% special_action
0B63=1, samp unregister_client_command %1d%
0B64=1, samp is_player %1d% npc
0B65=2,samp %2d% = player %1d% score
0B8C=0, samp is_cursor_active
0B8D=1, samp set_cursor_mode %1d%
0B8E=1, samp %1d% = get_cursor_mode
0B74=5, samp set_chat_string %1d% text %2d% prefix %3d% color %4d% prefix_color %5d%
0B75=5, samp get_chat_string %1d% text_to %2d% prefix_to %3d% color_to %4d% prefix_color_to %5d%
0B8F=5, convert_screen_coords %1d% %2d% to_world_3d %3d% %4d% %5d%
0B76=1, samp set_chat_input_text %1d%
0B77=1, samp get_chat_input_text_to %1d%
 
0B3D=1,raknet %1d% = new_bit_stream
0B3E=1,raknet delete_bit_stream %1d%
0B3F=1,raknet reset_bit_stream %1d%
0B40=4,raknet bit_stream %1d% write %2d% type %3d% size %4d%
0B41=6,raknet send_rpc %1d% bit_stream %2d% priority %3d% reliability %4d% ordering_channel %5d% shift_timestamp %6d%
0B42=4,raknet send bit_stream %1d% priority %2d% reliability %3d% ordering_channel %4d%
0B8A=2,raknet send_rpc %1d% bit_stream %2d%
0B8B=1,raknet send bit_stream %1d%
 
0B66=5,render argb %1d% to_a %2d% r %3d% g %4d% b %5d%
0B67=5,render a %1d% r %2d% g %3d% b %4d% to_argb %5d%
0B68=6,render draw_line_point1 %1d% %2d% point2 %3d% %4d% width %5d% color %6d%
0B69=5,render draw_box_pos %1d% %2d% size %3d% %4d% color %5d%
0B6A=7,render draw_box_with_border_pos %1d% %2d% size %3d% %4d% color %5d% border_size %6d% border_color %7d%
0B6B=3,render %3d% = font %1d% draw_text %2d% length
0B6C=2,render %2d% = font %1d% draw_height
0B6D=4,render %4d% = create_font %1d% height %2d% flags %3d%
0B6E=1,render release_font %1d%
0B6F=5,render font %1d% draw_text %2d% pos %3d% %4d% color %5d%
0B70=7,render draw_polygon_pos %1d% %2d% size %3d% %4d% corners %5d% rotation %6d% color %7d%
0B71=2,render %2d% = load_texture_from_file %1d%
0B72=1,render release_texture %1d%
0B73=7,render draw_texture %1d% pos %2d% %3d% size %4d% %5d% rotation %6d% color %7d%
 
0B80=2,dialog %2d% = create %1d%
0B81=3,dialog %1d% pop_event_to %2d% control_id_to %3d%
0B82=7,dialog %1d% add_button id %2d% text %3d% pos_XY %4d% %5d% size %6d% %7d%
0B83=7,dialog %1d% add_checkbox id %2d% text %3d% pos_XY %4d% %5d% size %6d% %7d%
0B84=5,dialog %1d% set_pos_XY %2d% %3d% size %4d% %5d%
0B85=5,dialog %1d% get_position_to %2d% %3d% size_to %4d% %5d%
0B86=2,dialog %1d% set_visible %2d%
0B87=1, dialog %1d% is_visible
0B88=7,dialog %1d% add_editbox id %2d% text %3d% pos_XY %4d% %5d% size %6d% %7d%
0B89=3,dialog %1d% get_control %2d% text_to %3d%
0B90=3,dialog %1d% control %2d% set_visible %3d%
0B91=7,dialog %1d% add_static id %2d% text %3d% pos_XY %4d% %5d% size %6d% %7d%
0B92=2, dialog %1d% checkbox %2d% is_checked
0B93=2,dialog %1d% set_background_color %2d%
0B94=3,dialog %1d% set_control %2d% text %3d%
0B95=2, dialog %1d% control %2d% is_visible
0B96=7,dialog %1d% add_slider id %2d% pos_XY %3d% %4d% size %5d% %6d% max %7d%
0B97=3,dialog %1d% slider %2d% get_value_to %3d%
0B98=3,dialog %1d% slider %2d% set_value_to %3d%
0B99=6,dialog %1d% add_listbox id %2d% x %3d% y %4d% width %5d% height %6d%
0B9A=5,dialog %1d% listbox %2d% insert_element %3d% with_data %4d% after %5d%
0B9B=4,dialog %1d% listbox %2d% selected_element_to %3d% elements_count_to %4d%
0B9C=3,dialog %1d% listbox %2d% delete_element %3d%
0B9D=5,dialog %1d% listbox %2d% element %3d% store_text_to %4d% data_to %5d%
0B9E=3,dialog %1d% checkbox %2d% set_checked %3d%
0B9F=2,dialog %1d% enable_caption %2d%
0BA0=1, dialog %1d% is_caption_enabled
0BA1=2,dialog %1d% set_minimized %2d%
0BA2=1, dialog %1d% is_minimized
0BA3=2,dialog %1d% control %2d% free
0BA4=1,dialog %1d% free
0BA5=2,dialog %1d% set_focus_on_control %2d%
0BA6=4,dialog %1d% set_control %2d% size_XY %3d% %4d%
0BA7=4,dialog %1d% get_control %2d% size_to %3d% %4d%
0BA8=4,dialog %1d% set_control %2d% pos_XY %3d% %4d%
0BA9=4,dialog %1d% get_control %2d% pos_to %3d% %4d%
 
0C00=2,math %2d% = abs %1d% // (float)
0C01=2,math %2d% = radian_to_angle %1d% // (float)
0C02=2,math %2d% = angle_to_radian %1d% // (float)
0C03=2,math %2d% = sine %1d% // (float)
0C04=2,math %2d% = arcsine %1d% // (float)
0C05=2,math %2d% = cosine %1d% // (float)
0C06=2,math %2d% = arccosine %1d% // (float)
0C07=2,math %2d% = tangent %1d% // (float)
0C08=2,math %2d% = arctangent %1d% // (float)
0C09=3,math %3d% = power %1d% %2d% // (float)
0C0A=2,math %2d% = ceil %1d% // (float)
0C0B=2,math %2d% = floor %1d% // (float)
 
0C0C=4, %4d% = struct %1d% offset %2d% size %3d%
0C0D=4, struct %1d% offset %2d% size %3d% = %4d%
0C0E=3, %3d% = array %1d% element %2d%
0C0F=3, array %1d% element %2d% = %3d%
0C10=3,memcpy destination %1d% source %2d% size %3d%
0C11=3,memset destination %1d% value %2d% size %3d%
0C12=3,memcmp buffer1 %1d% buffer2 %2d% size %3d%
0C13=2,strcpy destination %1d% source %2d%
0C14=2,strcmp string1 %1d% string2 %2d%
0C15=2,strcat destination %1d% source %2d%
0C16=3,%3d% = strtok string1 %1d% string2 %2d%
0C17=2,%2d% = strlen %1d%
0C18=3,%3d% = strstr string1 %1d% string2 %2d%
0C19=3,%3d% = strcspn string1 %1d% string2 %2d%
0C1A=2,%2d% = atoi %1d%
0C1B=2,%2d% = atof %1d%
0C1C=3,%3d% = itoa %1d% radix 10
 

Вложения

  • SF_3.0_0.3z_pre-release.rar
    141.9 KB · Просмотры: 433

RUSJONERAP

Новичок
3
2
Мне главное чтобы бот работал на Шахту на Адвансе и придостаточно можете так сделать?
 
  • Нравится
Реакции: gcode

Boomsss

Новичок
30
5
не переходит в оконный режим, или в настройках нужно что-то изменить?