First half and second half scores for each team ?
If so:
PHP Code:
/* round number stored in this */
new g_iRound
/* first it's "first or second half" and second it's the team */
new g_iScore[2][2]
new pCvar_mp_maxrounds
public plugin_init()
{
register_message(get_user_msgid("TeamScore"), "msg_TeamScore")
pCvar_mp_maxrounds = get_pcvar_pointer("mp_maxrounds")
}
public msg_TeamScore()
{
new iHalf
new iTeam
new szTeam[2]
get_msg_arg_string(1, szTeam, charsmax(szTeam))
if(g_iRound > (get_pcvar_num(pCvar_mp_maxrounds) / 2))
iHalf = 1
if(szTeam[0] == 'C')
iTeam = 1
set_msg_arg_int(2, ARG_SHORT, g_iScore[iHalf][iTeam])
}
This code just sets team scores to g_iScore values, you have to alter that variable and the g_iRound yourself as you need.
__________________