Список опкодов

В этом разделе собраны все опкоды, которые внесены в данную вики

Список опкодов, относящихся только к плагину SAMPFUNCS, находится здесь.
ОпкодИспользование
00500050: gosub @temp
00510051: return
00980098: 0@ = random_float_in_ranges_0.0_to_1.0
00990099: 0@ = random_int_in_ranges_0_to_32767
00a000A0: store_actor 0@ position_to 1@ 2@ 3@
00a100A1: put_actor 0@ at 1@ 2@ 3@
00a400A4: actor $PLAYER_ACTOR sphere 0 in_cube_cornerA 0@ 1@ 2@ cornerB 3@ 4@ 5@
01070107: 4@ = create_object 0@ at 1@ 2@ 3@
01080108: destroy_object 0@
010b010B: 1@ = player $PLAYER_CHAR money
01180118: actor 0@ dead
01720172: 0@ = actor $PLAYER_ACTOR Z_angle
01730173: set_actor $PLAYER_ACTOR Z_angle 0@
01b401B4: set_player $PLAYER_CHAR can_move 1
02080208: 2@ = random_float_in_ranges 0@ 1@
02090209: 2@ = random_int_in_ranges 0@ 1@
02260226: 1@ = actor 0@ health
02270227: 1@ = car 0@ health
02470247: load_model 0@
02480248: model 0@ available
02ab02AB: set_actor $PLAYER_ACTOR immunities BP 0@ FP 1@ EP 2@ CP 3@ MP 4@
02d802D8: actor $PLAYER_ACTOR current_weapon == 24
02eb02EB: restore_camera_with_jumpcut
02f202F2: actor $PLAYER_ACTOR model == 0@
038b038B: load_requested_models
03c003C0: 1@ = actor $PLAYER_ACTOR car
046c046C: 1@ = car 0@ driver
04700470: 0@ = actor $PLAYER_ACTOR current_weapon
04850485: return_true
04910491: actor $PLAYER_ACTOR has_weapon 24
04d704D7: set_actor $PLAYER_ACTOR locked 0@
04ed04ED: load_animation "LOWRIDER"
04ee04EE: animation "LOWRIDER" loaded
050a050A: 0@ = distance_between_XYZ 1@ 2@ 3@ and_XYZ 4@ 5@ 6@
056d056D: actor 0@ defined
056e056E: car 0@ defined
059a059A: return_false
072a072A: put_actor $PLAYER_ACTOR into_car 0@ driverseat
072b072B: put_actor $PLAYER_ACTOR into_car 0@ passengerseat 1@
077e077E: get_active_interior_to 0@
08180818: actor $PLAYER_ACTOR in_air
081a081A: set_actor $PLAYER_ACTOR weapon_skill_to 0@
081e081E: model 0@ boat
081f081F: model 0@ plane
08200820: model 0@ heli
08260826: enable_hud 0@
0a8c0A8C: write_memory 0@ size 1@ value 2@ virtual_protect 3@
0a8d0A8D: 3@ = read_memory 0@ size 1@ virtual_protect 2@
0a920A92: create_custom_thread "script.sc" 0@ 1@
0a930A93: end_custom_thread
0a960A96: 0@ = actor $PLAYER_ACTOR struct
0a990A99: chdir 0@
0a9a0A9A: 0@ = openfile "settings.ini" mode "r"
0a9b0A9B: closefile 0@
0a9c0A9C: 1@ = file 0@ size
0a9d0A9D: readfile 0@ size 1@ to 2@
0a9e0A9E: writefile 0@ size 1@ from 2@
0a9f0A9F: 0@ = current_thread_pointer
0aa90AA9: is_game_version_original
0ab00AB0: key_pressed 0@
0ab10AB1: call_scm_func @label 1 150 result_to 0@
0ab20AB2: ret 1 300
0ab60AB6: store_target_marker_coords_to 0@ 1@ 2@
0abe0ABE: vehicle 0@ engine_on
0ac60AC6: 0@ = label @name offset
0ac70AC7: 1@ = var 0@ offset
0ac80AC8: 0@ = allocate_memory_size 1@
0ac90AC9: free_allocated_memory 0@
0ad20AD2: 0@ = player $PLAYER_CHAR targeted_actor
0ad30AD3: 0@ = format "number %d text %s" 1@ 2@
0ad40AD4: 1@ = scan_string 0@ format "%d %f" 2@ 3@
0ad50AD5: file 0@ seek 1@ from_origin 2@
0ad60AD6: end_of_file 0@ reached
0ad70AD7: read_string_from_file 0@ to 1@v size 15
0ad80AD8: write_string_to_file 0@ from 1@v
0ad90AD9: write_formatted_text "CLEO version: %d.%d.%d.%d" in_file 0@ params 4 0 0 1
0ada0ADA: 5@ = scan_file 0@ format "CLEO version: %d.%d.%d.%d" 1@ 2@ 3@ 4@
0adc0ADC: test_cheat "BHON"
0ae10AE1: 6@ = random_actor_near_point 0@ 1@ 2@ in_radius 3@ find_next 4@ pass_deads 5@
0ae20AE2: 6@ = random_vehicle_near_point 0@ 1@ 2@ in_radius 3@ find_next 4@ pass_wrecked 5@
0ae60AE6: 0@ = find_first_file "CLEO\*.cs" get_filename_to 1@v
0ae70AE7: 1@v = find_next_file 0@
0ae80AE8: find_close 0@
0aef0AEF: 2@ = log 0@ base 1@
0af00AF0: 0@ = get_int_from_ini_file "cleo\config.ini" section "SectionName" key "intKey"
0af10AF1: write_int 0@ to_ini_file "cleo\config.ini" section "SectionName" key "intKey"
0af20AF2: 0@ = get_float_from_ini_file "cleo\config.ini" section "SectionName" key "floatKey"
0af30AF3: write_float 0.0 to_ini_file "cleo\config.ini" section "SectionName" key "floatKey"
0af40AF4: 0@v = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey"
0af50AF5: write_string "new string value" to_ini_file "cleo\config.ini" section "SectionName" key "stringKey"
0af60AF6: samp spawn_player
0af70AF7: samp 0@ = get_base
0af80AF8: samp add_message_to_chat "text" color 0xFFFFFF { ... }
0af90AF9: samp say_msg "text/cmd"
0afa0AFA: is_samp_available
0afb0AFB: samp, REQuest_class 0@
0afc0AFC: samp send_scm_event 0@ event_id 1@ param_1 2@ param_2 3@
0afd0AFD: samp set_special_action 0@
0afe0AFE: samp send_death_by_player 0@ with_reason 1@
0aff0AFF: samp 1@ = car_handle_by_samp_vehicle_id 0@
0b000B00: delete_file "CLEO\log.txt"
0b010B01: delete_directory "CLEO\CLEO_SAVES" include_subdirs 0
0b020B02: move_file "myfile.txt" to "CLEO.txt"
0b030B03: move_directory "CLEO\dir1" to "CLEO\dir2"
0b040B04: copy_file "myfile.txt" to "CLEO.txt"
0b050B05: copy_directory "CLEO\dir1" to "CLEO\dir2"
0b100B10: 2@ = 0@ AND 1@
0b110B11: 2@ = 0@ OR 1@
0b120B12: 2@ = 0@ XOR 1@
0b130B13: 1@ = NOT 0@
0b140B14: 2@ = 0@ MOD 1@
0b200B20: samp 1@ = actor_handle_by_samp_player_id 0@
0b210B21: samp is_chat_opened
0b220B22: samp set_sendrate 0@ to 1@
0b230B23: samp is_player_connected 0@
0b240B24: samp 1@ = get_player_struct_ptr 0@
0b250B25: samp 1@ = get_player_health 0@
0b260B26: samp 1@ = get_player_armor 0@
0b270B27: samp set_gamestate 0@
0b280B28: samp disconnect_with_reason 0@
0b290B29: samp set_local_name "name"
0b2a0B2A: samp 1@ = get_player_ping 0@
0b2b0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0b2c0B2C: samp 1@ = get_vehicle_id_by_car_handle 0@
0b2d0B2D: write_samp_memory offset 0@ value 1@ size 2@
0b2e0B2E: 2@ = read_samp_memory offset 0@ size 1@
0b2f0B2F: samp get_streamed_out_player_pos 0@ to 1@ 2@ 3@
0b300B30: samp send_enter_vehicle 0@ as_passenger 1@
0b310B31: samp send_exit_vehicle 0@
0b320B32: samp send_spawn
0b330B33: samp send_damage_vehicle 0@ panel 1@ doors 2@ lights 3@ tires 4@
0b340B34: samp register_client_command "cmd" to_label @command
0b350B35: samp 0@ = get_last_command_params
0b360B36: samp 1@ = get_player_nickname 0@
0b370B37: samp 1@ = get_player_color 0@
0b380B38: samp connect_to_server "127.0.0.1" port 7777
0b390B39: samp get_current_server_address 0@ port 1@
0b3a0B3A: samp 0@ = get_current_server_name
0b3b0B3B: samp show_dialog id 0@ caption "dlg" text "content" button_1 "btn1" button_2 "btn0" style 5@
0b3c0B3C: samp is_dialog_responded id 55 button 1@ list_item 2@ input_text 3@
0b3d0B3D: raknet 0@ = new_bit_stream
0b3e0B3E: raknet delete_bit_stream 0@
0b3f0B3F: raknet reset_bit_stream 0@
0b400B40: raknet bit_stream 0@ write 1@ type 2@ size 3@
0b410B41: raknet send_rpc 0@ bit_stream 1@ priority 2@ reliability 3@ ordering_channel 4@ shift_timestamp 5@
0b420B42: raknet send bit_stream 0@ priority 1@ reliability 2@ ordering_channel 3@
0b430B43: samp cmd_ret
0b440B44: samp 9@ = create_3d_text "piw-piw" color 1@ position 2@ 3@ 4@ view_distance 5@ show_behind_walls 6@ attached_to_player 7
0b450B45: samp destroy_3d_text 0@
0b460B46: samp 3d_text 0@ defined
0b470B47: samp close_current_dialog_with_button 0@
0b480B48: samp 0@ = get_current_dialog_list_item
0b490B49: samp set_current_dialog_list_item 0@
0b4a0B4A: samp 0@ = get_current_dialog_editbox_text
0b4b0B4B: samp set_current_dialog_editbox_text "boom"
0b4c0B4C: samp is_dialog_active 0@
0b4d0B4D: samp 0@ = get_current_dialog_type
0b4e0B4E: samp 0@ = get_current_dialog_id
0b4f0B4F: samp 0@ = get_gamestate
0b500B50: samp 1@ = object_handle_by_id 0@
0b510B51: samp 1@ = pickup_handle_by_id 0@
0b520B52: samp 1@ = object_id_by_handle 0@
0b530B53: samp 1@ = pickup_id_by_handle 0@
0b540B54: samp 0@ = listbox_items_count
0b550B55: convert_3D_coords 0@ 1@ 2@ to_screen 3@ 4@
0b560B56: set_game_key 0@ state 1@
0b570B57: samp 1@ = player 0@ animation_id
0b580B58: samp get_animation_name_to 0@ file_to 1@ by_id 2@
0b590B59: samp 2@ = animation_id_by_name 0@ file 1@
0b5a0B5A: get_screen_resolution 0@ 1@
0b5b0B5B: samp get_listbox_item 0@ text_to 1@
0b5c0B5C: samp is_player 0@ paused
0b5d0B5D: samp toggle_cursor 0@
0b5e0B5E: get_cursor_pos 0@ 1@
0b5f0B5F: convert_window_screen_coords 0@ 1@ to_game_screen_coords 2@ 3@
0b600B60: convert_game_screen_coords 0@ 1@ to_window_screen_coords 2@ 3@
0b610B61: samp is_local_player_spawned
0b620B62: samp 1@ = player 0@ special_action
0b630B63: samp unregister_client_command "cmd"
0b640B64: samp is_player 0@ npc
0b650B65: samp 1@ = player 0@ score
0b660B66: render argb 0@ to_a 1@ r 2@ g 3@ b 4@
0b670B67: render a 0@ r 1@ g 2@ b 3@ to_argb 4@
0b680B68: render draw_line_point1 0@ 1@ point2 2@ 3@ width 4@ color 5@
0b690B69: render draw_box_pos 0@ 1@ size 2@ 3@ color 4@
0b6a0B6A: render draw_box_with_border_pos 0@ 1@ size 2@ 3@ color 4@ border_size 5@ border_color 6@
0b6b0B6B: render 2@ = font 0@ draw_text "brr" length
0b6c0B6C: render 1@ = font 0@ draw_height
0b6d0B6D: render 3@ = create_font "Arial" height 1@ flags 2@
0b6e0B6E: render release_font 0@
0b6f0B6F: render font 0@ draw_text "brr" pos 2@ 3@ color 4@
0b700B70: render draw_polygon_pos 0@ 1@ size 2@ 3@ corners 4@ rotation 5@ color 6@
0b710B71: render 1@ = load_texture_from_file "pic.png"
0b720B72: render release_texture 0@
0b730B73: render draw_texture 0@ pos 1@ 2@ size 3@ 4@ rotation 5@ color 6@
0b740B74: samp set_chat_string 0@ text "ho-ho-ho" prefix "" color 3@ prefix_color 4@
0b750B75: samp get_chat_string 0@ text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
0b760B76: samp set_chat_input_text "yo"
0b770B77: samp get_chat_input_text_to 0@
0b780B78: log "text"
0b790B79: samp set_chat_input_enabled 0@
0b7a0B7A: samp 0@ = get_rakclient_interface
0b7b0B7B: samp 0@ = get_rakpeer
0b7c0B7C: samp 1@ = get_rakclient_func_by_index 0@
0b7d0B7D: samp 1@ = get_rpc_func_by_index 0@
0b7e0B7E: samp 1@ = get_rpc_node_by_index 0@
0b7f0B7F: samp 0@ = get_samp_info_ptr
0b800B80: dialog 2@ = create "SF Dialog"
0b810B81: dialog 1@ pop_event_to 2@ control_id_to 3@
0b820B82: dialog 1@ add_button id 2@ text 3@ pos_XY 4@ 5@ size 6@ 7@
0b830B83: dialog 1@ add_checkbox id 2@ text 3@ pos_XY 4@ 5@ size 6@ 7@
0b840B84: dialog 1@ set_pos_XY 2@ 3@ size 4@ 5@
0b850B85: dialog 1@ get_position_to 2@ 3@ size_to 4@ 5@
0b860B86: dialog 1@ set_visible 2@
0b870B87: dialog 1@ is_visible
0b880B88: dialog 1@ add_editbox id 2@ text 3@ pos_XY 4@ 5@ size 6@ 7@
0b890B89: dialog 1@ get_control 2@ text_to 3@
0b8a0B8A: raknet send_rpc 0@ bit_stream 1@
0b8b0B8B: raknet send bit_stream 0@
0b8c0B8C: samp is_cursor_active
0b8d0B8D: samp set_cursor_mode 0@
0b8e0B8E: samp 0@ = get_cursor_mode
0b8f0B8F: convert_screen_coords 0@ 1@ depth 2@ to_world_3d 3@ 4@ 5@
0b900B90: dialog 1@ control 2@ set_visible 3@
0b910B91: dialog 1@ add_static id 2@ text 3@ pos_XY 4@ 5@ size 6@ 7@
0b920B92: dialog 1@ checkbox 2@ is_checked