TActivePlayer.Kick

From Soldat Community Wiki
Revision as of 15:52, 1 July 2013 by Squiddy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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;