Index  

trap_DropClient

Description

Kick a client off the server with a message.

Prototype

    void trap_DropClient(
        int clientNum,
        const char *reason
    );

Parameters

clientNum : The client to drop.
reason : The reason for the drop.

Remarks

It triggers a call to vmMain( GAME_CLIENT_DISCONNECT, ... ).
This provides a mechanism to unconditionally drop a client from a server via their clientNum ( ent->client->ps.clientNum).
The reason is displayed to the client when they are dropped.

Return value

This function has no return value.

See also

Author(s)

Timbo


QuakeIII trap calls reference