Summon / Teleport System

Posted by ConnorDEV
Hey there.

I was wondering how you would go about a system in which you could teleport one player to another, similar to in Minecraft (/tp <player name>).

Thanks :)

Replies (2)

Last message on 21 Dec 2017

Size43 (Administrator) on 21 Dec 2017, 17:46:04
If you're using the default chat, you can implement the chat command by setting gms_script_set_chat_verify.

To get the position of a player, you can use gms_other_get. You can use gms_other_find_by_name to lookup the playerID by name.

For moving players that the client does not control, you can use p2p messages like Ytsim mentioned.
Ytsim on 17 Dec 2017, 18:38:59
use p2p messages