Gmod 10 wiremod expression 2 chip code to hide a players chat.
Chip code:
@name Chat hider
runOnChat(1) #Run the chip when a player speaks
if (chatClk(owner())) { #if owner said something
Spoke=owner():lastSaid() #Spoke = the last thing owner said
#if first letter of last thing owner said = "!" hide owner chat from
#the other players and paste [HIDDEN] infront of it.
if (owner():lastSaid():index(1) == "!") {hideChat(1),
print("[HIDDEN]"),print(Spoke)}
}
Sweet.
HonTracs 1 year ago