cs_teams_api.inc
Original include source with line numbers.
| 1 | #if defined _cs_teams_api_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _cs_teams_api_included |
| 5 | |
| 6 | #if AMXX_VERSION_NUM >= 175 |
| 7 | #pragma reqlib cs_teams_api |
| 8 | #if !defined AMXMODX_NOAUTOLOAD |
| 9 | #pragma loadlib cs_teams_api |
| 10 | #endif |
| 11 | #else |
| 12 | #pragma library cs_teams_api |
| 13 | #endif |
| 14 | |
| 15 | #include <cstrike> |
| 16 | |
| 17 | /** |
| 18 | * Sets a player's team. |
| 19 | * |
| 20 | * @param id Player index. |
| 21 | * @param team CS_TEAM_ constant. |
| 22 | * @param update Whether to update team on scoreboard. |
| 23 | */ |
| 24 | native cs_set_player_team(id, CsTeams:team, update = true) |
| 25 | |