From 235407facbff37a721306ea9701dc5e249f2955d Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Mon, 27 Feb 2012 01:49:04 +0100 Subject: [PATCH] Fixed client not in game error in ZMarket. --- src/zr/weapons/zmarket.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index 376b82f..cd357a7 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -192,7 +192,7 @@ ZMarketCheckRebuy(client) } // If client hasn't spawned into the game yet, then stop. - if (!IsPlayerAlive(client)) + if (!IsClientConnected(client) || !IsClientInGame(client) || !IsPlayerAlive(client)) { return; }