Added check for whether client is not in game in buy command hook, as a possible fix for bug 195.
This commit is contained in:
1 parent
9ff203924b
commit
fe87b00c9b
1 file changed
+1
-1
@@ -247,7 +247,7 @@ RestrictOnRoundEnd()
|
|||||||
public Action:RestrictBuyCommand(client, argc)
|
public Action:RestrictBuyCommand(client, argc)
|
||||||
{
|
{
|
||||||
// If client isn't valid, then stop.
|
// If client isn't valid, then stop.
|
||||||
if (!ZRIsClientValid(client))
|
if (!ZRIsClientValid(client) || !IsClientInGame(client))
|
||||||
{
|
{
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user