An example of how I do it in ESF:
Code:
public UpdateScore(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)
//This shortmessage is about the color of the player's line(on the scoreboard), good = blue, evil = red
if( containi( team, "Good" ) != -1 ) {
write_short(1)
}else if( containi( team, "Evil" ) != -1 ) {
write_short(2)
}
message_end()
}
__________________