Just sharing a hint, with these modifications selecting an entry will run the corresponding command afterwards:
Quote:
AddMenuItem(menu, "say !rs", "Reset score - !rs");
AddMenuItem(menu, "say !res", "Round end music - !res");
...
|
Quote:
public int SelectRank(Menu menu, MenuAction action, int client, int item)
{
if (action == MenuAction_End)
{
CloseHandle(menu);
return;
}
if (action != MenuAction_Select) {
return;
}
decl String:cmd[50];
if (!GetMenuItem(menu, item, cmd, 50)) return;
CloseHandle(menu);
FakeClientCommand(client, cmd);
}
|
Maybe would be useful for someone