Quote:
Originally Posted by hleV
Code:
read_data(3, iHeadShot);
|
Typo: passing 2 params in read_data makes it expect a float byref.
I added victim\killer just in case you need to access them.
Code:
public eventDeathMsg()
{
//static iKiller; iKiller = read_data( 1 );
//static iVictim; iVictim = read_data( 2 );
static szWeap[5]; read_data( 4 , szWeap , 4 );
if ( read_data( 3 ) )
{
// Head Shot was made
}
if ( ( szWeap[ 0 ] == 'k' ) && ( szWeap[ 3 ] == 'f' ) )
{
// Knife kill was made
}
}
__________________