# SANDBOX:PlayerSpawnSENT

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

```lua
boolean SANDBOX:PlayerSpawnSENT( Player ply, string class )
```

## Açıklama

Bir oyuncu Q menüsünden bir Varlık (Entity) oluşturmaya çalıştığında çağrılır.

## Argümanlar

1. [Player](https://gmod.tr/wiki/Player) **ply**: Varlığı oluşturmaya çalışan oyuncu.
2. [string](https://gmod.tr/wiki/string) **class**: Oyuncunun oluşturmaya çalıştığı varlığın sınıf adı.

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

1. [boolean](https://gmod.tr/wiki/boolean): Oyuncunun varlığı oluşturup oluşturamayacağını belirtir.

### Örnek

Yönetici (admin) olmayan oyuncuların varlık oluşturmasını engeller.

```lua
function GM:PlayerSpawnSENT( ply, class )
	if not ply:IsAdmin() 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/SANDBOX:PlayerSpawnSENT
