HolyLib Wiki

gameserver.CreateNewClient

 CGameClient gameserver.CreateNewClient( )

Description

Creates and returns a brand new CGameClient appended to the end of the server's client list (at slot gameserver.GetClientCount).
Unlike gameserver.CreateFakeClient this does not connect the client or configure it as a bot, it merely allocates the client object.

Returns

1CGameClient client

The newly created client, or nil if the server isn't active