Only works with players in the same world and interior.
Required:
SAMPFuncs (Mine is version 3.2)
(credits to 'springfield', I learned how to make commands by looking at his script)
Required:
SAMPFuncs (Mine is version 3.2)
Code:
{$CLEO}
0000:
thread "REBOOT_UGBASE"
0B34: samp register_client_command ".goto" to_label @REBOOT_UGBASE_189
:REBOOT_UGBASE_175
wait 0
jump @REBOOT_UGBASE_175
:REBOOT_UGBASE_189
SAMP.IsCommandTyped(13@)
if
0AD4: 13@ = scan_string 13@ format "%d" 21@
else_jump @REBOOT_UGBASE_192
if
SAMP.IsPlayerConnected(21@)
else_jump @REBOOT_UGBASE_195
jump @REBOOT_UGBASE_198
:REBOOT_UGBASE_192
0AF8: samp add_message_to_chat "[.GOTO] /.goto <player_id>" color -1
SAMP.CmdRet()
:REBOOT_UGBASE_195
0AF8: samp add_message_to_chat "[.GOTO] Invalid player ID!" color -1
SAMP.CmdRet()
:REBOOT_UGBASE_198
0B20: samp 25@ = actor_handle_by_samp_player_id 21@
if
056D: actor 25@ defined
jf @REBOOT_UGBASE_201
jump @REBOOT_UGBASE_204
:REBOOT_UGBASE_201
0B2F: samp get_streamed_out_player_pos 21@ to 28@ 29@ 30@
Actor.PutAt($PLAYER_ACTOR, 28@, 29@, 30@)
0AF8: samp add_message_to_chat "[.GOTO] Teleported!" color -1
SAMP.CmdRet()
:REBOOT_UGBASE_204
00A0: store_actor 25@ position_to 28@ 29@ 30@
Actor.PutAt($PLAYER_ACTOR, 28@, 29@, 30@)
0AF8: samp add_message_to_chat "[.GOTO] Teleported!" color -1
SAMP.CmdRet()
(credits to 'springfield', I learned how to make commands by looking at his script)