This is only for create a menu. The base of your plugin idea.
PHP Code:
mymenu(Client)
{
new Handle:Menu = CreateMenu(MenuAnswer);
SetMenuTitle(Menu, " your text ");
AddMenuItem(Menu, String:args[] , " your option 1 ");
AddMenuItem(Menu, String:args[] , " your option 2 ");
// . . .
AddMenuItem(Menu, String:args[] , " your option n ");
SetMenuExitButton(Menu, true ); // if you want exit button
DisplayMenu(Menu, Client, Time for disappear);
}
public MenuAnswer(Handle:menu, MenuAction:action, Client, args)
{
if (action == MenuAction_End)
{
CloseHandle(menu);
}
else if (action == MenuAction_Select)
{
if(args == ...)
{
//your commands
}
}
}
__________________