B3none / csgo-retakes-hud

Displays the current bombsite in a HUD message. This will work with all versions of the Retakes plugin.
45 stars 9 forks source link

add for STYLE_CHAT #10

Closed pimpmyname closed 3 years ago

pimpmyname commented 5 years ago

adding this would be nice, it shows blank text for spectators ;)

    if (StrContains(style, STYLE_CHAT) != -1)
    {
        if (clientTeam == CS_TEAM_CT || (clientTeam == CS_TEAM_T))
        {
            PrintToChat(i, "%s %s", MESSAGE_PREFIX1, message);
        }   
    }
}

}

B3none commented 5 years ago

Sure, I can implement this. What text would you like the spectator to see?

pimpmyname commented 5 years ago

doesnt really matter, when you're spectating a person it wont show: Retake Bombsite: & Defend Bombsite: but only to the client. so the guy who spectates will receive MESSAGE_PREFIX1 only

B3none commented 5 years ago

I'm happy to accept a PR for this! :P

crashzk commented 3 years ago

@b3none I have this same problem, but I think it's better to put a check/verification, if the player is SPEC you don't receive any message.

Screenshot_1