rg_set_user_team

Синтаксис

native rg_set_user_team(const index, {TeamName,_}:team, {ModelName,_}:model = MODEL_AUTO, const bool:send_teaminfo = true);

Употреба

index
Client index
team
Team id
model
Internal model, use MODEL_AUTO for a random appearance or MODEL_UNASSIGNED to not update it
send_teaminfo
If true, a TeamInfo message will be sent

Описание

Sets the client's team without killing the player and sets the client's model.

Забележка

To obtain a TeamName use the following:
new TeamName:team = get_member(id, m_iTeam);

Връщаща стойност

1 on success, 0 otherwise