CsTeams
I am so confused now.
new CsTeams:g_iTeam[33]; do i need to do g_iTeam[id] = cs_get_user_team(id)?? atm i did new CsTeams:g_iTeam[33]; and i start using g_iTeam without going = cs_get_user_team(id); example. if(g_iTeam[id] == CS_TEAM_CT) but it doesnt seem to work. |
Re: CsTeams
new CsTeams:g_iTeam[33]; will have all 0 (unassigned team) values.
You must use g_iTeam[ id ] = cs_get_user_team( id ) to retrieve the users team, you can then check if ( g_iTeam[ id ] == CS_TEAM_CT ) |
Re: CsTeams
Quote:
|
Re: CsTeams
Quote:
If you need to constantly have all player teams populated into the array then you can hook TeamInfo. untested PHP Code:
|
Re: CsTeams
If you are not checking it very often though, you should just abandon the array altogether and simply do:
Code:
if ( cs_get_user_team( id ) == CS_TEAM_CT ) |
Re: CsTeams
Quote:
Quote:
thank you very much |
| All times are GMT -4. The time now is 11:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.