Difference between revisions of "TActivePlayer.Kick"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''function Kick: Boolean''''' Result: if it worked ==Description== Kicks a player from the server.<br> Results false if you attempt to kick an inactive ID; otherwise tru...")
(No difference)

Revision as of 14:52, 1 July 2013

function Kick: Boolean
 Result: if it worked

Description

Kicks a player from the server.
Results false if you attempt to kick an inactive ID; otherwise true.

Example

var i: byte;
begin
  for i := 1 to 32 do if Players[i].Active then
    Players[i].Kick; //kicks all active players
end;