cs_set_user_vip
native cs_set_user_vip(index, vip = 1, model = 1, scoreboard = 1);
| Parameter |
Description |
| index | Client index |
| vip | If nonzero the client will be made a VIP, otherwise the
VIP status will be removed |
| model | If nonzero the client's model will be changed to the VIP
model, otherwise a random CT model will be selected |
| scoreboard | If nonzero the scoreboard will be updated to reflect the
new VIP status |
Sets the client's VIP status and displayed model and scoreboard flag.
This is mostly useful for removing VIP status so the client can change
teams and/or buy items properly. It does not alter gameplay, the player
that is selected as VIP at the start of a round will retain the
internal VIP status and remain the primary objective for the game mode.
This function has no return value.
If the client index is not within the range of 1 to
MaxClients, or the client is not connected, an error
will be thrown.