Garry's Mod

Garry's Mod

Murder
osmoS 31 Jul, 2018 @ 12:50pm
Murder Blocked "OnPlayerChat"
Hi,

I actually work on a addon based with the murder gamemode, so i use the hook "OnPlayerChat" to open a derma panel.

hook.Add("OnPlayerChat", "nlf-suggestion_OnPlayerChat", function(ply, txt) print("one is writing") if ply != LocalPlayer() then return end print("is player") if string.lower( txt ) == "!suggestion" then Os_Sg:OpenDerma() print("open derma") return true end end)

this script work correctly but he did not work when the player is in a round and alive, the first print is not printing

Someone can explain me why ?

Thank you