Raised This Month: $ Target: $400
 0% 

Remove Play From Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tm.
Member
Join Date: Apr 2010
Old 07-28-2010 , 15:45   Re: Remove Play From Menu
Reply With Quote #1

Code:
TempID = iPlayers[i]; if(id != TempID) {     get_user_name( TempID, szName, 31 );     num_to_str( TempID, szTempID, 9 );     menu_additem( menu, szName, szTempID, 0 ); }
tm. is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-28-2010 , 16:06   Re: Remove Play From Menu
Reply With Quote #2

Quote:
Originally Posted by tm. View Post
Code:
TempID = iPlayers[i]; if(id != TempID) {     get_user_name( TempID, szName, 31 );     num_to_str( TempID, szTempID, 9 );     menu_additem( menu, szName, szTempID, 0 ); }
Thank you very much. And one more question, if I wanted to make it display the players team next to their name like..

1. Shadow \rT
2. Shadow \rCT
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-28-2010 , 17:42   Re: Remove Play From Menu
Reply With Quote #3

after get_user_name()

PHP Code:
switch( cs_get_user_team(TempID) )
{
    case 
CS_TEAM_CTadd(szNamecharsmax(szName), " \rCT")
    case 
CS_TEAM_Tadd(szNamecharsmax(szName), " \rT")

__________________
fysiks 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 00:18.


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