# MsgC

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

```lua
MsgC( ... )
```

## Açıklama

Tıpkı [Msg](https://gmod.tr/wiki/Global.Msg) gibidir, ancak [chat.AddText](https://gmod.tr/wiki/chat.AddText) gibi renkli metinler de yazdırabilir.

## Argümanlar

1. [vararg](https://gmod.tr/wiki/vararg) **args**: Yazdırılacak değerler. Bir renk girerseniz, o renkten sonraki tüm metin o renkte yazdırılacaktır.

### Örnek

Konsola kırmızı renkte `Hello World!` yazdırır.

```lua
MsgC( Color( 255, 0, 0 ), "Hello World!" )
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/6ac5f8bf957f9df34c9d.png)

### Örnek

Üç alan (client, server ve menu) için yerleşik renkleri gösterir.

```lua
MsgC( Color( 156, 241, 255, 200 ), "Sunucu mesaj rengi\n" )
MsgC( Color( 136, 221, 255, 255 ), "Sunucu hata rengi\n" )

MsgC( Color( 255, 241, 122, 200 ), "İstemci mesaj rengi\n" )
MsgC( Color( 255, 221, 102, 255 ), "İstemci hata rengi\n" )

MsgC( Color( 100, 220, 100, 200 ), "Menü mesaj rengi\n" )
MsgC( Color( 120, 220, 100, 255 ), "Menü hata rengi\n" )
```

**Çıktı:**

![image.png](https://gmod.tr/api/uploads/wiki/5276d64c940b258f9823.png)

- [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/Global.MsgC
