جرب طريقتي ,
addEventHandler ( 'onClientWeaponFire' , root ,
function ( aHitElement )
if ( aHitElement ~= localPlayer ) then
if ( getElementType ( aHitElement ) == 'player' ) then
if ( getElementData ( localPlayer , 'aProperty' ) == 'M4' ) then
setElementHealth ( aHitElement , getElementHealth ( aHitElement ) - 2 )
end
end
end
end
)
بس حط للاعب داتا , والقيمة 'M4'