Player/Ban

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
 
Line 12: Line 12:
 
|type=boolean
 
|type=boolean
 
|name=kick
 
|name=kick
|desc=Whether to kick the player after banning then or not
+
|desc=Whether to kick the player after banning them or not
 
|default=false
 
|default=false
 
}}
 
}}

Latest revision as of 08:13, 5 January 2020

 Player:Ban( )

Contents

Description

Bans the player from the server for a certain amount of minutes.

Arguments

number minutes

Duration of the ban in minutes (0 is permanent)

Arguments

boolean kick=false

Whether to kick the player after banning them or not

Examples

Example

Kicks and bans the player for a day.

Entity(1):Ban( 1440, true )


Personal tools
Navigation