# Player:Armor

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Player:Armor
- **Çeviri tarihi:** 2025-09-08

```lua
number Player:Armor()
```

## Açıklama

Oyuncunun zırhını döndürür.

## Döndürdükleri

1. [number](https://gmod.tr/wiki/number): Oyuncunun zırhı.

### Örnek

Tüm oyuncuları döngüye sokar ve zırhlarının olup olmadığını kontrol eder, eğer yoksa zırhlarını 100 olarak ayarlar.

```lua
for i, ply in ipairs( player.GetAll( ) ) do
    if ply:Armor() == 0 then
         ply:SetArmor( 100 )
    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/Player:Armor
