If you prefer fakemeta, include fakemeta_util this can be used to do both scores.
PHP Code:
#define OFFSET_CSDEATHS 444
g_MsgScoreInfo = get_user_msgid("ScoreInfo");
public SetScore(id , iFrags , iDeaths , iTeam )
{
if( !is_user_connected(id) )
return;
if( iFrags )
fm_set_user_frags( id , iFrags);
if( iDeaths )
set_pdata_int(id, OFFSET_CSDEATHS , iDeaths);
message_begin(MSG_ALL , g_MsgScoreInfo );
write_byte(id);
write_short(iFrags);
write_short(iDeaths);
write_short(0);
write_short(iTeam);
message_end();
}
__________________