alienwave 3 Posted April 24, 2020 Share Posted April 24, 2020 Has anyone ever done this? I don't understand the principle very well, can I give you an example? Link to post Share on other sites
Groby 3 Posted April 24, 2020 Share Posted April 24, 2020 (edited) mp.events.addCommand('port', (player) => { player.position = new mp.Vector3(278.219, 940.616, 210.084); }); is not teleport ptp but a beginn you can make it with a Database and a playerlist read player from db and the cord x y z thats how i would start Edited April 24, 2020 by Groby Link to post Share on other sites
alienwave 3 Posted April 25, 2020 Author Share Posted April 25, 2020 10 часов назад, Groby сказал: mp.events.addCommand('port', (player) => { player.position = new mp.Vector3(278.219, 940.616, 210.084); }); is not teleport ptp but a beginn you can make it with a Database and a playerlist read player from db and the cord x y z thats how i would start Ok, thank you, I'll try it later Link to post Share on other sites
biostunt 1 Posted April 27, 2020 Share Posted April 27, 2020 (edited) В 25.04.2020 в 11:16, alienwave сказал: Ok, thank you, I'll try it later mp.events.addCommand('port', (player, name) => { mp.players.forEach(_player => { if(_player.name === name) player.position = _player.position; }); }); That's p2p teleport Edited April 27, 2020 by biostunt 1 Link to post Share on other sites
alienwave 3 Posted April 27, 2020 Author Share Posted April 27, 2020 thank you! Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now