# GM:PlayerSpray

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

```lua
boolean GM:PlayerSpray( Player sprayer )
```

## Açıklama

Oyuncunun `impulse 201` konsol komutunu kullanarak sprey yapıp yapamayacağını belirler.

## Argümanlar

1. [Player](https://gmod.tr/wiki/Player) **sprayer**: Oyuncu.

## Döndürülen Değer

1. [boolean](https://gmod.tr/wiki/boolean): Sprey yapılmasına izin vermek için `false`, sprey yapılmasını engellemek için `true` döndürün.

### Örnek

Sadece Yöneticilerin sprey yapabilmesini sağlar.

```lua
hook.Add( "PlayerSpray", "DisablePlayerSpray", function( ply )
	return not ply:IsAdmin()
end )
```

- [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/GM:PlayerSpray
