The problem you're having is because the scoreboard doesn't update after set_frags...
here's an example i used for ESF:
Code:
new g_iMsgScoreInfo = get_user_msgid( "ScoreInfo" )
public AddScore(id){
new playerClass = entity_get_int(id, EV_INT_playerclass)
new team[32]
get_user_team(id,team,31)
message_begin(MSG_ALL,g_iMsgScoreInfo)
write_byte(id)
write_short(get_user_frags(id))
write_short(get_user_deaths(id))
write_short(0)
write_short(playerClass)
if( containi( team, "Good" ) != -1 ) {
write_short(1) //color of the player line
}else if( containi( team, "Evil" ) != -1 ) {
write_short(2)
}
message_end()
}
Note that this example is based on ESF, the message could be different on CT
__________________