public Action:Command_Say(client, args)
{
if (!ShouldRun())
{
return Plugin_Continue;
}
new String:text[192];
GetCmdArg(1, text, sizeof(text));
if (strcmp(text, "gun") == 0 || strcmp(text,"!gun") == 0 || strcmp(text,"guns") == 0 || strcmp(text,"!guns") == 0 || strcmp(text,"gan") == 0 || strcmp(text,"gans") == 0 || strcmp(text,"!gan") == 0 || strcmp(text,"!gans") == 0 || strcmp(text,"weapons") == 0 || strcmp(text,"!weapons") == 0 || strcmp(text,"weapon") == 0 || strcmp(text,"!weapon") == 0 || strcmp(text,"gunmenu") == 0 || strcmp(text,"!gunmenu") == 0 || strcmp(text,"gunsmenu") == 0 || strcmp(text,"!gunsmenu") == 0 || strcmp(text,"buy") == 0 || strcmp(text,"!buy") == 0 || strcmp(text,"bay") == 0 || strcmp(text,"!bay") == 0)
{
if (!g_AllowGunCommand)
{
PrintToChat(client, "[CSSDM] %t", "GunsMenuDisabled");
return Plugin_Handled;
}
if (!ChooseFromSecondary() && !ChooseFromPrimary())
{
PrintToChat(client, "[CSSDM] %t", "GunsMenuNotAvailable");
return Plugin_Handled;
}
if (g_GunMenuEnabled[client])
{
PrintToChat(client, "[CSSDM] %t", "GunsMenuAlreadyEnabled");
return Plugin_Handled;
}
g_GunMenuEnabled[client] = true;
if (!g_GunMenuAvailable[client])
{
PrintToChat(client, "[CSSDM] %t", "GunsMenuReactivated");
} else {
DisplayMenu(g_hEquipMenu, client, MENU_TIME_FOREVER);
}
return Plugin_Handled;
}
return Plugin_Continue;
}