player.Kick
From GMod Wiki
| Function | |
| Syntax |
player.Kick( String reason ) Where is this used? |
| Description: | |
| Kicks a player from the server | |
| Returns: | nil |
| Part of Library: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.Kick]Player.Kick [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | This example kicks all players on the server |
|---|---|
| Used on | |
| Code | for _, v in pairs(player.GetAll()) do v:Kick("I don't need to give you a reason!") end |
| Output | Kicks The Player |