m_iCompTeammateColor
Can someone please explain why.
I use the command "sm_dump_netprops" and can see the values listed that I've used below. SetEntProp(client, Prop_Send, "m_iCompTeammateColor", 2); gives: Exception reported: Property "m_iCompTeammateColor" not found Whereas I can use: SetEntProp(client, Prop_Send, "m_iCoachingTeam", 3); And it's fine. What should I be using for the "m_iCompTeammateColor" and how do I differentiate how to use the values? Many thanks. |
Re: m_iCompTeammateColor
1 Attachment(s)
Try something like this. Command is sm_setcompcolor
|
Re: m_iCompTeammateColor
Thanks Franc1sco, but I've already seen https://github.com/b3none/compcolour.../compcolour.sp that does it the same way as yours.
Unfortunately that removes colours when people join the server and they have to set them again. I'm more interested in what is wrong with: SetEntProp(client, Prop_Send, "m_iCompTeammateColor", 2); So I can understand for the future. |
Re: m_iCompTeammateColor
It looks like it is part of the Player Resource, so setting it on the client most likely wouldn't work.
From the compcolour plugin: Code:
... |
Re: m_iCompTeammateColor
Quote:
In both the examples, SetEntDataArray(entity, offset, player_colours, MAXPLAYERS + 1, _, true); doesn't need to be continuously set. Once will suffice. |
All times are GMT -4. The time now is 23:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.