Alive player save (server)

  1. 8 years ago

    How can I create a script to only allow players to save in a certain location (for example: their base)?

    Thxs

  2. bump

  3. Edited 8 years ago by SpyderBlack723

    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.

  4. 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?

  5. It is not the same

  6. Edited 8 years ago by SpyderBlack723

    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};};
  7. Thxs, I'll test it today :)

 

or Sign Up to reply!