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:
Richard Helgeby 2011-08-24 21:47:18 +02:00
parent 9ff203924b
commit fe87b00c9b

View File

@ -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;
}