From 0f45999d7208f9288e6b38b6286a3f2a37e7c3dc Mon Sep 17 00:00:00 2001 From: aura Date: Sun, 26 Apr 2026 21:30:30 +0200 Subject: aa --- source/sourcemod/scripting/gokz-saveloc.sp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/sourcemod/scripting/gokz-saveloc.sp') diff --git a/source/sourcemod/scripting/gokz-saveloc.sp b/source/sourcemod/scripting/gokz-saveloc.sp index 98d64c0..3c842cd 100644 --- a/source/sourcemod/scripting/gokz-saveloc.sp +++ b/source/sourcemod/scripting/gokz-saveloc.sp @@ -100,6 +100,13 @@ enum struct Location { bool Load(int client) { + int warmup = GameRules_GetProp( "m_bWarmupPeriod" ); + if( !warmup ) { + GOKZ_PrintToChat(client, true, "%s", "Teleporting is only allowed during warmup"); + GOKZ_PlayErrorSound(client); + return false; + } + // Safeguard Check if (GOKZ_GetCoreOption(client, Option_Safeguard) > Safeguard_Disabled && GOKZ_GetTimerRunning(client) && GOKZ_GetValidTimer(client)) { @@ -627,6 +634,13 @@ void SaveLocation(int client, char[] name, int target) bool LoadLocation(int client, int id) { + int warmup = GameRules_GetProp( "m_bWarmupPeriod" ); + if( !warmup ) { + GOKZ_PrintToChat(client, true, "%s", "Teleporting is only allowed during warmup"); + GOKZ_PlayErrorSound(client); + return false; + } + if (!IsPlayerAlive(client)) { GOKZ_PrintToChat(client, true, "%t", "Must Be Alive"); -- cgit v1.2.3