If you want to combine it into one function, use the below. If you just want deaths, you can figure it out (I hope).
PHP Code:
SetScore( id , 15 , 5 );
SetScore( id , 10 , 0 );
PHP Code:
//Global
#define OFFSET_CSDEATHS 444
new g_MsgScoreInfo;
//plugin_init()
g_MsgScoreInfo = get_user_msgid( "ScoreInfo" );
public SetScore( id , iFrags , iDeaths )
{
if( !is_user_connected( id ) )
return;
set_pev( id , pev_frags , float( iFrags ) );
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( get_user_team( id ) ) ;
message_end();
}
__________________