ABO.SR7777A Posted August 28, 2012 Posted August 28, 2012 السلالام عليكم شباب انا لو ابي اسوي سكربت كيف اكثر الناس لما اطلب شي يدوني اكواد مثل مثلا كود jetpack طلبته يجيني واحد يكتب لي givePedJetPack removePedJetPack doesPedHaveJetPack setElementAlpha setElementFrozen وش اسوي بذي الاكواد تكفون مساعده من اهل الخير
Mbtdaa Posted August 28, 2012 Posted August 28, 2012 ااذا انت تقصد ان ذي متطلبات الكود الي تبي تسويه ومنت عارف كيف تدمجهم بكود واحد فهااذي حتى انا مبتدا ومععرف كيف ,
POWR Posted August 28, 2012 Posted August 28, 2012 ااذا انت تقصد ان ذي متطلبات الكود الي تبي تسويهومنت عارف كيف تدمجهم بكود واحد فهااذي حتى انا مبتدا ومععرف كيف , بس يا سلطان لو تبي تعرفلها اقراء الامثله وطبقها وراح تظبط معاك
Mbtdaa Posted August 28, 2012 Posted August 28, 2012 (edited) اشوف الامثله وافهمها ومعرف كيف ادمجها بكود +_+ مثلا شوف زي ذا الكود addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then outputChatBox("Admin ".. getPlayerName(source) .. "Wp ", root,255,255,255,true) end end) انا طلبت اكواده وقالولي تحتاج outputChatBox onPlayerLogin is0bjectinaclgroup حاولت اني اسويه وماعرفت شي , Edited August 28, 2012 by Guest
AHMAD1234 Posted August 28, 2012 Posted August 28, 2012 اوكي قلي المود اللي انت تبى تسويه وانا راح اساعدك
Mbtdaa Posted August 28, 2012 Posted August 28, 2012 شوف لو تقول قلي المود الي تبي تسويه رح اساعدك كذا ماسفتد شي بس لو واحد يعلممنا كيف ندمج الاكواد الي نحتاجها بكود وبس
ABO.SR7777A Posted August 28, 2012 Author Posted August 28, 2012 فهمت انا هذا if not doesPedHaveJetPack ( thePlayer ) then يقلي هات اسم الزر مثلا if ( source == ButtonName ) then صح ولالا
AHMAD1234 Posted August 28, 2012 Posted August 28, 2012 فهمت انا هذا if not doesPedHaveJetPack ( thePlayer ) then يقلي هات اسم الزر مثلا if ( source == ButtonName ) then صح ولالا يب صح
ABO.SR7777A Posted August 28, 2012 Author Posted August 28, 2012 طيب الحين اببيك تشرحلي ذا -- Checks whether or not the player has a jetpack, and gives or removes it from the player function consoleJetPack ( thePlayer, commandName ) if not doesPedHaveJetPack ( thePlayer ) then -- if the player doesn't have a jetpack local status = givePedJetPack ( thePlayer ) -- give him one if not status then outputConsole ( "Failed to give jetpack.", thePlayer ) -- tell him if it failed end else local status = removePedJetPack ( thePlayer ) -- remove his jetpack if ( not status ) then outputConsole ( "Failed to remove jetpack.", thePlayer ) -- tell him if it failed end end end -- add the function above to handle the "jetpack" command addCommandHandler ( "jetpack", consoleJetPack ) وكيف سوينا ذا addEventHandler('onClientGUIClick', root, function() if ( source == ButtonName ) then triggerServerEvent('JetPack', localPlayer) end end
TAPL Posted August 28, 2012 Posted August 28, 2012 فهمت انا هذا if not doesPedHaveJetPack ( thePlayer ) then يقلي هات اسم الزر مثلا if ( source == ButtonName ) then صح ولالا يب صح
TAPL Posted August 28, 2012 Posted August 28, 2012 طيب الحين اببيك تشرحلي ذا -- Checks whether or not the player has a jetpack, and gives or removes it from the player function consoleJetPack ( thePlayer, commandName ) if not doesPedHaveJetPack ( thePlayer ) then -- if the player doesn't have a jetpack local status = givePedJetPack ( thePlayer ) -- give him one if not status then outputConsole ( "Failed to give jetpack.", thePlayer ) -- tell him if it failed end else local status = removePedJetPack ( thePlayer ) -- remove his jetpack if ( not status ) then outputConsole ( "Failed to remove jetpack.", thePlayer ) -- tell him if it failed end end end -- add the function above to handle the "jetpack" command addCommandHandler ( "jetpack", consoleJetPack ) وكيف سوينا ذا addEventHandler('onClientGUIClick', root, function() if ( source == ButtonName ) then triggerServerEvent('JetPack', localPlayer) end end الكود الأول مو متصل بالكود الثاني لانك ناسخ مثال الويكي يعطيك نفاثة /jetpack المثال هذا إذا كتبت
ABO.SR7777A Posted August 28, 2012 Author Posted August 28, 2012 انا غلط الكود الثاني ذا addEventHandler('onClientGUIClick', root, function() if ( source == ButtonName ) then triggerServerEvent('JetPack', localPlayer) end end )
TAPL Posted August 28, 2012 Posted August 28, 2012 ماني فاهمك افين لاهنت تعرف الفرق بين هذا وهذا ما يمديك تلبسهم واحد برجل اليمين و الثاني برجل اليسار هذا الفرق بين الكودين الي أنت حاطهم هههههه
ABO.SR7777A Posted August 28, 2012 Author Posted August 28, 2012 ههههههههههههههههههههههههههههههههههه هههههههههههههههههههههههههههههههه هههههههههههههههههههههههههه ههههههههههههههههههههههه ههههههههههههههههههه هههههههههههههه ههههههههههه هههههههه هههههه هههه ههه هه ه
POWR Posted August 28, 2012 Posted August 28, 2012 اشوف الامثله وافهمها ومعرف كيف ادمجها بكود +_+ مثلا شوف زي ذا الكود addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then outputChatBox("Admin ".. getPlayerName(source) .. "Wp ", root,255,255,255,true) end end) انا طلبت اكواده وقالولي تحتاج outputChatBox onPlayerLogin is0bjectinaclgroup حاولت اني اسويه واعرفت شي , سلطان مو عيب اذا حصلنا خطا انت سوي غلى فهمك ااذا ما ظبط اطرح كودك تلاقي ناس طيبين يسونه لك وعلمونك الصح بس العيب انك تلاقي خطا وتسكت علي ما تعدله
AHMAD1234 Posted August 28, 2012 Posted August 28, 2012 تم التعريب لول -- تحقق اذا ماكان اللاعب يمتلك الحقيبة النفاثة اعطيه او خذه من اللاعب function consoleJetPack ( thePlayer, commandName ) if not doesPedHaveJetPack ( thePlayer ) then -- اذا لم يكن اللاعب يمتلك حقيبة نفاثة local status = givePedJetPack ( thePlayer ) -- اعطيه واحده if not status then -- ما عرفت وشي ذي لول outputConsole ( "Failed to give jetpack.", thePlayer ) -- اخبره اذا فشلة العملية end else local status = removePedJetPack ( thePlayer ) -- خذ الحقيبة النفاثة خاصته if ( not status ) then outputConsole ( "Failed to remove jetpack.", thePlayer ) -- اخبره اذا فشلة العملية end end end -- قم باضافة خاصية الامر في اف8 addCommandHandler ( "jetpack", consoleJetPack )
AHMAD1234 Posted August 28, 2012 Posted August 28, 2012 والثانيه خطأ الصح هو function onClientClick (button, state, absoluteX, absoluteYe) if (source == ButtonName) then triggerServerEvent ("JetPack", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", ButtonName, onClientClick)
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