lolito777 0 Posted February 15, 2020 Hi, Im making an Arma 3 roleplay server and every time i disconnect when i connect again i spawn at the worlds spawn point and i want to spawn where i was when i disconected, can anyone help me? Share this post Link to post Share on other sites
LoOni3r 6 Posted February 17, 2020 Hello and welcome. you need this: 1 HandleDisconnect -> https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#HandleDisconnect 2 getPosASL player -> https://community.bistudio.com/wiki/getPosASL 3 a database where you save the position I recommend you @INIDBI2 -> http://www.armaholic.com/page.php?id=29823 alternatively to make it easier profileNamespace -> https://community.bistudio.com/wiki/profileNamespace 4 initPlayerLocal.sqf > player setPosASL [X,Y,Z] 1 Share this post Link to post Share on other sites
lolito777 0 Posted February 25, 2020 On 2/17/2020 at 2:38 PM, LoOni3r said: Hello and welcome. you need this: 1 HandleDisconnect -> https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#HandleDisconnect 2 getPosASL player -> https://community.bistudio.com/wiki/getPosASL 3 a database where you save the position I recommend you @INIDBI2 -> http://www.armaholic.com/page.php?id=29823 alternatively to make it easier profileNamespace -> https://community.bistudio.com/wiki/profileNamespace 4 initPlayerLocal.sqf > player setPosASL [X,Y,Z] @LoOni3r Hi and thanks for the help, i managed to get the database to save the last position as you can see https://gyazo.com/7530546789f95ecdc4a8cf236f387947 but it wont let spawn at these coords when enter the server again, what should i do¿? Thank you in advance for your reply. Share this post Link to post Share on other sites
LoOni3r 6 Posted February 29, 2020 INIDBI2? _inidbi = ["new", "players\exampleplayer"] call OO_INIDBI; _playerpos = ["read", ["GENERAL", "POS"]] call _inidbi; ["delete", _inidbi] call OO_INIDBI; see https://forums.bohemia.net/forums/topic/186131-inidbi2-save-and-load-data-to-the-server-or-your-local-computer-without-databases/ Share this post Link to post Share on other sites