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