AboShanab Posted May 20, 2013 Posted May 20, 2013 ^أحس لو كآن فيه اكثر من 30 سيارة بالسيرفر و ركبت كودك بيجي لآق +1
AboShanab Posted May 20, 2013 Posted May 20, 2013 Server Side ! addEventHandler("onVehicleDamage", getRootElement(), function () local Vehicle = getVehicleOccupant(source) if Vehicle then local vehicleHealth = getElementHealth ( Vehicle ) -- Your Code end end )
Tete omar Posted May 20, 2013 Posted May 20, 2013 Server Side ! addEventHandler("onVehicleDamage", getRootElement(), function () local Vehicle = getVehicleOccupant(source) if Vehicle then local vehicleHealth = getElementHealth ( Vehicle ) -- Your Code end end ) ما هذا؟
iPrestege Posted May 20, 2013 Posted May 20, 2013 Server Side ! addEventHandler("onVehicleDamage", getRootElement(), function () local Vehicle = getVehicleOccupant(source) if Vehicle then local vehicleHealth = getElementHealth ( Vehicle ) -- Your Code end end ) ما هذا؟ انها البرمجة بـ أم عينها تصدق اللي قهرني اكثر يعرف السيارهـ وهي السورس اصلا ..
Quited Posted May 20, 2013 Posted May 20, 2013 بسيطة يروح اي سيرفر وياخذ سيارة ويصدم فيها لين مايطلغ الدخان الاسود (اللي يقول الدخان جرافيك لايتفلسف لانه مو جرافيك من اللعبة) وبعد مايطلع الدخات الاسود يفتح اف 1 ويشوف دم السيارة vehicle health او vehicle damage
Quited Posted May 20, 2013 Posted May 20, 2013 'onClientRender' ipairs or next getElementsByType getElementHealth setVehicleEngineState SetVehicleEngineState = SetElementfrozen افضل
|Mr|-Talal07-| Posted May 20, 2013 Posted May 20, 2013 "onVehicleDamage" setElementHealth setVehicleEngineState getElementHealth health befor explosion >> 300 as max health
S4MuEL Posted May 20, 2013 Author Posted May 20, 2013 يعني إذآ بجيب دمم آلسيآرةة آخليهآ >= ولآ <= health befor explosion >> 300 as max health ؟
S4MuEL Posted May 20, 2013 Author Posted May 20, 2013 fx استخدم وظايف ال https://wiki.multitheftauto.com/wiki/Cl ... _functions آلأفف آكس حققت وش ؟ ^ ..
Booo Posted May 20, 2013 Posted May 20, 2013 (edited) وعليكم السلام ورحمة الله وبركاته استخدم هالحدثonVehicleDamage Server Side ! addEventHandler("onVehicleDamage", getRootElement(), function () local Vehicle = getVehicleOccupant(source) if Vehicle then local vehicleHealth = getElementHealth ( Vehicle ) -- Your Code end end ) سيرفر addEventHandler("onVehicleDamage", getRootElement(), function () local vehicleHealth = getElementHealth ( source ) if vehicleHealth < 278 then setVehicleEngineState ( source, false ) setVehicleDamageProof(source true) setElementHealth( source,273 ) setElementFrozen (source,true) end end Edited May 20, 2013 by Guest
Booo Posted May 20, 2013 Posted May 20, 2013 آلسورس هنآ هي آلسيآرةة صح ؟ .. إايـه source < السيآررة جرب الكود وعلمنا اذا ضبط ..
S4MuEL Posted May 20, 2013 Author Posted May 20, 2013 .. ططيب طريققتكـ تنففع ع جميع آلسيآرآت صح ؟ .. ولو سوينآ آلكود بـ ipairs يشتغل ؟ :\
Booo Posted May 20, 2013 Posted May 20, 2013 ..ططيب طريققتكـ تنففع ع جميع آلسيآرآت صح ؟ .. ولو سوينآ آلكود بـ ipairs يشتغل ؟ :\ تنفع على كل السيآرإإإت .. ولايحتاج تستخدم ipairs بالكود هذإإ
S4MuEL Posted May 20, 2013 Author Posted May 20, 2013 ططيب كيفف آعرفف آن آلكود لكل آلسيآرآت ؟؟؟ من آلـ getRootElement() آو آلحدث حقق آلسيرففر "onVehicleDamage"
кιηg-αвα∂у Posted May 20, 2013 Posted May 20, 2013 الحدث سيرفر يعني للسيرفر كله + getRootElement() -- للكل
кιηg-αвα∂у Posted May 21, 2013 Posted May 21, 2013 Booo ناقص قوس في كودك addEventHandler("onVehicleDamage", getRootElement(), function () local vehicleHealth = getElementHealth ( source ) if vehicleHealth < 278 then setVehicleEngineState ( source, false ) setVehicleDamageProof(source true) setElementHealth( source,273 ) setElementFrozen (source,true) end end)
HoLsTeN Posted May 21, 2013 Posted May 21, 2013 بالنسبة للكود الي فوق اتوقع راح يطلع بق وراح تنفجر السيارة لو طلقت على السياره مثلا بمني قن او بازوكا .. اذا واجهك البق وماعرفت تصلحه كلمني عشان اقولك الحل ..
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