Skip to content

Commit 27725ad

Browse files
authored
Update Functions-(Players).md
1 parent da3f6af commit 27725ad

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

docs/7.0/Functions-(Players).md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,35 @@ draw_text(x, y, _string);
7676
7777
 
7878
79+
## …player_disconnect
80+
81+
`input_player_disconnect([playerIndex])`
82+
83+
<!-- tabs:start -->
84+
85+
#### **Description**
86+
87+
**Returns:** N/A (`undefined`)
88+
89+
|Name |Datatype|Purpose |
90+
|---------------|--------|----------------------------------------------------|
91+
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used|#### **Example**
92+
93+
```gml
94+
//Disconnect second to fourth players
95+
if (menu_opened)
96+
{
97+
for(var _i = 1; _i < 4; i++)
98+
{
99+
input_player_disconnect(_i);
100+
}
101+
}
102+
```
103+
104+
<!-- tabs:end -->
105+
106+
&nbsp;
107+
79108
## …players_get_status
80109

81110
`input_players_get_status()`
@@ -625,4 +654,4 @@ if (debug_mode)
625654

626655
```
627656

628-
<!-- tabs:end -->
657+
<!-- tabs:end -->

0 commit comments

Comments
 (0)