Removed player list functions, recoded mother zombie picking function, removed allow_player_team cvar as models are handled by class system now, prefixed generic plugin functions with ZR, added comments in zombiereloaded.inc, added new function to check if clients are on either or both teams.

This commit is contained in:
Greyscale
2009-04-17 12:16:44 +02:00
parent 5b172aa93f
commit ecc9cf5167
16 changed files with 242 additions and 166 deletions

View File

@ -14,7 +14,7 @@
bool:ZMarketSend(client)
{
// If market is disabled, then stop.
if (!market)
if (!g_bMarket)
{
// Tell client market is disabled.
ZR_PrintToChat(client, "Feature is disabled");

View File

@ -50,7 +50,7 @@ WeaponsMenuMain(client)
AddMenuItem(menu_weapons_main, "togglewgrouprestriction", togglewgrouprestriction);
// Disable market option if market isn't installed.
if (market)
if (g_bMarket)
{
AddMenuItem(menu_weapons_main, "zmarket", zmarket);
}
@ -422,7 +422,7 @@ WeaponsMenuMarket(client)
decl String:togglebuyzone[64];
decl String:curSetting[8];
BoolToConfigSetting(GetConVarBool(gCvars[CVAR_ZMARKET_BUYZONE]), curSetting, sizeof(curSetting));
ZRBoolToConfigSetting(GetConVarBool(gCvars[CVAR_ZMARKET_BUYZONE]), curSetting, sizeof(curSetting));
Format(togglebuyzone, sizeof(togglebuyzone), "%t", "Weapons menu market toggle buyzone", curSetting);

View File

@ -107,7 +107,7 @@ RestrictDefaultRestrictions()
decl String:restrict[8];
KvGetString(kvWeapons, "restrict", restrict, sizeof(restrict), "no");
if (ConfigSettingToBool(restrict))
if (ZRConfigSettingToBool(restrict))
{
new WpnRestrictQuery:output = RestrictRestrict(weapon, display);
RestrictPrintRestrictOutput(0, output, display, true);

View File

@ -234,7 +234,7 @@ bool:WeaponsIsWeaponMenu(const String:weapon[])
KvGetString(kvWeapons, "menu", menu, sizeof(menu), "yes");
// Return weapon's setting.
return ConfigSettingToBool(menu);
return ZRConfigSettingToBool(menu);
}
} while (KvGotoNextKey(kvWeapons));
}