Quote:
Originally Posted by NikKOo31
That's totally different :p
PHP Code:
buffer[32]
switch(get_user_team(id))
{
case 0: copy(buffer, 31, "unasigned")
case 1: copy(buffer, 31, "terrorist")
case 2: copy(buffer, 31, "counter-terrorist")
case 3: copy(buffer, 31, "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).
__________________