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

@ -155,6 +155,12 @@ ClassOverlayInitialize(client, const String:overlay[])
*/
public Action:ClassOverlayEnableCommand(client, argc)
{
// If client isn't valid, then stop.
if (!ZRIsClientValid(client))
{
return;
}
// If overlay toggle is disabled, then stop.
new bool:overlaytoggle = GetConVarBool(g_hCvarsList[CVAR_CLASSES_OVERLAY_TOGGLE]);
if (!overlaytoggle)