This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

New AMXX Menu System


Post New Thread Reply   
 
Thread Tools Display Modes
snyders
Junior Member
Join Date: Aug 2010
Location: Lithuania
Old 08-03-2010 , 09:31   Re: New AMXX Menu System
Reply With Quote #291

Thanks for guide.
snyders is offline
Ludacriss
BANNED
Join Date: Aug 2010
Old 08-05-2010 , 13:28   Re: New AMXX Menu System
Reply With Quote #292

How can i do so i can open my menu?

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>

#define PLUGIN    "Model Changer"
#define AUTHOR    "Ludacriss"
#define VERSION    "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd"Select Player Model","PlayerMenu");
}
public 
PlayerMenu(id)
{
    new 
menu menu_create("\r Choose your player model:""menu_handler");
    
menu_additem(menu"\rZoey""\y1"0);
    
menu_additem(menu"\rFrancis""\y2"0);
    
menu_additem(menu"\rBill""\y3"0);
    
menu_additem(menu"\rLouis""\y4"0);
    
menu_additem(menu"\rEllis""\y5"0);
    
menu_additem(menu"\rAdmin Moel""\y6"ADMIN_ADMIN);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}
public 
menu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT)
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
            
client_print(idprint_chat"You selected Zoey as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
2:
        {
            
client_print(idprint_chat"You selected Francis as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
3:
        {
            
client_print(idprint_chat"You selected Bill as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
4:
        {
            
client_print(idprint_chat"You selected Louis as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
5:
        {
            
client_print(idprint_chat"You selected Ellis as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
6:
        {
            
client_print(idprint_chat"You selected Admin Model as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
    }
    
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;

Ludacriss is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-05-2010 , 13:43   Re: New AMXX Menu System
Reply With Quote #293

Change this:
Quote:
register_clcmd( "Select Player Model","PlayerMenu");
To:
Quote:
register_clcmd( "say /openmenu","PlayerMenu");
You can change "/openmenu" command to anything you want but "say" must remain there. Then just type in chat /openmenu
t3hNox is offline
Ludacriss
BANNED
Join Date: Aug 2010
Old 08-05-2010 , 13:54   Re: New AMXX Menu System
Reply With Quote #294

Ty man!

Can you check this thread?

http://forums.alliedmods.net/showthread.php?t=134500
Ludacriss is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 08-11-2010 , 10:19   Re: New AMXX Menu System
Reply With Quote #295

Is there a way to change the color of number (red) to white ?
Fr33m@n is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 08-11-2010 , 11:46   Re: New AMXX Menu System
Reply With Quote #296

Quote:
Originally Posted by Fr33m@n View Post
Is there a way to change the color of number (red) to white ?
Code:
menu_setprop( menuindex, MPROP_NUMBER_COLOR, "\w" )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
diogonovo
Junior Member
Join Date: Aug 2010
Old 08-11-2010 , 13:33   Re: New AMXX Menu System
Reply With Quote #297

download?
diogonovo is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 08-11-2010 , 18:08   Re: New AMXX Menu System
Reply With Quote #298

thanks
Fr33m@n is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-11-2010 , 19:31   Re: New AMXX Menu System
Reply With Quote #299

Quote:
Originally Posted by diogonovo View Post
download?
Download what?
__________________
fysiks is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-15-2010 , 07:19   Re: New AMXX Menu System
Reply With Quote #300

I have a question about advanced vote menu.
Code:
    //Else if two different voteids recieved all the votes     else if( votes_select == 2 )     {         //If they recieved even votes         if( votecount[0] == votecount[1] )         {             //Give it to a random one             client_print(0, print_chat, "Vote has tied. Choosing random from tied votes." );             winner( voteid[ random(2) ] );         }                 //Else if the first recieved the most         else if( votecount[0] > votecount[1] )             //Give it to the first         winner( voteid[0] );                 //Else the second recieved the most         else         //Give it to the second         winner( voteid[1] );     }
What is votecount? It is nowhere previously mentioned in the code.
t3hNox is offline
Reply



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 04:24.


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