Take example:
PHP Code:
new g_iPlayerKills[ MAX_PLAYERS + 1 ]
register_event( "DeathMsg", "OnPlayerKilled", "a" )
public OnPlayerKilled( )
{
new iAttacker = read_data( 1 ), iVictim = read_data( 2 )
if( is_user_connected( iAttacker ) && iAttacker != iVictim )
{
g_iPlayerKills[ iAttacker ]++;
client_print_color( iAttacker, print_team_default, "Your Kills: %i", g_iPlayerKills[ iAttacker ] )
}
}
__________________