PDA

View Full Version : Chat messages not always displayed [CoD2 1.3]



Dimitrio290
1st April 2023, 09:09
For many years on my server, I notice that messages from other players are not always displayed in the chat.
If I use this code for example:


codecallback_playercommand(args)
{
if (args.size >= 2 && (args[0] == "say" || args[1] == "say_team") && isDefined(args[1]))
{
level thread playSoundOnPlayers("typewriter");
}

self clientCommand();
}

then at such moments the sound is played and the message is not displayed.
I will clarify that the bug occurs without this code. Has anyone experienced this before and is there a solution?

IzNoGoD
1st April 2023, 15:39
probably g_deadchat turned off, dead players won't show their message to alive players, nor will spectating players show their messages to alive players.

Paho
1st April 2023, 16:29
args[1] == "say_team"
Need: args[0]
Where ur logic?
Say or say_team - is first comand ever

Dimitrio290
2nd April 2023, 11:31
Need: args[0]
Where ur logic?
Say or say_team - is first comand ever

I don't understand what you want to say about my logic.
I wrote in the first post that this code is for an example. The reason was g_deadchat.

Paho
2nd April 2023, 12:37
incorrect example

IzNoGoD
3rd April 2023, 18:12
I don't understand what you want to say about my logic.
I wrote in the first post that this code is for an example. The reason was g_deadchat.

You're using args[1] == "say_team" which should be args[0] == "say_team"