CRecipientFilter:GetPlayers

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

Contents

Description

Returns a table of all valid players currently in the recipient filter.

Returns

table

A table of all valid players currently in the recipient filter.

Examples

Example

Example usage of the function

local rf = RecipientFilter()
rf:AddAllPlayers()
print( rf:GetCount() )
PrintTable( rf:GetPlayers() )

Output:

2

1 = Player [1][Player #1] 2 = Player [2][Player #2]

Personal tools
Navigation