CRecipientFilter:GetCount

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

Contents

Description

Returns the number of valid players in the recipient filter.

Returns

number

Number of valid players 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