From 45ecd40c1426224c5d313d831100e04e16d9d463 Mon Sep 17 00:00:00 2001 From: IQuant Date: Fri, 15 Nov 2024 17:39:29 +0300 Subject: [PATCH] Save slot enabler support --- quant.ew/files/system/player_sync.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/quant.ew/files/system/player_sync.lua b/quant.ew/files/system/player_sync.lua index c4755aad..12da201e 100644 --- a/quant.ew/files/system/player_sync.lua +++ b/quant.ew/files/system/player_sync.lua @@ -50,7 +50,13 @@ end function rpc.check_gamemode(gamemode) local mn = np.GetGameModeNr() local gm = np.GetGameModeName(mn) - if gamemode ~= gm then + local not_fine = gamemode ~= gm + + if gm == "save_slots_enabler" or gamemode == "save_slots_enabler" then + not_fine = not (gm == "" or gamemode == "") + return + end + if not_fine then GamePrint("Player: " .. ctx.rpc_player_data.name .. ", is on a different gamemode number then you") GamePrint("his game mode: ".. gamemode) GamePrint("your game mode: ".. gm)