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:
parent
9ff203924b
commit
fe87b00c9b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user