# Как сделать полное отключение отображение адм команд в сам адм для игркоов

**URL:** <https://forum.gm-donate.net/t/kak-sdelat-polnoe-otklyuchenie-otobrazhenie-adm-komand-v-sam-adm-dlya-igrkoov/9305>\
**Category:** Как сделать..?\
**Created:** [18.Август.2025 13:54:59 UTC](https://forum.gm-donate.net/t/kak-sdelat-polnoe-otklyuchenie-otobrazhenie-adm-komand-v-sam-adm-dlya-igrkoov/9305 "2025-08-18T13:54:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Heretic-Anthem](https://forum.gm-donate.net/user_avatar/forum.gm-donate.net/heretic-anthem/32/6323_2.png) [@Heretic-Anthem](https://forum.gm-donate.net/u/Heretic-Anthem)\
**Post date:** [18.Август.2025 14:41:46 UTC](https://forum.gm-donate.net/t/kak-sdelat-polnoe-otklyuchenie-otobrazhenie-adm-komand-v-sam-adm-dlya-igrkoov/9305/2 "2025-08-18T14:41:46Z")

</div>

в каждую команду добавляешь

```lua
local admtargets = {ply}
		local players = player.GetHumans()
		for i = 1, #players do
			local v = players[i]
			if v:HasPermission("see_admin_chat") and v ~= ply then
				table.insert(admtargets, v)
			end
		end

```

и в sam.player.send\_message таргет меняешь на admtargets

пример:

```lua
command.new("god")
	:Aliases("invincible")

	:SetPermission("god", "admin")

	:AddArg("player", {optional = true})

	:Help("god_help")

	:OnExecute(function(ply, targets)
		for i = 1, #targets do
			local target = targets[i]
			target:GodEnable()
			target.sam_has_god_mode = true
		end
		local admtargets = {ply}

		local players = player.GetHumans()
		for i = 1, #players do
			local v = players[i]
			if v:HasPermission("see_admin_chat") and v ~= ply then
				table.insert(admtargets, v)
			end
		end
		sam.player.send_message(admtargets, "god", {
			A = ply, T = targets
		})
	end)
:End()

```

можно и проще сделать, но думать лень ))))

---

_[View the full topic](https://forum.gm-donate.net/t/kak-sdelat-polnoe-otklyuchenie-otobrazhenie-adm-komand-v-sam-adm-dlya-igrkoov/9305)._
