Imported fix from dev: 646:25e5741ab71e - Moved the IsClientInBuyzone stock to the weapons module from ZMarket, and stop the "Zombies can't use weapons" phrase when using autobuy outside of a buyzone.

This commit is contained in:
Richard Helgeby
2010-02-14 17:03:19 +01:00
parent 05895df252
commit b39a684fd8
4 changed files with 34 additions and 29 deletions

View File

@ -246,8 +246,14 @@ RestrictOnRoundEnd()
*/
public Action:RestrictBuyCommand(client, argc)
{
// If client isn't in-game, then stop.
if (!IsClientInGame(client))
// If client isn't valid, then stop.
if (!ZRIsClientValid(client))
{
return Plugin_Continue;
}
// If the client isn't in a buyzone, then stop.
if (!WeaponsIsClientInBuyZone(client))
{
return Plugin_Continue;
}