☠ RaZeR ☠ Posted October 11, 2014 Share Posted October 11, 2014 (edited) هلا شباب # ابي كود او فنكشات @ اول ثلاثة يضغطوو على الزر وبس # يعني لو 3 ضغطوا على الزر خلاص ماينفع احد يضغط بعدهم ** وابي العالم الوهمي ؟؟ كيف Edited October 11, 2014 by Guest Link to comment
EH10 Posted October 11, 2014 Share Posted October 11, 2014 addEventHandler 'onClientGUIClick' removeEventHandler or break if ... then = number Account == false Link to comment
☠ RaZeR ☠ Posted October 11, 2014 Author Share Posted October 11, 2014 ليه ذا مااشتغل setTimer ( function Spawn() if(source == but) then guiSetVisible(wnd, false) showCursor(false) Mowater = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(Mowater) do blowVehicle ( vehicleValue ) local x,y = guiGetScreenSize() dxDrawText("blow",0,0,x,y,tocolor(0,255,255,120),3,"default-bold","center","center",false,false,false) end, 5000, 1 ) end end end addEventHandler("onClientGUIClick", root, Spawn) Link to comment
TAPL Posted October 11, 2014 Share Posted October 11, 2014 ليه حاط تايمر + التايمر خطأ ما رح يشتغل على السيارات الي مسويها من السيرفر سايد blowVehicle onClientRender يحتاج افنت dxDrawText فنكشن Link to comment
☠ RaZeR ☠ Posted October 11, 2014 Author Share Posted October 11, 2014 addEventHandler 'onClientGUIClick' removeEventHandler or break if ... then = number Account == false كذا يعني addEventHandler("onClientGUIClick", root, function Spawn() if (source == but) then = 3 Account == false triggerServerEvent('Warp', localPlayer) guiSetVisible (wnd, false) showCursor (false) removeEventHandler("onClientGUIClick", root, Spawn) end end) Link to comment
☠ RaZeR ☠ Posted October 11, 2014 Author Share Posted October 11, 2014 ليه حاط تايمر + التايمر خطأما رح يشتغل على السيارات الي مسويها من السيرفر سايد blowVehicle onClientRender يحتاج افنت dxDrawText فنكشن طيب # كيف يعني انا ابي لما اللاعب يضغط على الزر يطلع dxDrawText وينتظر شوي بعدين يفجرر @ اللي اعرفه ماينفع اثنين ايفنت مع بعضهم onClientGUIClick onClientRender يععني كذاا ؟؟ addEventHandler("onClientRender",root, addEventHandler("onClientGUIClick", root, setTimer ( function Spawn() if(source == but) then guiSetVisible(wnd, false) showCursor(false) Mowater = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(Mowater) do blowVehicle ( vehicleValue ) local x,y = guiGetScreenSize() dxDrawText("blow",0,0,x,y,tocolor(0,255,255,120),3,"default-bold","center","center",false,false,false) end, 5000, 1 ) end end end)) Link to comment
xFace[B]ook Posted October 11, 2014 Share Posted October 11, 2014 لا حول ولا قوة الا بالله تسويه زي كذا GuiClick = 0 addEventHandler('onClientGUIClick',root, function () if source == button then if GuiClick == 3 then return end GuiClick = GuiClick + 1 --- your Code end end) Link to comment
☠ RaZeR ☠ Posted October 11, 2014 Author Share Posted October 11, 2014 لا حول ولا قوة الا باللهتسويه زي كذا GuiClick = 0 addEventHandler('onClientGUIClick',root, function () if source == button then if GuiClick == 3 then return end GuiClick = GuiClick + 1 --- your Code end end) مشكوور اخوي طلب # كيف احط اكثر من احداثي هنا # يعني مثلا يسوي سياره في المطار الاول او امطار الثاني # ي createVehicle ( 487, 539.6629, 967.9279, 85.0737 )<< هناا Link to comment
☠ RaZeR ☠ Posted October 11, 2014 Author Share Posted October 11, 2014 كذا صح ولا لا Heli = createVehicle ( 487, 539.6629, 967.9279, 85.0737 ) Heli2 = createVehicle ( 487, 538.86493, 1017.73218, 84.94059 ) Heli3 = createVehicle ( 487, 537.25574, 1060.81519, 84.93714 ) warpPedIntoVehicle ( source, Heli or Heli2 or Heli3 ) Link to comment
Bssol Posted October 11, 2014 Share Posted October 11, 2014 يا صاحب الموضوع انت قصدك اللاعب نفسه حده يضغط الزر 3 مرات ولا الزر حده ينضغط 3 مرات من اكثر من لاعب يعني اللاعب الاول يضغط الزر واللاعب الثاني يضغط واللاعب الثالث يضغط بعدها الزر ما ينضغط هذا قصدك ولا كيف؟ Link to comment
☠ RaZeR ☠ Posted October 11, 2014 Author Share Posted October 11, 2014 انا قصدي الثانيه # الزر حده ينضغط 3 مرات من اكثر من لاعب *** سؤال كيف احط اكثر من احداثي Heli = createVehicle ( 487, 539.6629, 967.9279, 85.0737 ) Heli2 = createVehicle ( 487, 538.86493, 1017.73218, 84.94059 ) Heli3 = createVehicle ( 487, 537.25574, 1060.81519, 84.93714 ) warpPedIntoVehicle ( source, Heli or Heli2 or Heli3 ) Link to comment
Bssol Posted October 11, 2014 Share Posted October 11, 2014 بالنسبة لطلبك الاول Client function onButtonClick () if ( source == button ) then -- حط الزر الي تبيه محل كلمة button if ( isTimer(theTimer) ) then return end -- نشيك اذا كان في تايمر عشان ما يسوي فلود theTimer = setTimer ( function() end, 1000, 1 ) -- تايمر منع الفلود triggerServerEvent ( "triggerForClickingButton", localPlayer ) end end addEventHandler('onClientGUIClick',root, onButtonClick ) server local clicks = 0 local playerT = {} function clickFun ( ) if ( clicks ~= 3 ) then if not ( playerT[client] ) then playerT[client] = true clicks = clicks + 1 -- code end end end addEvent ( "triggerForClickingButton", true ) addEventHandler ( "triggerForClickingButton", root, clickFun ) بالنسبة للطلب الثاني، وضح اكثر Link to comment
#DRAGON!FIRE Posted October 11, 2014 Share Posted October 11, 2014 addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == element ) then if ( tonumber ( getElementData ( root, "ClickCount" ) ) == 3 ) then return end setElementData ( root, "ClickCount", getElementData ( root, "ClickCount" ) or 0 + 1 ) end end ) بالنسبة لطلبكـ الثاني سوي جدول وسوي لوب . Link to comment
EH10 Posted October 11, 2014 Share Posted October 11, 2014 # table createVehicle math.random unpack 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