Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. iMr.3a[Z]eF

    help again

    addEvent("test2", true) addEventHandler("test2",getRootElement(), function () triggerClientrEvent ( 'test' ) end ) Mr.Pres[T]ege has solved the problem, try his code
  2. iMr.3a[Z]eF

    help again

    @ Mr.Pres[T]ege: may i ask?| why you put false in playSound while in wiki didn't write that? and is this code fine? sound = playSound ( "1.mp3" )
  3. iMr.3a[Z]eF

    help again

    ?????? you did not do what I told you and trigger is mistake in writing
  4. iMr.3a[Z]eF

    help again

    server addEvent("test2", true) addEventHandler("test2",getRootElement(), function () triggerClientrEvent ( 'test' ) end end ?????? you did not do what I told you and trigger is mistake in writing
  5. iMr.3a[Z]eF

    help again

    end or ")" The same thing who told you the end & ")" is same thing? end is for: function if for
  6. iMr.3a[Z]eF

    help again

    lol the event dont need end just close the Parentheses look at my last reply now EDIT: Now, one step remain = trigger back to client
  7. iMr.3a[Z]eF

    help again

    -- server addEvent("test", true) addEventHandler("test",getRootElement(), function () sound = playSound ( "1.mp3", false ) end) you added 2 end
  8. iMr.3a[Z]eF

    help again

    @Solidsnake14: sorry, i just wanna help people
  9. iMr.3a[Z]eF

    help again

    trigger?, all the codes he writes are client
  10. iMr.3a[Z]eF

    help again

    -- client local lastTick = 0 -- Define a variable with the last tick count local toWait = 60000 -- Define a variable with the time needed to wait local Group = { { 100000 }, } addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.staticimage[2] ) then local money = 0 if ( source == GUIEditor.staticimage[2] ) then money = Group[1][1] end if ( getTickCount ( ) - lastTick >= toWait ) then -- Calculate how long it passed since last used and compare with required time to wait. if ( getPlayerMoney ( ) >= tonumber ( money ) ) then triggerServerEvent ( 'sound1', money ) sound = playSound ( "1.mp3" ) lastTick = getTickCount ( ) else outputChatBox ( 'You Not Have Money', 255, 0, 0 ) end else outputChatBox ( "You must wait 60 seconds to use it again!", 255, 0, 0 ) end end end ) A boolean representing whether the sound will be looped. To loop the sound, use true. Loop is not available for streaming sounds, only for sound files.
  11. if isPedInVehicle(player) == false then @30 من هو بلاير؟ جرب كذا في السطر 30 أحذف نفس اللي كتبتها فوق وأستبدلها if getElementType( player ) == "player" then if not isPedInVehicle( player ) then
  12. ^^^ أي صح شرحك بس كاتب الموضوع يبي الشرح مفهووم للي ما يعرف يبرمج مثلاً EDIT: يطريقة أسهل أنه تحط بلاير في السيرفر واللوكال بلاير بالكلاينت
  13. يا شباب ما فرقنا الحين @AL-PRNS: بصراحة أنا أبي اساعدك بس أطلب كودات ونساعدك كلنا "إذا جاز التعبير" أما أذا طلبت منا نسويه عنك ما فكرت أنه تعبنا كله بيصير عليك؟
  14. والله ودي أقول لك عندك طريقتين أولاً: تدور ع مود التواجد بالتاب وتنسخ الاكواد اللي تبيها وتركبها بالمود حقك ثانياً: تسأل سوليد في رسالة خاصة تقول له بالأنجليزي طبعاً ركب لي مود التواجد للمود حقي "وأعطه المود اللي سويته" هذي أسهل طريقة
  15. ^^^^^^^^^^^ مـَ فهمتكك, وش اليوز؟
  16. This function destroys an element and all elements within it in the hierarchy
  17. أدري بس أبي الألمنت يظهر بعد ما أخش السيارة
  18. انا أبي الدي أكس يجي بعد ما يركب السيارة أججل سويت كذا ما زبط function T() local num = 133 addEventHandler("onClientRender", root, function() dxDrawText("Time :", 202, 192, 656, 222, tocolor(208, 224, 30, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText(tostring( num ), 403, 272, 458, 299, tocolor(208, 224, 30, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end ) end addEventHandler("onVehicleEnter", root, T) Timer = setTimer( function () num = num - 1 if num <= -1 then killTimer(Timer) num = 0 end end,1000,0)
  19. يعني يطلع دي أكس مثلا لو يلمس الماركر مؤقت من 1:33 وينقص لو وصل لصفر يسوي ديستروي ألمنت ذذ
  20. السلآم عليكم ورحمة الله وبركاته,,, ما أبي الا كود صغيرون ذذ كود التوقيت اللي يجي ع الدي أكسس
  21. كذا ما يجي؟ -- Server Side addEventHandler("onPlayerChat",root, function () setPlayerName(source,getPlayerName(source):gsub("#%x%x%x%x%x%x","")) end ) الأفنت أشوفه في بعض التاجات
  22. يب يروح الدي أكس في أقل من دقيقة
×
×
  • Create New...