Raised This Month: $ Target: $400
 0% 

Menu help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 06-27-2012 , 10:26   Re: Menu help.
Reply With Quote #2

I do that for you : Do you want that ?
Code:
#include < amxmodx > #include < fun > public plugin_init( ) {     register_plugin( "test menu" , "1.0" , "Aooka" );         register_clcmd( "say m" , "CmdMenu" ); } public CmdMenu( const id ) {     new iMenu = menu_create( "TITLE OF MY MENU" , "FUNCTION" );     menu_additem( iMenu , "I want an Awp" , "1" , 0 );     menu_additem( iMenu , "I want an Ak" , "2" , 0 );     // you can add other menu_additem         menu_display( id , iMenu , 0 ); // show the menu         menu_setprop( iMenu , MPROP_EXITNAME , "Exit" ); // Close it } public FUNCTION( const id , iMenu , item ) {     if( iMenu != MENU_EXIT )     {         switch( item )         {             case 1:                 give_item( id , "weapon_awp" );             case 2:                 give_item( id , "weapon_ak47" );         }     }     else         return 1;     return 0; }
__________________
Pawn ? Useless
Aooka is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode