Hello, im editing a "mats teleporter" and adding some things but when i execute the script and says "/plpos mat" the server says that command doesnt exist im searching from a code or something who execute the command without that problem
here my script
here the files and the cleos im using (the command of "plpos" is from "tp_menu" i had sampfuncs so it isnt that problem
here my script
{$CLEO .cs}
{$USE bitwise}
0000:NOP
0@ = 0
0B34: samp register_client_command "mates" to_label @cmd
wait 2000/// wait 1000 - 1 seconds
//////
:MAIN
wait 0
if
0@ == 1
then
wait 100 /// You can change time
0AF9: samp say_msg "/plpos mat1"
wait 1000
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.08 0.0
0A96: 4@ = actor $PLAYER_ACTOR struct
000A: 4@ += 20
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
000A: 4@ += 48
0A8C: write_memory 4@ size 4 value 1@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 2@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 3@ virtual_protect 0
0172: 10@ = actor $PLAYER_ACTOR Z_angle
000E: 10@ -= 90
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 0.7 -1.12
0107: 6@ = create_object 2632 at 3@ 4@ 5@
0566: link_object 6@ to_interior 8
0177: set_object 6@ Z_angle_to 10@
wait 1000
0AF9: samp say_msg "/comprar materiales"
end
if
0@ == 1
then
wait 3000 /// Pause before moving on to the next
end
///////
if
0@ == 1
then
wait 100 /// You can change time
0AF9: samp say_msg "/plpos mat2"
wait 1000
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.08 0.0
0A96: 4@ = actor $PLAYER_ACTOR struct
000A: 4@ += 20
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
000A: 4@ += 48
0A8C: write_memory 4@ size 4 value 1@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 2@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 3@ virtual_protect 0
0172: 10@ = actor $PLAYER_ACTOR Z_angle
000E: 10@ -= 90
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 0.7 -1.12
0107: 6@ = create_object 2632 at 3@ 4@ 5@
0566: link_object 6@ to_interior 8
0177: set_object 6@ Z_angle_to 10@
wait 1000
0AF9: samp say_msg "/comprar materiales"
end
if
0@ == 1
then
wait 3000 /// Pause before moving on to the next
end
///////
if
0@ == 1
then
wait 100 /// You can change time
0AF9: samp say_msg "/plpos mat3"
wait 1000
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.08 0.0
0A96: 4@ = actor $PLAYER_ACTOR struct
000A: 4@ += 20
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
000A: 4@ += 48
0A8C: write_memory 4@ size 4 value 1@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 2@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 3@ virtual_protect 0
0172: 10@ = actor $PLAYER_ACTOR Z_angle
000E: 10@ -= 90
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 0.7 -1.12
0107: 6@ = create_object 2632 at 3@ 4@ 5@
0566: link_object 6@ to_interior 8
0177: set_object 6@ Z_angle_to 10@
wait 1000
0AF9: samp say_msg "/comprar materiales"
end
if
0@ == 1
then
wait 3000 /// Pause before moving on to the next
end
///////
if
0@ == 1
then
wait 100 /// You can change time
0AF9: samp say_msg "/plpos mat5"
end
if
0@ == 1
then
wait 120000 /// Pause before moving on to the next
end
///////
if
0@ == 1
then
wait 100 /// You can change time
0AF9: samp say_msg "/plpos mat4"
wait 1000
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.08 0.0
0A96: 4@ = actor $PLAYER_ACTOR struct
000A: 4@ += 20
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
000A: 4@ += 48
0A8C: write_memory 4@ size 4 value 1@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 2@ virtual_protect 0
000A: 4@ += 4
0A8C: write_memory 4@ size 4 value 3@ virtual_protect 0
0172: 10@ = actor $PLAYER_ACTOR Z_angle
000E: 10@ -= 90
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 0.7 -1.12
0107: 6@ = create_object 2632 at 3@ 4@ 5@
0566: link_object 6@ to_interior 8
0177: set_object 6@ Z_angle_to 10@
wait 1000
end
:BUC
jump @MAIN
:CMD
0B12: 0@ = 0@ XOR 1
00D6: if
0039: 0@ == 1
004D: jump_if_false @Falso
0AF8: samp add_message_to_chat "AutoMates ON" color -1
jump @RET
:Falso
0AF8: samp add_message_to_chat "AutoMates OFF" color -1
:RET
samp.CmdRet()
here the files and the cleos im using (the command of "plpos" is from "tp_menu" i had sampfuncs so it isnt that problem