well, it depends on when you call the setstring command
if you do
NPC Code:
if (playerchats) {
setstring welcomemessage,#c;
}
but if you have it running in a loop, then its doubtful that the player will have chat text on ever loop execution
and if it is ran in a loop execution, you could do
NPC Code:
if (timeout) {
if (!strequals(#c,)) {
setstring welcomemessage,#c;
}
}