From fe87b00c9b814f026a9bacf3b574a5684b415a83 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Wed, 24 Aug 2011 21:47:18 +0200 Subject: [PATCH] Added check for whether client is not in game in buy command hook, as a possible fix for bug 195. --- src/zr/weapons/restrict.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zr/weapons/restrict.inc b/src/zr/weapons/restrict.inc index 3e963c9..c16bb2b 100644 --- a/src/zr/weapons/restrict.inc +++ b/src/zr/weapons/restrict.inc @@ -247,7 +247,7 @@ RestrictOnRoundEnd() public Action:RestrictBuyCommand(client, argc) { // If client isn't valid, then stop. - if (!ZRIsClientValid(client)) + if (!ZRIsClientValid(client) || !IsClientInGame(client)) { return Plugin_Continue; }