Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Add To Favorites Button
#1
Yo I was trying to add a button on my custom menu to add the server automatically to favorite servers. Anyone knows how to make this?

PHP Code:
itemDef 
        

            
type            ITEM_TYPE_BUTTON 
            rect            
-100 130 200 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
            forecolor        1 1 1 0.8 
            text            
"Add Server to Favorites"
            
textStyle         ITEM_TEXTSTYLE_SHADOWED 
            textFont        UI_FONT_EXTRABIG
            textScale        FONTSCALE_SUBBIG
            textStyle        CHOICE_TEXTSTYLE 
            textAlign        ITEM_ALIGN_MIDDLE_CENTER 
            visible         1
            action
            
{
                
play CHOICE_ACTION_SOUND
                
//Need code that add to fav here
                
close self;
            }
    
            
mouseEnter 
            

                
play CHOICE_FOCUS_SOUND
                
setcolor forecolor 0.98 0.83 0.25 0.8
            

            
mouseExit
            
{
                
setcolor forecolor 1 1 1 0.8 
            
}

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Creating Wait Binds for a consecutive button presses? clxyeah 3 3,129 02-10-2013, 14:01
Last Post: koil
  Button Elite_Nudel 3 3,327 12-12-2011, 17:51
Last Post: JariZ
  Help opening a form via button ? TheCodKingz10 10 6,337 11-24-2011, 11:58
Last Post: Rendflex
  Choose Class button disappearing after side switch (intermission) thre3pi 2 2,308 08-05-2011, 02:13
Last Post: thre3pi
  Action upon a button press cervantes 4 3,595 07-19-2011, 15:38
Last Post: Scripts18
  Help anyway to detect sprint / breathe button being pressed in? koil 3 2,687 07-13-2011, 17:20
Last Post: koil
  saying an actionslot button on screen koil 0 1,482 07-09-2011, 10:05
Last Post: koil
  Help Press Attack Button akim14 4 3,405 07-04-2011, 10:00
Last Post: akim14
  Help Can you disable the jump button for a period of time? clxyeah 5 3,465 07-02-2011, 02:01
Last Post: koil
  [REQUEST] Calling function on button press little morgy 2 2,835 12-10-2010, 08:41
Last Post: d0h!

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.