Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. How the hell i can tell if i see no code at all?
  2. لازم تستخدم هذا الكود عشان تسوي الحركة guiMoveDownToCenter(window)
  3. You must edit your code and put a check to know if the player are in the group or not before he able to add object. You need the function to check the group: isObjectInACLGroup
  4. جرب local x, y = guiGetScreenSize() function Open() ancho = 320 alto = 450 CR,CG,CB = 255,0,255 alphaDefaul= 255 teamColor = tocolor (CR,CG,CB,alphaDefaul) btAncho = 320 btAlto = 25 local now = getTickCount() local elapsedTime = now-start local endTime = start + 1500 local duration = endTime-start local progrARs = elapsedTime/duration if progrARs >= 1 then state = true wC = false end x1, y1, z1 = interpolateBetween(0,0,0,ancho,alto,255,progrARs,"OutBounce") x2, y2, z2 = interpolateBetween(0,0,0,btAncho,btAlto,200,progrARs,"OutBounce") posx = (x/2)-(x1/2) posy = (y/2)-(y1/2) dxDrawRectangle (posx,posy-y2,x2,y2,teamColor) dxDrawRectangle (posx,posy,x1,y1,tocolor(0,0,0,200)) end function Close() ancho = 320 alto = 450 btAncho = 320 btAlto = 25 local now2 = getTickCount() local elapsedTime2 = now2 - start2 local endTime2 = start2 + 1500 local duration2 = endTime2 - start2 local progrARs2 = elapsedTime2 / duration2 if progrARs2 >= 1 then state = false wC = false removeEventHandler("onClientRender", root, Close) end local x3, y3, z3 = interpolateBetween(ancho, alto, 0, 0, 0, 0, progrARs2, "OutBounce") local x4, y4, z4 = interpolateBetween(btAncho, btAlto, 0, 0, 0, 0, progrARs2, "OutBounce") posx = (x/2)-(x3/2) posy = (y/2)-(y3/2) dxDrawRectangle(posx, posy-y4, x4, y4, teamColor) dxDrawRectangle(posx, posy, x3, y3, tocolor(0, 0, 0, 200)) end function status() if not wC then if state then wC = true start2 = getTickCount() removeEventHandler("onClientRender", root, Open) addEventHandler("onClientRender", root, Close) else wC = true start = getTickCount() addEventHandler("onClientRender", root, Open) end end end bindKey("F2", "down", status)
  5. I don't understand, post your code so i can see what you're talking about. And by the way here you don't need to put your account name because it will be there already by the function getAccountName. if isObjectInACLGroup("user.Mark"..accName, aclGetGroup("LWS")) then
  6. local s1, s2 = guiGetScreenSize() TimeGuiSetDownC = {} function guiMoveDownToCenter(gui) local w1, w2 = guiGetSize(gui, false) if not isTimer(TimeGuiSetDownC[gui]) then local x, y = (s1-w1)/2, (s2-w2)+w2 guiSetPosition(gui, x, y, false) TimeGuiSetDownC[gui] = setTimer(guiMoveDownToCenter, 50, 0, gui) end local x, y = guiGetPosition(gui, false) if (y <= (s2-w2)/2) then killTimer(TimeGuiSetDownC[gui]) TimeGuiSetDownC[gui] = nil else guiSetPosition(gui, x, (y-10), false) end end window = guiCreateWindow(100, 100, 100, 100, "TEST!!!", false) guiMoveDownToCenter(window) او ممكن تجرب ذا الحركة بتكون فيه اكثر سلاسه local s1, s2 = guiGetScreenSize() GuiSetDownC = {} speed = 5 -- تقدر تزيد سرعة الحركة من هنا function guiMoveDownToCenter(gui) for i, v in ipairs (GuiSetDownC) do if (v == gui) then return false end end local w1, w2 = guiGetSize(gui, false) local x, y = (s1-w1)/2, (s2-w2)+w2 guiSetPosition(gui, x, y, false) table.insert(GuiSetDownC, gui) end addEventHandler("onClientRender", root, function() for i, gui in ipairs(GuiSetDownC) do local x, y = guiGetPosition(gui, false) local w1, w2 = guiGetSize(gui, false) if (y <= (s2-w2)/2) then GuiSetDownC[i] = nil else guiSetPosition(gui, x, (y-speed), false) end end end) window = guiCreateWindow(100, 100, 100, 100, "TEST!!!", false) guiMoveDownToCenter(window)
  7. object id, the positions and the rotation if you needed it.
  8. TAPL

    save weapons

    Admin panel don't use the event onElementModelChange, it's use the function spawnPlayer to set your skin.
  9. addEventHandler("onPlayerLogin", root, function(_, account) local accName = getAccountName(account) if isObjectInACLGroup("user."..accName, aclGetGroup("LWS")) then triggerClientEvent(source, "createTheObject", source) end end) addEvent("createTheObject", true) addEventHandler("createTheObject", root, function() createObject(.....) createObject(.....) createObject(.....) createObject(.....) createObject(.....) createObject(.....) createObject(.....) end)
  10. TAPL

    save weapons

    Maybe you have another resource that uses the event onElementModelChange.
  11. This not going to work, you need to use server side to check the players group and then trigger to client side to create the objects.
  12. TAPL

    Adminnick

    English? We don't give support with vG (leaked) if it what you asking help for.
  13. هههههههههههههههههه وش شارب انت اليوم؟ كيف يعني الأون لاين يسوي المهمة ذا برمجة يا حبيبي انت تسوي كل شي وظيفة الكود راح يحذف السيارة بعد ما تنفجر من الماب و بالتالي من الألمنت تري بس فيه شي ناقص الي هو ما راح يحذف اليوزر داتا تبع السيارة من الجدول مع الوقت راح يكبر الجدول و يمكن ينفجر او مدري وش بيصير خخ : صحيح , يمديه يتخطى هالمشكلة عن طريق إخراج كود حذف اليوزر داتا من الشرط addEventHandler ( 'onPlayerQuit', root, function ( ) if isElement ( vehicle [ source ] ) then destroyElement ( vehicle [ source ] ) end vehicle [ source ] = nil end )
  14. هههههههههههههههههه وش شارب انت اليوم؟ كيف يعني الأون لاين يسوي المهمة ذا برمجة يا حبيبي انت تسوي كل شي وظيفة الكود راح يحذف السيارة بعد ما تنفجر من الماب و بالتالي من الألمنت تري بس فيه شي ناقص الي هو ما راح يحذف اليوزر داتا تبع السيارة من الجدول مع الوقت راح يكبر الجدول و يمكن ينفجر او مدري وش بيصير خخ
  15. انت ترفع بالأف تي بي ولا ايش
  16. but MTA and GTA:SA not request high spec maybe Problem from missing driver and more programs that Consumption of the CPU and RAM. This not a joke, his processor very low it's only 1.3 GHZ, it's won't give any good fps and you should consider that MTA require more than the single player GTA:SA. if you are running on minimum requirements, you will experience slowdowns in MTA as it takes up extra processing power.
  17. He have AMD E-300 processor, it never going to give him a good fps.
  18. من سطر 23 إلى 26 ايش هذا؟؟ و بما انك تبي الماركر في انتيرو ليه ما حطيت الماركر في الأنتيرو؟
  19. أنت في عالم وهمي او انتيرو؟ هل الماركر ظاهر او لا؟ هل في اخطاء في الدي بق؟
  20. شنو الي ما اشتغل!!!!!!!! انسى ما يشتغل تأكد من احداثياتك
  21. كرت الشاشة حقي مكتوب بالصورة بس حقك اقوى من الي عندي ضض1
  22. لوول ما يحتاج خبره يكفي انك تبحث بالنت و تسئل اصحاب الخبرة بالأخير ابو هنود راح يركب لك القطع إذا ماعرفت ما يفرق الفبس في الألعاب i7 و i5 على فكرة ترا في معالج i5 الي i7 يعني لو بس تشغل مخك شوي راح تلاقي انك ممكن توفر فرق سعر معالج في حدود 500 ريال فرق ذي تحطها في كرت شاشة اقوى راح يكون عندك فبس اعلى
  23. محد ياخذ اجهزه جاهزه عشان الألعاب إلا الأهبل لان الأجهزه الي جاهزه يكون سعرها اغلى من إذا تجمع الجهاز بنفسك يعني تشوف المواصفات الي انت حاطها السعر تقريباً 5 آلاف GTX 650 - GTX 660 بالأخير كرت الشاشة اعتقد ما يتعدى
  24. بس الرامات؟ لازم جهاز قوي من ناحية المعالج و كرت الشاشة و الرامات يعني لازم جهاز قوي كامل مو بس رامات http://i.imgur.com/zPquntm.png جهازي حلو؟
  25. Who stopped you from creating your own panel with "a lot more stuff"?
×
×
  • Create New...