Raised This Month: $ Target: $400
 0% 

Random Colour


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 06-23-2009 , 06:15   Re: Random Colour
Reply With Quote #7

Quote:
Originally Posted by minimiller View Post
what do u mean "in menu"?
like you can select your own colors...?
Meaning that using repeat task on menu

Example:

PHP Code:
GlowMenu(id)
{
    new 
menu menu_create("\rGlow Menu""glowmenu_handler")
    
menu_additem(menu"\wRed""1"0)
    
menu_additem(menu"\wGreen""2"0)
    
menu_additem(menu"\wBlue""3"0)
    
menu_additem(menu"\wYellow""4"0)
    
menu_additem(menu"\wLight Blue""5"0)
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)
}

public 
glowmenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu)
        if( 
is_user_connected(id))
            
AMX_Menu(id)
        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:
        {
            
fm_set_rendering(idkRenderFxGlowShell22500kRenderNormal16)
            
client_print(idprint_chat"You have chosen red colour.")
        }
        case 
2:
        {
            
fm_set_rendering(idkRenderFxGlowShell02250kRenderNormal16)
            
client_print(idprint_chat"You Have Chosen Green Colour.")
        }
        case 
3:
        {
            
fm_set_rendering(idkRenderFxGlowShell00225kRenderNormal16)
            
client_print(idprint_chat"You Have Chosen Blue Colour.")
        }
        case 
4:
        {
            
fm_set_rendering(idkRenderFxGlowShell2252250kRenderNormal16)
            
client_print(idprint_chat"You Have Chosen Yellow Colour.")
        }
        case 
5:
        {
            
fm_set_rendering(idkRenderFxGlowShell0225225kRenderNormal16)
            
client_print(idprint_chat"You Have Chosen Light Blue Colour.")
        } 
__________________
ƒa†es™ 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 15:35.


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