I want not to catch the scores, I want to use my own scores. If I set my scores and a player respawns he got the original scores from cs. Ofcourse I could hook the TeamScore with register_message, but I search for an offset. Anywhere must be saved the scores.
PHP Code:
public func_team_scored(iTeam, id){
new iDeaths = cs_get_user_deaths(id), iFrags = pev(id, pev_frags) + 5
set_pev(id, pev_frags, iFrags)
g_iScore[iTeam]++
message_begin(MSG_BROADCAST, gMsgScoreInfo)
write_byte(id)
write_short(iFrags)
write_short(iDeaths)
write_short(0)
write_short(iTeam)
message_end()
message_begin(MSG_BROADCAST, gMsgTeamScore)
write_string(iTeam == TEAM_T ? "TERRORIST" : "CT")
write_short(g_iScore[iTeam])
message_end()
}