EH10 Posted April 9, 2014 Posted April 9, 2014 السلام عليكم طلب فنكشات اذا كتبت باف8 كلمة وتجي الوظيفة واذا كتبت الكلمة مره ثانية ماتشتغل الكلمة الى بعد 6 ثواني
EH10 Posted April 9, 2014 Author Posted April 9, 2014 addCommandHandler setTimer ممكن تصححيح addCommandHandler("yfay", Stynofer = function () local x, y, z = getElementPosition( playerSource ) createMarker(..........) end ) setTimer( Stynofer, 1000, 2 )
EH10 Posted April 9, 2014 Author Posted April 9, 2014 الي مافهم طلبي يعني مثلا كتبت كلمة باف8 سياره تجيك السياره واذا كتبت مره ثانيه ماتجيك سياره ثانية الى بعد 2 ثانية يعني يمديك بعد 2 ثانية تكتب وتجيك باختصار ابي اذا كتبت كلمة ووصلتك الوظيفة ماتقدر تكتب باف8 ثاني مره وتخرج الوظيفة الى بعد 2 ثانية
ALw7sH Posted April 9, 2014 Posted April 9, 2014 function allow() i = 1 end function alw7sh() if i == 1 then i = 0 setTimer(allow, 1000, 1) end end
The Killer Posted April 9, 2014 Posted April 9, 2014 work = false addCommandHandler ("car", function (player) if work == true then return outputChatBox ("Wait 2 sec please", player, 255, 0, 0) end local x,y,z = getElementPosition (player) local vehicle = createVehicle (411, x+2,y,z+2) work = true setTimer (function () work = false end, 2000, 1) end )
فاّرس Posted April 9, 2014 Posted April 9, 2014 -- Server Side # local Timer = {} local vehicle = {} addCommandHandler('car',function(plr) if not isTimer(Timer[plr]) then if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end vehicle[plr] = createVehicle(id,x,y,z) Timer[plr] = setTimer(function() end,2000,1,plr) end end )
</Mr.Tn6eL> Posted April 9, 2014 Posted April 9, 2014 -- Server Side # local Timer = {} local vehicle = {} addCommandHandler('car',function(plr) if not isTimer(Timer[plr]) then if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end vehicle[plr] = createVehicle(id,x,y,z) Timer[plr] = setTimer(function() end,2000,1,plr) end end )
ALw7sH Posted April 9, 2014 Posted April 9, 2014 حبيبي كودي شغال -__-" والله جربتة تبي كل شي جاهز ؟ كيف تبي تتعلم تبرمج ؟ انا وريتك الطريقه وانت سو لاتعتمد ع الجاهز function allow() i = 1 end function alw7sh() if i == 1 then i = 0 setTimer(allow, 1000, 1) end end
فاّرس Posted April 9, 2014 Posted April 9, 2014 (edited) حبيبي الكود شغال ما يحتاج تجريب , انا حطيت لك ثانيتين تقدر تعدل ,وبعدين ترا الثانيتين قصيره يعني تسوي السياره الاولى على طول تقدر تسوي مره ثانيه لأن ثانيتين قصيره جدآ Edited April 9, 2014 by Guest
EH10 Posted April 9, 2014 Author Posted April 9, 2014 حبيبي كودي شغال -__-" والله جربتة تبي كل شي جاهز ؟ كيف تبي تتعلم تبرمج ؟ انا وريتك الطريقه وانت سو لاتعتمد ع الجاهز function allow() i = 1 end function alw7sh() if i == 1 then i = 0 setTimer(allow, 1000, 1) end end انا ماطلب كثير حرام وش سويت لك
فاّرس Posted April 9, 2014 Posted April 9, 2014 -- Server Side # local Timer = {} local vehicle = {} addCommandHandler('car',function(plr) if not isTimer(Timer[plr]) then if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end vehicle[plr] = createVehicle(id,x,y,z) Timer[plr] = setTimer(function() end,6000,1,plr) end end )
EH10 Posted April 9, 2014 Author Posted April 9, 2014 local Timer = {} local vehicle = {} addCommandHandler('car',function(plr) if not isTimer(Timer[plr]) then if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end vehicle[plr] = createVehicle(411,898.21223411234,1843.13597421,38921.23987321) Timer[plr] = setTimer(function() end,6000,1,plr) end end )
shwaeki Posted April 9, 2014 Posted April 9, 2014 شوق كم ارتفاع السيارة يعني على الاقل بدها دقيقتين الى 4 حتى تصل الى الارض
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