ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 اها طيب ابي كود المخفي باطبقه بتفسي Link to comment
AHMAD1234 Posted August 28, 2012 Share Posted August 28, 2012 addEvent ("Alpha", true) addEventHandler ("Alpha", getRootElement(), function() setElementAlpha(source, 0) end ) Link to comment
Mbtdaa Posted August 28, 2012 Share Posted August 28, 2012 انت مافهمتني لسا انا اقصد لو جبت المتطلبات عشان اظبط كودي كيف ادمجه مع بعض Link to comment
AHMAD1234 Posted August 28, 2012 Share Posted August 28, 2012 انت مافهمتني لساانا اقصد لو جبت المتطلبات عشان اظبط كودي كيف ادمجه مع بعض تحتلف الطريقة اخوي من كود لثاني الطريقه يبالها ويكي لحالها ض1 Link to comment
Tete omar Posted August 28, 2012 Share Posted August 28, 2012 أخي ABO.SR7777A يا ليت لا تحط مليون مشاركة متتابعة + ترجمنا لك الويكي https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 وش تبي أكثر من هذا ؟ يعني كل شي الحين في يدك اذا ما تبي تقرا .. هذي مشكلتك مو مشكلتنا بعد يا ليت تقرا كل شي وتددق . Link to comment
|Mr|-Talal07-| Posted August 28, 2012 Share Posted August 28, 2012 هنا تلاقي حل للنفاثة viewtopic.php?f=119&t=47224 Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 الويكي نصه معرب Link to comment
AHMAD1234 Posted August 28, 2012 Share Posted August 28, 2012 الويكي نصه معرب يب اخوي صح انه المعرب قليله بس ان شاء الله يفيدك Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 انا حاولت اسوي كود المخفي صح ولالا وجربوه لو صح function invisible() if getPlayerMoney(source) >= 1500 then if getElementAlpha( thePlayer ) == 0 then setElementAlpha ( thePlayer, 0 ) setElementAlpha ( thePlayer, 255 ) end end addCommandHandler ( "invis", toggleInvis Link to comment
abu5lf Posted August 28, 2012 Share Posted August 28, 2012 (edited) انا حاولت اسوي كود المخفي صح ولالاوجربوه لو صح setElementAlpha ( thePlayer, 0 ) setElementAlpha ( thePlayer, 255 ) تخفيه وتظهره في نفس الوقت وترى المثال واضح في الويكي مايحتاج تغير فيه https://wiki.multitheftauto.com/wiki/SetElementAlpha function toggleInvis ( thePlayer ) -- thePlayer is whoever executed the command if getElementAlpha( thePlayer ) == 0 then -- if the player is NOT invisible setElementAlpha ( thePlayer, 0 ) -- set the players alpha to 0 (make them invisible) else -- else, if the source player IS visible setElementAlpha ( thePlayer, 255 ) -- set the players alpha to 255 (make them 100% visible) end end addCommandHandler ( "invis", toggleInvis ) Edited August 28, 2012 by Guest Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 function invisible() if getPlayerMoney(source) >= 1500 then if getElementAlpha( thePlayer ) == 0 then setElementAlpha ( thePlayer, 0 ) end end addCommandHandler ( "invis", toggleInvis Link to comment
abu5lf Posted August 28, 2012 Share Posted August 28, 2012 (edited) function invisible() if getPlayerMoney(source) >= 1500 then if getElementAlpha( thePlayer ) == 0 then setElementAlpha ( thePlayer, 0 ) end end addCommandHandler ( "invis", toggleInvis تبي تشوف اذا كانت فلوس اكبر من 1500 ليه منت حاط سحب فلوس ولا شيء ولازم تربط الاعب مع الوظيفة ناقص قوس في الاخير Edited August 28, 2012 by Guest Link to comment
3NAD Posted August 28, 2012 Share Posted August 28, 2012 ججرب ذا function invisible(thePlayer, commandName) if getPlayerMoney(thePlayer) >= 1500 then if getElementAlpha( thePlayer ) >= 250 then takePlayerMoney(thePlayer,1500) setElementAlpha ( thePlayer, 0 ) end end end addCommandHandler ( "invis", invisible) Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 سويت الكود صح ولالا function invisible() if getPlayerMoney(thePlayer) >= 1500 then if getElementAlpha( thePlayer ) >= 250 then takePlayerMoney(thePlayer,1500) setElementAlpha ( thePlayer, 0 ) end end end addCommandHandler ( "invis", invisible) Link to comment
abu5lf Posted August 28, 2012 Share Posted August 28, 2012 سويت الكود صح ولالا function invisible() if getPlayerMoney(thePlayer) >= 1500 then if getElementAlpha( thePlayer ) >= 250 then takePlayerMoney(thePlayer,1500) setElementAlpha ( thePlayer, 0 ) end end end addCommandHandler ( "invis", invisible) اربط الاعب بالوظيفة function invisible(player) if getPlayerMoney(player) >= 1500 then if getElementAlpha( player ) == 255 then takePlayerMoney(player,1500) setElementAlpha ( player, 0 ) end end end addCommandHandler ( "invis", invisible ) Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 كذا function invisible (Player) if getPlayerMoney(Player) >= 1500 then if getElementAlpha( Player ) >= 250 then takePlayerMoney(Player,1500) setElementAlpha ( Player, 0 ) end end end addCommandHandler ( "invis", invisible) Link to comment
TAPL Posted August 28, 2012 Share Posted August 28, 2012 هههههههههههههه ياخي تستهبل؟ يعطونك الكود جاهز تروح تغير فيه و تقول كذا؟ ههههههههههههههههههههه Link to comment
3NAD Posted August 28, 2012 Share Posted August 28, 2012 ججرب ذا function invisible(thePlayer, commandName) if getPlayerMoney(thePlayer) >= 1500 then if getElementAlpha( thePlayer ) >= 250 then takePlayerMoney(thePlayer,1500) setElementAlpha ( thePlayer, 0 ) end end end addCommandHandler ( "invis", invisible) كذا function invisible (Player) if getPlayerMoney(Player) >= 1500 then if getElementAlpha( Player ) >= 250 then takePlayerMoney(Player,1500) setElementAlpha ( Player, 0 ) end end end addCommandHandler ( "invis", invisible) WTF !! Link to comment
./BlackBird# Posted August 28, 2012 Share Posted August 28, 2012 (edited) كود عناد شغال Edited August 28, 2012 by Guest Link to comment
AHMAD1234 Posted August 28, 2012 Share Posted August 28, 2012 كذا if getPlayerMoney(Player) >= 1500 then اخوي ما يحتاج ذا السطر صراحه ذا حق الفلوس Link to comment
AHMAD1234 Posted August 28, 2012 Share Posted August 28, 2012 ههههههههههههههياخي تستهبل؟ يعطونك الكود جاهز تروح تغير فيه و تقول كذا؟ ههههههههههههههههههههه تابل اشبك ما تشوف انه توه جالس يحاول في الكود Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 ههههههههههههههههههههههههههههههههه تابل باسوي كود وقلي صح ولالا Link to comment
abu5lf Posted August 28, 2012 Share Posted August 28, 2012 كذا function invisible (Player) if getPlayerMoney(Player) >= 1500 then if getElementAlpha( Player ) >= 250 then takePlayerMoney(Player,1500) setElementAlpha ( Player, 0 ) end end end addCommandHandler ( "invis", invisible) end انا معطيك الكود ماعد به شيء صالح تغير فيه ؟ ليه على الاقل جرب الكود قبل تسأل Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 ياخي عارف بس باجرب كودي صح ولالا Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 سويت كود الكاميرا عليك صح ولالا g_Players = getElementsByType("player") for i,aPlayer in ipairs(g_Players) if aPlayer == getLocalPlayer() then g_CurrentSpectated = i break end end function spectatePrevious(player) if g_CurrentSpectated == 1 then g_CurrentSpectated = #g_Players else g_CurrentSpectated = g_CurrentSpectated - 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end function spectateNext() if g_CurrentSpectated == #g_Players then g_CurrentSpectated = 1 else g_CurrentSpectated = g_CurrentSpectated + 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end bindKey("arrow_l", "down", spectatePrevious) bindKey("arrow_r", "down", spectateNext) 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