Jump to content

Ahmed Abo-elezz

Members
  • Posts

    152
  • Joined

  • Last visited

Everything posted by Ahmed Abo-elezz

  1. قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
  2. i want whan the vehicle explode do this function my problem i try it and it's dont work function deleteOnExitpilot ( thePlayer ) if ( isElement ( markert [ thePlayer ] ) ) then destroyElement ( markert [ thePlayer ] ) end if ( isElement ( blipt [ thePlayer ] ) ) then destroyElement ( blipt [ thePlayer ] ) end if ( isElement ( pedt [ thePlayer ] ) ) then destroyElement ( pedt [ thePlayer ] ) end end addEventHandler ( "onVehicleExplode", getRootElement(), deleteOnExitpilot )
  3. قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
  4. if full copy from mape and modes MTA
  5. والله اراك ما تعرف تكتب الاى خوى ماشغل خوى ماشغل
  6. function collectMoney(thePlayer, shopElement) local pedName = getPedName(shopElement) local playerName = getPlayerName(thePlayer):gsub("_", " ") local sPendingWage = tonumber(getElementData(shopElement, "sPendingWage")) local sIncome = tonumber(getElementData(shopElement, "sIncome")) local profit = sIncome - sPendingWage if profit >= 0 then if sIncome > 0 then if exports.global:giveMoney(thePlayer, sIncome) then setTimer(function () exports.global:sendLocalText(thePlayer, "* "..pedName.." gives "..playerName.." a couple of dollar notes and a jar of coins.", 255, 51, 102, 30, {}, true) storeKeeperSay(thePlayer, "This is what we've got so far, boss. Keep it please.", pedName) setElementData(shopElement, "sIncome", 0, true) mysql:query_free("UPDATE `shops` SET `sIncome`='0' WHERE id='"..tostring(getElementData(shopElement, "dbid")).."' ") playCollectMoneySound(shopElement) --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, false, shopElement) return true end, 3000, 1) end end if sPendingWage > 0 then if not solvePendingWage(thePlayer, shopElement) then --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, true, shopElement) return false end end else if sPendingWage > 0 then if not solvePendingWage(thePlayer, shopElement) then --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, true, shopElement) return false end end if sIncome > 0 then if exports.global:giveMoney(thePlayer, sIncome) then setTimer(function () exports.global:sendLocalText(thePlayer, "* "..pedName.." gives "..playerName.." a couple of dollar notes and a jar of coins.", 255, 51, 102, 30, {}, true) storeKeeperSay(thePlayer, "This is what we've got so far, boss. Keep it please.", pedName) setElementData(shopElement, "sIncome", 0, true) mysql:query_free("UPDATE `shops` SET `sIncome`='0' WHERE id='"..tostring(getElementData(shopElement, "dbid")).."' ") playCollectMoneySound(shopElement) --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, false, shopElement) return true end, 3000, 1) end end end return false end addCommandHandler("collectmoney",collectMoney) addCommandHandler("collectmoney",collectMoney)
  7. قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
  8. شغال 100% لكن قوم بتغير الاحدثيات فقط
  9. انا عامله صوره لان فى شرح البرمجه نفسها هكتب بخط يدى حتى يكون الاستوعاب اكثر وبالنسبه الى الموضيع الكثيره ففى الاول هعمل كل درس فى موضوع لوحده وبعد ذلك هضهم كلهم فى موضوع واحد فقط افعل هذا حتى يتم التعرف على اسم الدرس شكرا لك لك على النصيحه اخ ابوخلف
  10. انشر الكود يالى انت عامله
  11. local marker1 = createMarker(2484.67212,-1666.4874,12.34375,"cylinder",1.5,255,255,255,255) -- مكان العلامة function outputWantedLevel (source) local wL = getPlayerWantedLevel(source) -- مقياس عدد البلاغات (النجوم) if (wL == 0) then -- شرط انها تساوى 0 outputChatBox("You Clean", source, 0, 255, 0) -- اظهر فى الشات else outputChatBox ( "You have "..wL.." wanted stars!", source, 255, 0, 0 ) -- اظهر فى الشات مع عدد النجوم setElementPosition (source, 2483.67212,-1666.4874,13.34375) -- ضع اللاعب فى هذه الاحدثيات end end addEventHandler( "onMarkerHit", marker1, outputWantedLevel ) -- عندما يضرب اللاعب العلامة يعنى عندما يدخل العلامة
  12. shutup!! Well this from your respect and about android are you can tell me if MTA Team made it.. what is the language will use to make scripts ? sure you can't use Lua
  13. function bindTheKeys () bindKey ( "key", "down", funcInput ) -- اكتب هنا اسم الزر الذى تريده بدل كلمة Key addEventHandler ("onResourceStart",getRootElement(),bindTheKeys ) وبالنسبه الى شرح outPutChatBox انصحك ان تتابع شروحاتى وكل يوم بيتم اضافة درس جديد بالتوفيق انشاء الله
  14. createMarker getPlayerWantedLevel setElementPosition
  15. outputTopChat(" You Killed Player And Get $1000", Killer)
  16. open this website http://www.learn-mta.hol.es then press start learning
  17. قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
×
×
  • Create New...