Re: [hlcoders] Finding out Client's Team Index in Scoreboard Code
--- Miguel Aleman <[EMAIL PROTECTED]> wrote: > Maybe not, when I mean client, I mean the local player. > > Does this work, I believe it does. > > if(g_TeamInfo[g_PlayerExtraInfo[ m_iSortedRows[row] ].teamnumber].ownteam) // > IfLocal player is on the same team as the player we are sorting. > { >sprintf(sz, "%d", g_PlayerExtraInfo[ m_iSortedRows[row] ].numberoflives ); > > } That looks like it would work. Another way would be to get the local player's team number by GetLocalPlayer().curstate.team. ---Reedbeta __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Finding out Client's Team Index in Scoreboard Code
Maybe not, when I mean client, I mean the local player. Does this work, I believe it does. if(g_TeamInfo[g_PlayerExtraInfo[ m_iSortedRows[row] ].teamnumber].ownteam) // IfLocal player is on the same team as the player we are sorting.{ sprintf(sz, "%d", g_PlayerExtraInfo[ m_iSortedRows[row] ].numberoflives ); } - Original Message - From: "Miguel Aleman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 6:01 AM Subject: Re: [hlcoders] Finding out Client's Team Index in Scoreboard Code > Man, I can't believe I didn't see that earlier.> > Thanks though.> > - Original Message -> From: "Reedbeta" <[EMAIL PROTECTED]>> To: <[EMAIL PROTECTED]>> Sent: Tuesday, December 04, 2001 7:53 PM> Subject: Re: [hlcoders] Finding out Client's Team Index in Scoreboard Code> > > > > How can I find the team Index of a client in the VGUI_Scoreboard code?> >> > g_PlayerExtraInfo[player_num].teamnumber> >> > ---Reedbeta> >> >> > __> > Do You Yahoo!?> > Buy the perfect holiday gifts at Yahoo! Shopping.> > http://shopping.yahoo.com> > ___> > To unsubscribe, edit your list preferences, or view the list archives,> please visit:> > http://list.valvesoftware.com/mailman/listinfo/hlcoders> >> >> > ___> To unsubscribe, edit your list preferences, or view the list archives, please visit:> http://list.valvesoftware.com/mailman/listinfo/hlcoders> >
Re: [hlcoders] Finding out Client's Team Index in Scoreboard Code
Man, I can't believe I didn't see that earlier. Thanks though. - Original Message - From: "Reedbeta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 7:53 PM Subject: Re: [hlcoders] Finding out Client's Team Index in Scoreboard Code > > How can I find the team Index of a client in the VGUI_Scoreboard code? > > g_PlayerExtraInfo[player_num].teamnumber > > ---Reedbeta > > > __ > Do You Yahoo!? > Buy the perfect holiday gifts at Yahoo! Shopping. > http://shopping.yahoo.com > ___ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Finding out Client's Team Index in Scoreboard Code
> How can I find the team Index of a client in the VGUI_Scoreboard code? g_PlayerExtraInfo[player_num].teamnumber ---Reedbeta __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
[hlcoders] Finding out Client's Team Index in Scoreboard Code
How can I find the team Index of a client in the VGUI_Scoreboard code?