English: sorry my english
Hello, I am a novice with sourcemod and I have a problem, what I want is to call an external plugin using Say as /skills or !skills, since the skills plugin is external and I would like to add it as a menu to this plugin through Say like I commented, This plugin is not mine I want to clarify, only I am struck by its simplicity and I would like to add extra menus of external plugins. I don't know if this is simple or complicated, I'm just trying to call that plugin by say: /
Code:
AddMenuItem(menu, "option1", "Weapons");
AddMenuItem(menu, "option2", "Melee");
AddMenuItem(menu, "option3", "Botiquin/Other");
AddMenuItem(menu, "option4", "Skills"); ----- menu external
DisplayMenu(menu, client, MENU_TIME_FOREVER);
SetMenuExitButton(menu, true);
Code:
}
if (StrEqual(item, "option4")) // I don't know the code of how to call it by say / skills or !skills when pressing 4
{
RegAdminCmd("sm_skills", ADMFLAG_GENERIC); //I don't know if this is the code to call by say but it doesn't compile me, I put it ADMFLAG_GENERIC just so that admins use skills when pressing 4, the other skills plugin I put it for admins.
}