AL-SAYED Posted October 7, 2012 Share Posted October 7, 2012 ادري انا مللتكم بس بغيت كود اذا تضرب بهروة الشرطي يسجنك Link to comment
abu5lf Posted October 7, 2012 Share Posted October 7, 2012 https://wiki.multitheftauto.com/wiki/SpawnPlayer و https://wiki.multitheftauto.com/wiki/OnPlayerDamage و https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/GetTeamName Link to comment
AL-SAYED Posted October 7, 2012 Author Share Posted October 7, 2012 خوك ما فهمت ليه لان ما اعرف انجليزي اساسا فاتمني تعطيني الكود جاهل Link to comment
hassan.k.s.a Posted October 7, 2012 Share Posted October 7, 2012 جرب هذا function playerDamage( attacker, weapon, attackerweapon, loss ) local Team = getTeamFromName ( "Police" )--ضيف قروب الشرطه if Team then if ( attackerweapon == 0 ) then--بدل 0 بأسم العصى لشرطه spawnPlayer ( player, x, y, z )--حط ألأحداثيات الي راح ينتقل لهم الاعب مو تنسخه وتلصقه وتقول ماشتغل end end end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage) Link to comment
Tete omar Posted October 7, 2012 Share Posted October 7, 2012 جرب هذا function playerDamage( attacker, weapon, attackerweapon, loss ) local Team = getTeamFromName ( "Police" )--ضيف قروب الشرطه if Team then if ( attackerweapon == 0 ) then--بدل 0 بأسم العصى لشرطه spawnPlayer ( player, x, y, z )--حط ألأحداثيات الي راح ينتقل لهم الاعب مو تنسخه وتلصقه وتقول ماشتغل end end end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage) function playerDamage( attacker, weapon, attackerweapon, loss ) local Team = getTeamFromName ( "Police" )--ضيف قروب الشرطه if Team then if ( attackerweapon == 3 ) and ( loss >= 2 ) then--بدل 0 بأسم العصى لشرطه spawnPlayer ( player, x, y, z )--حط ألأحداثيات الي راح ينتقل لهم الاعب مو تنسخه وتلصقه وتقول ماشتغل end end end addEventHandler ( "onPlayerDamage", root, playerDamage) Link to comment
abu5lf Posted October 7, 2012 Share Posted October 7, 2012 حسن اذا بغيت تساعد الناس ساعدهم بشيء صح Link to comment
TAPL Posted October 7, 2012 Share Posted October 7, 2012 function playerDamage(attacker, weapon) local Team = getTeamFromName("Police") local aTeam = getPlayerTeam(attacker) if Team and aTeam and Team == aTeam and (weapon == 3) then setElementPosition(source, x, y, z) end end addEventHandler("onPlayerDamage", root, playerDamage) Link to comment
hassan.k.s.a Posted October 7, 2012 Share Posted October 7, 2012 حسن اذا بغيت تساعد الناس ساعدهم بشيء صح والله انا آحاول على ألأقل وبعدين اأكوادي مافيها خطأ فيها نقص فقط Link to comment
hassan.k.s.a Posted October 7, 2012 Share Posted October 7, 2012 مشكورين كلكم العفو حيآك اللهـ Link to comment
AL-SAYED Posted October 7, 2012 Author Share Posted October 7, 2012 تابل احط احداثيات لو مايحتاج؟ Link to comment
AL-SAYED Posted October 7, 2012 Author Share Posted October 7, 2012 لو تسوي فريز وتسحبه معاك.؟ Link to comment
Tete omar Posted October 7, 2012 Share Posted October 7, 2012 أدري انك تبي تقلد حرب العصابات .. بس حرب العصابات يستخدمون هالوظيفة على ما اعتقد https://wiki.multitheftauto.com/wiki/GetControlState و صعب انك تخلي لاعب يتبع لاعب آخر Link to comment
3NAD Posted October 7, 2012 Share Posted October 7, 2012 function playerDamage(attacker, weapon) local Team = getTeamFromName("Police") local aTeam = getPlayerTeam(attacker) if Team and aTeam and Team == aTeam and (weapon == 3) then setElementPosition(source, x, y, z) end end addEventHandler("onPlayerDamage", root, playerDamage) بالشرط ؟ Team ليه كررت Link to comment
abu5lf Posted October 7, 2012 Share Posted October 7, 2012 function playerDamage(attacker, weapon) local Team = getTeamFromName("Police") local aTeam = getPlayerTeam(attacker) if Team and aTeam and Team == aTeam and (weapon == 3) then setElementPosition(source, x, y, z) end end addEventHandler("onPlayerDamage", root, playerDamage) بالشرط ؟ Team ليه كررت اذا كان موجود واذا كان يساوي ذاه ذاك اتمنى وضحت Link to comment
3NAD Posted October 7, 2012 Share Posted October 7, 2012 طيب هو حطهم أثنينهم قبل علامة المسآواهـ local Team = getTeamFromName("Police") local aTeam = getPlayerTeam(attacker) if Team and aTeam and Team == ......... بدون الإختصارات أوضح if getTeamFromName("Police") and getPlayerTeam(attacker) and getTeamFromName("Police") == ... Link to comment
abu5lf Posted October 7, 2012 Share Posted October 7, 2012 if Team and aTeam ^ يتحقق اذا كان موجود and Team == aTeam ^ التحقق اذا كانت متساوية حط التحقق قبل المساواة لأنه كيف تساوي شي غير موجود اصلا Link to comment
TAPL Posted October 7, 2012 Share Posted October 7, 2012 function playerDamage(attacker, weapon) local Team = getTeamFromName("Police") local aTeam = getPlayerTeam(attacker) if Team and aTeam and Team == aTeam and (weapon == 3) then setElementPosition(source, x, y, z) end end addEventHandler("onPlayerDamage", root, playerDamage) بالشرط ؟ Team ليه كررت لان يا عزيزي إذا ما كان في تيم شرطة و ما كان اللاعب في تيم الشرطة بيكون الشرط كذا if false == false then بالتالي الشرط بيتحقق بدون ما يكون اللاعب في تيم الشرطة و بدون ما يكون تيم شرطة موجود من الأساس 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