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