HolyLib Wiki

gameserver.GetFreeQueueClient

 CGameClient gameserver.GetFreeQueueClient( string ip, boolean useDNS )

Description

Directly looks up (or creates) a free client from HolyLib's internal queue client list for the given address.
This is the same fallback that gameserver.GetFreeClient (and the engine's own free client search) uses when the server has no regular free client slot left.
Queue clients are kept out of the server's normal client list (see CBaseClient:AddToQueueList) until moved back in.

Arguments

1string ip

The address to look up / assign the free queue client for. Format ip:port

2boolean useDNS

If true it will try to resolve the IP

Returns

1CGameClient client

The found/created free queue client, or nil if none could be created (e.g. holylib_gameserver_maxplayers was reached)