Fixed compiler errors. -_-

This commit is contained in:
Greyscale 2009-07-02 01:46:41 -07:00
parent 8bf948b540
commit 07d6e1f8f1
2 changed files with 5 additions and 5 deletions

View File

@ -511,7 +511,7 @@ public Action:HitgroupsCommand(client, argc)
if (!hitgroups) if (!hitgroups)
{ {
TranslationReplyToCommand(client, "Feature is disabled"); TranslationReplyToCommand(client, "Feature is disabled");
return; return Plugin_Handled;
} }
// If not enough arguments given, then stop. // If not enough arguments given, then stop.
@ -597,7 +597,7 @@ public Action:HitgroupsEnableAllCommand(client, argc)
if (!hitgroups) if (!hitgroups)
{ {
TranslationReplyToCommand(client, "Feature is disabled"); TranslationReplyToCommand(client, "Feature is disabled");
return; return Plugin_Handled;
} }
// x = Hitgroup index. // x = Hitgroup index.
@ -631,7 +631,7 @@ public Action:HitgroupsHeadshotsOnlyCommand(client, argc)
if (!hitgroups) if (!hitgroups)
{ {
TranslationReplyToCommand(client, "Feature is disabled"); TranslationReplyToCommand(client, "Feature is disabled");
return; return Plugin_Handled;
} }
// x = Hitgroup index. // x = Hitgroup index.

View File

@ -96,12 +96,12 @@ bool:ZAdminMenu(client)
//Format(logflags, sizeof(logflags), "%t", "!zadmin main logflags"); //Format(logflags, sizeof(logflags), "%t", "!zadmin main logflags");
// Get conditions for options. // Get conditions for options.
new bool:hitgroups = GetConVarBool(g_hCvarsList[CVAR_HITGROUPS]); new bool:hitgroupsenabled = GetConVarBool(g_hCvarsList[CVAR_HITGROUPS]);
// Add items to menu. // Add items to menu.
AddMenuItem(menu_zadmin, "classmultipliers", classmultipliers); AddMenuItem(menu_zadmin, "classmultipliers", classmultipliers);
AddMenuItem(menu_zadmin, "weapons", weapons); AddMenuItem(menu_zadmin, "weapons", weapons);
AddMenuItem(menu_zadmin, "hitgroups", hitgroups, MenuGetItemDraw(hitgroups)); AddMenuItem(menu_zadmin, "hitgroups", hitgroups, MenuGetItemDraw(hitgroupsenabled));
AddMenuItem(menu_zadmin, "infect", infect); AddMenuItem(menu_zadmin, "infect", infect);
AddMenuItem(menu_zadmin, "zspawn", zspawn); AddMenuItem(menu_zadmin, "zspawn", zspawn);
AddMenuItem(menu_zadmin, "ztele", ztele); AddMenuItem(menu_zadmin, "ztele", ztele);