# GM:PreventScreenClicks

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

```lua
boolean GM:PreventScreenClicks()
```

## Açıklama

Oyuncu C menüsünden ateş etmeye çalıştığında, in_attack komutunun sunucuya gönderilmesini engeller.

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

1. [boolean](https://gmod.tr/wiki/boolean): Ekran tıklamalarını engellemek için true döndürün.

### Örnek

Bir oyuncunun nişangahı yerine imlecinin olduğu yere ateş etmek için c tuşunu basılı tuttuğu World Clicker özelliğinin kullanımını devre dışı bırakır.

```lua
hook.Add( "PreventScreenClicks", "DisableWorldClicker", function()
	local pnl = vgui.GetHoveredPanel()
	if ( IsValid( pnl ) ) then
		if ( pnl:IsWorldClicker() ) then return true end

		while ( IsValid( pnl:GetParent() ) ) do
			pnl = pnl:GetParent()
			if ( pnl:IsWorldClicker() ) then return true end
		end
	else
		-- İmleç oyun penceresinin dışındayken, burada istisnai durumlar ortaya çıkabilir
		return true
	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:PreventScreenClicks
