CRecipientFilter/AddAllPlayers

From Garry's Mod
Jump to: navigation, search
 CRecipientFilter:AddAllPlayers( )

Description

Adds all players to the recipient filter.

Examples

Example

Adds all players to a recipient filter, then uses the recipient filter in a usermessage.

function SendMessage()
	local filter = RecipientFilter()
	filter:AddAllPlayers()
	umsg.Start("message",filter)
	umsg.End()
end

Output:

Sends a usermessage to every player.
Personal tools
Navigation