View Single Post
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
Old 01-13-2013 , 10:45   Re: [TF2-REQ] Tf2 menu
Reply With Quote #2

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(MenuString:args[] , " your option 1 ");
AddMenuItem(MenuString:args[] , " your option 2 ");
     
// .   .   .
AddMenuItem(MenuString:args[] , " your option n ");
 
SetMenuExitButton(Menutrue );                                 // if you want exit button
DisplayMenu(MenuClientTime for disappear);
}
 
 
 
 
public 
MenuAnswer(Handle:menuMenuAction:actionClientargs)
{
 
          if (
action == MenuAction_End)
          {
                   
CloseHandle(menu);
          }
          else if (
action == MenuAction_Select)
          {
                  if(
args == ...)
                  {
                         
//your commands
                  
}
         }       

__________________
My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

Need private plugin ? We can found an agreement !
Steam : Erreur 500

Last edited by Erreur 500; 01-13-2013 at 10:47.
Erreur 500 is offline