alienwave Posted April 24, 2020 Posted April 24, 2020 Has anyone ever done this? I don't understand the principle very well, can I give you an example?
Groby Posted April 24, 2020 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
alienwave Posted April 25, 2020 Author 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
biostunt Posted April 27, 2020 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 2 1
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