Results 1 to 6 of 6

Thread: Chat messages not always displayed [CoD2 1.3]

  1. #1
    Private
    Join Date
    Jul 2015
    Location
    Ukraine
    Posts
    10
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Chat messages not always displayed [CoD2 1.3]

    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:

    PHP Code:
    codecallback_playercommand(args)
    {
        if (
    args.size >= && (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?

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    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.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. The Following User Says Thank You to IzNoGoD For This Useful Post:

    Dimitrio290 (2nd April 2023)

  4. #3
    Private Paho's Avatar
    Join Date
    Feb 2014
    Location
    Russia
    Posts
    101
    Thanks
    43
    Thanked 48 Times in 37 Posts
    args[1] == "say_team"
    Need: args[0]
    Where ur logic?
    Say or say_team - is first comand ever
    Last edited by Paho; 1st April 2023 at 17:32.

  5. #4
    Private
    Join Date
    Jul 2015
    Location
    Ukraine
    Posts
    10
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by Paho View Post
    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.
    Last edited by Dimitrio290; 2nd April 2023 at 12:40.

  6. #5
    Private Paho's Avatar
    Join Date
    Feb 2014
    Location
    Russia
    Posts
    101
    Thanks
    43
    Thanked 48 Times in 37 Posts
    incorrect example

  7. #6
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by Dimitrio290 View Post
    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"
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. The Following User Says Thank You to IzNoGoD For This Useful Post:

    Dimitrio290 (8th April 2023)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •