Raised This Month: $ Target: $400
 0% 

[HELP] Problem With menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-03-2014 , 18:55   Re: [HELP] Problem With menu
Reply With Quote #1

Hey, Try
PHP Code:
#include < amxmodx >
 
new Info][ ] =
{
        
"Test Menu",
        
"1.0",
        
"Snitch"
};
 
public 
plugin_init()
{
    
register_pluginInfo], Info], Info] );
    
    
register_clcmd"say prices","PricesMenu" );
    
register_clcmd"say /prices","PricesMenu" );
    
register_clcmd"say_team /prices","PricesMenu" );
    
    
set_task(160.0,"Prices",.flags="b");
}

public 
Pricesclient )
{
        
ColorChat(client"Wanna buy cash or admin? type: /prices.")
}

public 
PricesMenuclient )
{  
    if ( !
is_user_connectedclient ) )
        return 
1;
        
    new 
iMenu[295]
    new 
keys MENU_KEY_0
    format
(iMenu295"Prices:^n\wManager: \y99 \rILS \d(per Month)^n\wSuperAdmin: \y75 \rILS \d(per Month)^n\wAdmin: \y50 \rILS \d(per Month)^n\wVIP: \y25 \rILS \d(per Month)^n----------------------------^n\w1,000,000 Cash: \y99 \rILS^n\w500,000 Cash: \y50 \rILS^n\w150,000 Cash: \y25 \rILS^n\rName Owner: \rSnitch^n^n0. \wExit"
    
show_menu(clientkeysiMenu
    
    return 
0;
}

public 
CmdPricesHandler(idkeymenu)
{
    if(
key == 0) {
         return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED
}    
 
stock ColorChat(const id, const input[], any:...)
{
        new 
count 1players[32]
        static 
msg[191]
        
vformat(msg190input3)
   
        
replace_all(msg190"!g""^4"// Green Color
        
replace_all(msg190"!y""^1"// Default Color
        
replace_all(msg190"!team""^3"// Team Color
   
        
if (idplayers[0] = id
        
else get_players(playerscount"ch")
        for (new 
0counti++)
        {
                if (
is_user_connected(players[i]))
        {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i])
                
write_string(msg)
                
message_end()
                }
        }

__________________
Eagle07 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 21:08.


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