Garry's Mod Wiki

Garry's Mod Wiki

  CRecipientFilter:RemovePlayer( Player Player )

Description

Removes the player from the recipient filter.

Arguments

1 Player Player
The player that should be in the recipient filter if you call this function.

Example

Adds all players to the recipient filter, then removes the first player and sends a message to the rest.

util.AddNetworkString("message") function SendMessage() local filter = RecipientFilter() filter:AddAllPlayers() filter:RemovePlayer(Entity(1)) net.Start("message") net.Send(filter) end
Output: Sends a net message to every player except the first.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...