# CRecipientFilter:RemoveAllPlayers

- **Ortam:** Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/CRecipientFilter:RemoveAllPlayers
- **Çeviri tarihi:** 2025-09-08

```lua
CRecipientFilter:RemoveAllPlayers()
```

## Açıklama

Tüm oyuncuları alıcı filtresinden kaldırır.

### Örnek

Haritanın başlangıç noktasını görebilen tüm oyuncuları ekler, ardından tüm oyuncuları kaldırır, sonra ilk oyuncu nesnesini alıcı filtresine ekler ve onlara bir mesaj gönderir.

```lua
function SendMessage()
 local filter = RecipientFilter()
 filter:AddPVS(Vector(0,0,0))
 filter:RemoveAllPlayers()
 filter:AddPlayer(Entity(1))
 umsg.Start("message",filter)
 umsg.End()
end
```

**Çıktı:** Eğer mevcutsa, ilk oyuncu nesnesine bir kullanıcı mesajı (usermessage) gönderir.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/CRecipientFilter:RemoveAllPlayers
