Why doesnt it print in the chat when i shoot with a USP?
it doesnt print anything
Code:
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_usp", "Ham_Attack" )
Code:
public Ham_Attack( entity )
{
new id = get_pdata_cbase( entity, 41, 4 )
ColorChat(0, GREY, "Start 1")
if( is_user_alive( id ) )
{
ColorChat(0, GREY, "Start 2")
if( !cs_get_weapon_ammo( entity) )
ColorChat(0, GREY, "Start 3")
if( GAME_LASER <= CurrentGame)
{
ColorChat(0, GREY, "Start 4")
Player_ShootLaser(id)
set_pdata_float(entity, 47, 9999.0, 4 )
}
}
return HAM_IGNORED
}
__________________