Merge pull request #267 from 50Wliu/tf2_setclientteam
Add TF2_SetClientTeam to provide symmetry to TF2_GetClientTeam (r=psychonic).
This commit is contained in:
commit
b8223d1b98
@ -330,6 +330,19 @@ stock TFTeam:TF2_GetClientTeam(client)
|
|||||||
return TFTeam:GetClientTeam(client);
|
return TFTeam:GetClientTeam(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Changes a client's current team.
|
||||||
|
*
|
||||||
|
* @param client Client index.
|
||||||
|
* @param team TFTeam team symbol.
|
||||||
|
* @noreturn
|
||||||
|
* @error Invalid client index.
|
||||||
|
*/
|
||||||
|
stock TF2_ChangeClientTeam(client, TFTeam:team)
|
||||||
|
{
|
||||||
|
ChangeClientTeam(client, _:team);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a client's current class.
|
* Gets a client's current class.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user