mr.Extreme Posted October 11, 2013 Share Posted October 11, 2013 اسلام عليكم انا بدي حالة اسلحة يعني لما اقتل واحد بلــ M4 يزيد حالة سلاح 2 او 3 او 4....... وشكر ا Link to comment
BadBoy Posted October 11, 2013 Share Posted October 11, 2013 اسلام عليكم انا بدي حالة اسلحة يعني لما اقتل واحد بلــ M4 يزيد حالة سلاح 2 او 3 او 4....... وشكر ا "onPlayerWasted" Aragument = killer / Example : function( killer ) getPlayerWeapon حالة اسلحة وش مافهمت وش تقصد Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 انا بقصد STATS Link to comment
AboShanab Posted October 11, 2013 Share Posted October 11, 2013 اشرح انت وين حاط الـ stat يعني حاطه بـ السكور او في لوحة او كيف Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 اشرح انت وين حاط الـ stat يعني حاطه بـ السكور او في لوحة او كيف محطوط بلــ Freeroam بس انا بدي اسوي ستاتس يعني لما اقتل واحد بسلاح ام فور يزيد الحالة سلاح انشاء الله تكون شرح واضح Link to comment
AboShanab Posted October 11, 2013 Share Posted October 11, 2013 استخدم "onPlayerWasted" Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 استخدم "onPlayerWasted" كيف بدي اسوي زيادة حالة Link to comment
rabe3 Posted October 11, 2013 Share Posted October 11, 2013 stats يزيد النقاط بل m4يقصد هوا لما يقتل واحد ب سلاح ال bounes Link to comment
AboShanab Posted October 11, 2013 Share Posted October 11, 2013 يفيدك غيري مالي خبرة بالفري روم Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 setPedStat onPlayerWasted ممكن جاهز لو سمحت ما اعرف كيف وانا بكمل باقي اسلحة وشكرا Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 حاول تسوي بنفسك مااا اعرف كيف Link to comment
TAPL Posted October 11, 2013 Share Posted October 11, 2013 لما لاعب يموت onPlayerWasted killerWeapon تستخدم البارتمر تجيب المستوى حق السلاح getPedStat و تزيد عليه واحد setPedStat Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 ما زبط معي وش الغلط function skillButton (id, cost) if (id == "0") then skillBuyPlayer (250,source,69) elseif (id == "1") then skillBuyPlayer (50000,source,70) elseif (id == "2") then skillBuyPlayer (50000,source,71) elseif (id == "3") then skillBuyPlayer (50000,source,72) elseif (id == "4") then skillBuyPlayer (50000,source,73) elseif (id == "5") then skillBuyPlayer (50000,source,74) elseif (id == "6") then skillBuyPlayer (50000,source,75) elseif (id == "7") then skillBuyPlayer (50000,source,76) elseif (id == "8") then skillBuyPlayer (50000,source,77) elseif (id == "9") then skillBuyPlayer (50000,source,78) elseif (id == "10") then skillBuyPlayer (50000,source,79) elseif (id == "11") then skillBuyPlayer (50000,source,24) elseif (id == "12") then skillBuyPlayer (50000,source,23) elseif (id == "13") then skillBuyPlayer (50000,source,21) end end function onPlayerDamage(killerWeapon) if Player then setPedStat(player, id, 3) end end addEventHandler("onPlayerWasted", getRootElement(),onPlayerDamage) Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 ما زبط حاولت كتيير ما زبط معي Link to comment
TAPL Posted October 11, 2013 Share Posted October 11, 2013 حاولت؟ الكود الي انت حاطه جايبه من مود ثاني و هنا المشكلة المودات الي مو انت مسويها بيكون صعب انك تفهمها + مالها علاقة بالشي الي انت تبيه لما لاعب يموتonPlayerWasted killerWeapon تستخدم البارتمر تجيب المستوى حق السلاح getPedStat و تزيد عليه واحد setPedStat و ارجع لردي السابق انا طرحت فنكشين و افنت ايش علاقة هذا؟ function skillButton (id, cost) if (id == "0") then skillBuyPlayer (250,source,69) elseif (id == "1") then skillBuyPlayer (50000,source,70) elseif (id == "2") then skillBuyPlayer (50000,source,71) elseif (id == "3") then skillBuyPlayer (50000,source,72) elseif (id == "4") then skillBuyPlayer (50000,source,73) elseif (id == "5") then skillBuyPlayer (50000,source,74) elseif (id == "6") then skillBuyPlayer (50000,source,75) elseif (id == "7") then skillBuyPlayer (50000,source,76) elseif (id == "8") then skillBuyPlayer (50000,source,77) elseif (id == "9") then skillBuyPlayer (50000,source,78) elseif (id == "10") then skillBuyPlayer (50000,source,79) elseif (id == "11") then skillBuyPlayer (50000,source,24) elseif (id == "12") then skillBuyPlayer (50000,source,23) elseif (id == "13") then skillBuyPlayer (50000,source,21) end end Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 تعرف انا جديد في البرمجة انا لسة مو متعلم برمجة لو سمحت ممكن جاهزة Link to comment
mr.Extreme Posted October 11, 2013 Author Share Posted October 11, 2013 مااا في ردووود 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