When client connects
In Counter-Strike, when a player is still loading the server (they say that when you reach the 3rd cube when connecting public client_connect() is being executed, if written in a plugin on a server), you can see the player in grey when pressing TAB. now, for that, I have 2 questions:
1. When player logs in and ppl see him in grey when hitting TAB, is his cs_get_user_team equals to CS_TEAM_SPECTATOR? or does he just have no team? 2. When you use get_players(), will it get that player in grey aswell as the other connected players? |
Re: When client connects
i believe its CS_TEAM_UNASIGNED or w/e... its the 0 value i think...
Debug get_players.. run it and for loop it and print the users names of the ids... or the ids if you think you know them. |
Re: When client connects
alright, tyvm :D
i'll test the get_players later, if someone can save me time and give me the answer i'd be glad. |
Re: When client connects
get_players() will return players as long as they are connected, regardless if they've yet selected a team. You can pass flags to only return players based on certain condition(s) that you specify, including whether or not they are on a particular team. See the function description. Just be careful when using multiple flags because it has been reported that certain combinations of flags will cause the function to not work as intended.
|
| All times are GMT -4. The time now is 03:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.