# GM:CanPlayerSuicide

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

```lua
boolean GM:CanPlayerSuicide( Player player )
```

## Açıklama

Oyuncunun `kill` veya `explode` konsol komutlarını kullanarak kendisini öldürüp öldüremeyeceğini belirler.

## Argümanlar

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

## Geri Dönüş Değerleri

1. [boolean](https://gmod.tr/wiki/boolean): Eğer oyuncunun intihar etmesine izin verilecekse `true`, verilmeyecekse `false`.

### Örnek

İntihar etmeyi sadece süper adminler için erişilebilir kılar.

```lua
hook.Add( "CanPlayerSuicide", "AllowOwnerSuicide", function( ply )
	if not ply:IsSuperAdmin() then
		return false
	end
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:CanPlayerSuicide
