summaryrefslogtreecommitdiff
path: root/source/sourcemod/scripting/gokz-saveloc.sp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-04-26 21:30:30 +0200
committeraura <nw@moneybot.cc>2026-04-26 21:30:30 +0200
commit0f45999d7208f9288e6b38b6286a3f2a37e7c3dc (patch)
tree187558fda3de8ef05910c2fc8e2219247ad87acc /source/sourcemod/scripting/gokz-saveloc.sp
parent216c729c8762f4d0388d8750905a91fe1de64ccf (diff)
Diffstat (limited to 'source/sourcemod/scripting/gokz-saveloc.sp')
-rw-r--r--source/sourcemod/scripting/gokz-saveloc.sp14
1 files changed, 14 insertions, 0 deletions
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");