-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontagion.inc
More file actions
38 lines (34 loc) · 951 Bytes
/
contagion.inc
File metadata and controls
38 lines (34 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*************************************************\
* Contagion include *
* *
* Made by Tk /id/Teamkiller324 *
* *
\*************************************************/
#define Contagion_Include_Version "1.0.0"
enum CETeam
{
CETeam_Unassigned = 0,
CETeam_Spectators = 1,
CETeam_Survivors = 2,
CETeam_Zombies = 3
}
/**
* Gets a client's current team.
*
* @param client Client index.
* @return Current CETeam of client.
* @error Invalid client index.
*/
stock CETeam CE_GetClientTeam(int client) {
return view_as<CETeam>(GetClientTeam(client));
}
/**
* Changes a client's current team.
*
* @param client Client index.
* @param team CETeam team symbol.
* @error Invalid client index.
*/
stock void CE_ChangeClientTeam(int client, CETeam team) {
ChangeClientTeam(client, view_as<int>(team));
}