View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-31-2014 , 17:43   Re: get_user_team get name team not id :/
Reply With Quote #6

Quote:
Originally Posted by NikKOo31 View Post
That's totally different :p

PHP Code:
    buffer[32]
    switch(
get_user_team(id))
    {
        case 
0copy(buffer31"unasigned")
        case 
1copy(buffer31"terrorist")
        case 
2copy(buffer31"counter-terrorist")
        case 
3copy(buffer31"spectator")
    } 
You can use the buffer in your hud
While I think this is the best method to use for something like this, you should instead be using cs_get_user_team() along with the defined constants for teams (for the cases).
__________________
fysiks is offline