Test my code!
PHP Code:
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_usp", "CUSP__PrimaryAttack_Pre", .Post = 0 );
PHP Code:
public CUSP__PrimaryAttack_Pre( iEntity )
{
if( pev_valid( iEntity ) != 2 )
return;
new iPlayer = get_pdata_cbase( iEntity, 41 , 4 );
client_print( iPlayer, print_chat, "Paukan vzorvis'!!" );
}