-
Posts
152 -
Joined
-
Last visited
Everything posted by Ahmed Abo-elezz
-
اهدأ يااخى حتى تعرف ان تبرمج
-
قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
-
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 )
-
قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
-
where are u from?
-
if full copy from mape and modes MTA
-
i am in you server now
-
i start reading now
-
والله اراك ما تعرف تكتب الاى خوى ماشغل خوى ماشغل
-
this code for what?
-
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)
-
قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
-
شغال 100% لكن قوم بتغير الاحدثيات فقط
-
الدرس الثانى: شرح بدأ عمل اسكربت
Ahmed Abo-elezz replied to Ahmed Abo-elezz's topic in دروس في البرمجة
انا عامله صوره لان فى شرح البرمجه نفسها هكتب بخط يدى حتى يكون الاستوعاب اكثر وبالنسبه الى الموضيع الكثيره ففى الاول هعمل كل درس فى موضوع لوحده وبعد ذلك هضهم كلهم فى موضوع واحد فقط افعل هذا حتى يتم التعرف على اسم الدرس شكرا لك لك على النصيحه اخ ابوخلف -
انشر الكود يالى انت عامله
-
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 ) -- عندما يضرب اللاعب العلامة يعنى عندما يدخل العلامة
-
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
-
function bindTheKeys () bindKey ( "key", "down", funcInput ) -- اكتب هنا اسم الزر الذى تريده بدل كلمة Key addEventHandler ("onResourceStart",getRootElement(),bindTheKeys ) وبالنسبه الى شرح outPutChatBox انصحك ان تتابع شروحاتى وكل يوم بيتم اضافة درس جديد بالتوفيق انشاء الله
-
createMarker getPlayerWantedLevel setElementPosition
-
outputTopChat(" You Killed Player And Get $1000", Killer)
-
open this website http://www.learn-mta.hol.es then press start learning
-
قم بالدخول هنا http://www.learn-mta.hol.es ثم اضغط على ابدأ التعلم
-
Explain what you want
-
i try to make it for you now
-
^^^^