Raised This Month: $ Target: $400
 0% 

get_players & cs_get_user_team is inaccurate


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 10-05-2014 , 10:06   Re: get_players & cs_get_user_team is inaccurate
Reply With Quote #1

Ok, i get what you mean, but isn't this what i am already doing?

Take this for instance:

PHP Code:
            case CS_TEAM_T:
            {
                if(
is_user_alive(id)) {
                    
ColorChat(0,RED,"%s^x01: %s",nick,chat);
                }
                else if(!
is_user_alive(id)) {
                    
ColorChat(0,NORMAL,"*DEAD*^x03%s^x01: %s",nick,chat);
                }
            } 
If the player is alive, we go for the red color, because that's the T's color. If the player is dead then we go for ^x03 (!teamcolor as you said)
bLacK-bLooD 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 17:42.


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