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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user