IsPlayerControllable
Whether the player’s keyboard is theirs right now.
Syntax
Section titled “Syntax”IsPlayerControllable(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean - false while held
Example
Section titled “Example”if not IsPlayerControllable(pid) then SendClientMessage(pid, COLOUR_RED, "Wait for the round to start.") endSee also
Section titled “See also”TogglePlayerControllable · the Players group of the index
