How can I create a script to only allow players to save in a certain location (for example: their base)?
Thxs
How can I create a script to only allow players to save in a certain location (for example: their base)?
Thxs
bump
You would have to make a script that checks if players are in a valid location, if so then call the saving function.
I'm low on time so idk what the saving function call is anymore.
Thxs for the repply spyder. I did the script and it works fine for a regular save. Is it the same as the vanila savegame code?
It is not the same
I believe this should work
// standard player save and exit ["ABORT"] call ALiVE_fnc_buttonAbort;
// server save and exit with uinamespace do {if (serverCommandAvailable '#kick') then {['SERVERSAVE'] call ALiVE_fnc_buttonAbort};};
Thxs, I'll test it today :)