Raised This Month: $ Target: $400
 0% 

Glow menu wrong?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 08-16-2013 , 08:24   Glow menu wrong?
Reply With Quote #1

I made a Little glow menu but when dont glow when i select someone
and the in the chat they print the server name and not the name i selected
Code:
Name[33]
Code:
public GlowMenu( id )
{
 if( get_user_flags( id ) & ADMIN_KICK)
 {
  new gmenu = menu_create( "^04[Execute-Gaming]^01 \y- Glow Menu", "sub_menu" );
  
  new players[ 32 ], pnum,
  tempid, szName[ 32 ], szTempid[ 10 ];
  get_players( players, pnum, "a" );
  
  for( new i; i < pnum; i++ )  
  {
   tempid = players[ i ];
   
   if( cs_get_user_team( tempid ) != CS_TEAM_T )
    continue;
   
   get_user_name( tempid, szName, 31 );
   num_to_str( tempid, szTempid, 9 );
   menu_additem( gmenu, szName, szTempid, 0 );
  }
  menu_display( id, gmenu );
 }
}
public sub_menu( id, gmenu, item )
{
 if( item == MENU_EXIT)
  return;
 
 new data[ 6 ], iName[ 33 ];
 new _access, callback;
 
 menu_item_getinfo( gmenu, item, _access, data,5, iName, 32, callback );
 
 Name[id] = str_to_num(data);
 SubColorsMenu( id )
}
public SubColorsMenu( id )
{
  new Glow_Menu = menu_create( "^04[Execute-Gaming]^01 \y- Glow Menu", "ColorsMenuSub" );
  
  menu_additem( Glow_Menu, "Red Color", "1", 0 );
  menu_additem( Glow_Menu, "Blue Color", "2", 0 );
  menu_additem( Glow_Menu, "White Color", "3", 0 );
  menu_additem( Glow_Menu, "Green Color", "4", 0 );
  
  menu_setprop( Glow_Menu, MPROP_EXIT, MEXIT_ALL );
  menu_display( id, Glow_Menu, 0 );
}
public ColorsMenuSub( id, Glow_Menu, item )
{
 if ( item == MENU_EXIT)
 {
  menu_destroy( Glow_Menu );
  return PLUGIN_HANDLED;
 }
 
 new Data[ 7 ], Name[ 33 ];
 new Access, Callback;
 menu_item_getinfo( Glow_Menu, item, Access, Data,5, Name, 32, Callback );
 
 new iKey = str_to_num( Data );
 
 switch( iKey )
 {
  case 1:
  {
   new name2[ 32 ]
   get_user_name(Name[id],name2,31)
   ColorChat ( 0, GREY, "%s^4 %s^1 i now glowing^4 Red", g_szPrefix, name2) 
   fm_set_user_rendering( Name[id], kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 255 );
  }
  
  case 2:
  {
   fm_set_user_rendering( Name[id], kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 255 );
   new name2[ 32 ]
   get_user_name(Name[id],name2,31)
   ColorChat ( 0, GREY, "%s^4 %s^1 i now glowing^4 Blue", g_szPrefix, name2) 
  }
  
  case 3:
  {
   fm_set_user_rendering( id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 255 );
   new name2[ 32 ]
   get_user_name(id,name2,31)
   ColorChat ( 0, GREY, "%s^4 %s^1 i now glowing^4 White", g_szPrefix, name2) 
  }
  
  case 4:
  {
   fm_set_user_rendering( Name[id], kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 255 );
   new name2[ 32 ]
   get_user_name(Name[id],name2,31)
   ColorChat ( 0, GREY, "%s^4 %s^1 i now glowing^4 Green", g_szPrefix, name2) 
  }
 }
 menu_destroy( Glow_Menu );
 return PLUGIN_HANDLED;
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
 


Thread Tools
Display Modes

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:47.


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