iPrestege Posted July 4, 2013 Share Posted July 4, 2013 -- # Client Side! setDevelopmentMode Link to comment
AL-SAYED Posted July 4, 2013 Author Share Posted July 4, 2013 مشكور شلون اخلي الكول له ارتفاع محدد Link to comment
iPrestege Posted July 4, 2013 Share Posted July 4, 2013 تقدر تعدلة من الفنكشن اللي تستخدمة تسوي بة الكول! Link to comment
K1NG Posted July 4, 2013 Share Posted July 4, 2013 خخخ onClientColShapeHit حسبتها addEventHandler( "onClientElementColShapeHit", CHT2, function( ) if getElementType( source ) == "vehicle" then local thePlayer = getVehicleOccupant( source, 0 ) if not thePlayer then return end setElementFrozen( source,true ) local weaponType = getPedWeapon( thePlayer ) local totalAmmo = getPedTotalAmmo( thePlayer ) if weaponType == 3 and totalAmmo > 0 then setElementFrozen( source, false ) end end end ) أخوي انت حاط اسم الكول بالحدث .. والمصدر بالحدث هو العنصر الي يدخل الكول، يعني بهالحالة ذي انت حددت اسم متغير العنصر الي يدخل الكول المهم يصير كودكـ كذا .. -- Client Side # addEventHandler( "onClientElementColShapeHit", root, function( theCol ) if theCol == CHT2 and getElementType( source ) == "vehicle" then local thePlayer = getVehicleOccupant( source, 0 ) if not thePlayer then return end setElementFrozen( source, true ) local weaponType = getPedWeapon( thePlayer ) local totalAmmo = getPedTotalAmmo( thePlayer ) if weaponType == 3 and totalAmmo > 0 then setElementFrozen( source, false ) end end end ) Link to comment
AL-SAYED Posted July 4, 2013 Author Share Posted July 4, 2013 مشكور على التصليح بس انا صلحتها من قبل قريت Parameters Link to comment
PaiN^ Posted July 5, 2013 Share Posted July 5, 2013 خخخ onClientColShapeHit حسبتها addEventHandler( "onClientElementColShapeHit", CHT2, function( ) if getElementType( source ) == "vehicle" then local thePlayer = getVehicleOccupant( source, 0 ) if not thePlayer then return end setElementFrozen( source,true ) local weaponType = getPedWeapon( thePlayer ) local totalAmmo = getPedTotalAmmo( thePlayer ) if weaponType == 3 and totalAmmo > 0 then setElementFrozen( source, false ) end end end ) أخوي انت حاط اسم الكول بالحدث .. والمصدر بالحدث هو العنصر الي يدخل الكول، يعني بهالحالة ذي انت حددت اسم متغير العنصر الي يدخل الكول المهم يصير كودكـ كذا .. -- Client Side # addEventHandler( "onClientElementColShapeHit", root, function( theCol ) if theCol == CHT2 and getElementType( source ) == "vehicle" then local thePlayer = getVehicleOccupant( source, 0 ) if not thePlayer then return end setElementFrozen( source, true ) local weaponType = getPedWeapon( thePlayer ) local totalAmmo = getPedTotalAmmo( thePlayer ) if weaponType == 3 and totalAmmo > 0 then setElementFrozen( source, false ) end end end ) ×.× مدري وشبه ذا الكود مضارب معاي مشكوور عالتعديل ,, Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now