kickPlayer

From Bohemia Interactive Community
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Kick the player controlling the provided unit from the server.
Groups:
Argo

Syntax

Syntax:
kickPlayer [unit, kickMessage]
Parameters:
unit: Object - the player to kick
kickMessage: String - (Optional) shown as disconnect message on the kicked client
Return Value:
Boolean - true on success, false otherwise

Examples

Example 1:
kickPlayer [_teamKiller, "We don't do that here."];
Example 2:
if (not isPlayerSupporter _dude) then { kickPlayer [_dude, "Give money to BI or else!"]; };

Additional Information

See also:
getClientState

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note