View Single Post
emvaized
Junior Member
Join Date: Aug 2021
Old 08-19-2021 , 04:00   Re: [CS:GO] Simple Menu to Display Info UPDATE[26/04/2020]
Reply With Quote #10

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
emvaized is offline