Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    [help] again

    You need to create the object and attach it in server side in order to make effect to everyone. So you need to make trigger from client side to server side: triggerServerEvent
  2. GUIEditor.staticimage[1] = guiCreateStaticImage(0.31, 0.25, 0.38, 0.35, "img/bg.png", false) GUIEditor.staticimage[1] = guiCreateStaticImage(0.31, 0.25, 0.38, 0.35, "img/bg.png", true)
  3. Post both latest client side and latest server side you have, and what does debugscript say.
  4. viewtopic.php?f=91&t=52115 viewtopic.php?f=91&t=52172
  5. https://wiki.multitheftauto.com/wiki/AR/Math
  6. TAPL

    Export, calling

    It i'll never be 255.
  7. x,y = guiGetScreenSize() JobsWin = guiCreateWindow(x/3 - 170,y/3 - 20,200,320,"لوحة إختيار الفريق",false) teamsList = guiCreateGridList(0,22,186,255,false,JobsWin) column = guiGridListAddColumn(teamsList,"الفرق", 0.85) for id, team in ipairs(getElementsByType("team")) do local row = guiGridListAddRow(teamsList) local r, g, b = getTeamColor(team) guiGridListSetItemText(teamsList, row, 1, getTeamName(team), false, false) guiGridListSetItemColor(teamsList, row, 1, r, g, b) end guiWindowSetMovable(teamsList, false) guiWindowSetMovable(JobsWin, false) guiWindowSetSizable(teamsList, false) guiWindowSetSizable(JobsWin, false) send = guiCreateButton(0,285,90,25,"إختيار",false,JobsWin) CloseButton = guiCreateButton(105,285,90,25,"إغلاق",false,JobsWin) bindKey("F2", "down", function() guiSetVisible(JobsWin, not guiGetVisible(JobsWin)) showCursor(guiGetVisible(JobsWin)) end) addEventHandler("onClientGUIClick", root, function (button) if button == "left" then if source == send then local row, col = guiGridListGetSelectedItem(teamsList) local teamName = guiGridListGetItemText(teamsList, row, col) if teamName == "" then return end triggerServerEvent("onPlayerChooseTeam", localPlayer, teamName) guiSetVisible(JobsWin, false) showCursor(false) elseif source == CloseButton then guiSetVisible(JobsWin, false) showCursor(false) end end end)
  8. marker = createMarker(-2411.6735839844, -608.75842285156, 132.6333772752, "cylinder", 1.5, 255, 0, 0, 255) function on_Hit_Leave(hitElement, matchingDimension) if (hitElement and getElementType(hitElement) == "player" and matchingDimension) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup("Admin")) then triggerClientEvent(hitElement, "Show_Hide_Gui", hitElement, eventName) end end end addEventHandler("onMarkerHit", marker, on_Hit_Leave) addEventHandler("onMarkerLeave", marker, on_Hit_Leave) shopWindow = guiCreateWindow(370, 90, 640, 456, "shop panel MR.KING111", false) guiSetVisible(shopWindow, false) guiWindowSetSizable(shopWindow, false) guiWindowSetMovable(shopWindow, true) addEvent("Show_Hide_Gui", true) addEventHandler("Show_Hide_Gui", root, function (eventName) if eventName == "onMarkerHit" then guiSetVisible(shopWindow, true) showCursor(true) elseif eventName == "onMarkerLeave" then guiSetVisible(shopWindow, false) showCursor(false) end end)
  9. https://community.multitheftauto.com/index.php?p=resources&s=details&id=3634
  10. المشكلة عندك أن لوحة الأدمنية مو شغالة لان التسجيل موجود في لوحة الأدمنية عشان تشتغل مع بداية تشغيل السيرفر mtaserver.conf لازم تضيفها في ملف
  11. You guys should request some topics for yours board instead Mostly i am able to understand the words you wrote.
  12. http://code.google.com/p/mtasa-resources/downloads/list كل المودات الأصلية بآخر تحديثاتها تقدر تحملها من هنا
  13. الفري روم الأصلي مافيه ذي المشكلة يعني انت معدل عليه و تسببت بالمشكلة بدون الكود ما نقدر نساعدك بأي شي
  14. مشكؤؤر ع الرد السريع بس والله مافهمت شي اشرح لي على اكواد احسن امداك تقرأ في 3 دقائق؟
  15. الأستضافة تقفلت على ما أضن للأسف .. نساعد البعض وآخر شي ينكرون المساعدة .. لكن هذي حال الدنيا وانا قفلت استضافتي بعد 6 اشهر لأسباب خاصة وعدم التفرغ ..
  16. HernandezGFX وين المشكلة أنت راد بدون اقتباس
  17. إلى بسول بعد قلبي ذذ جرب ذا المثال ورد لي خبر function aaaa() setTimer(function() outputChatBox(getPlayerName(source)) end,1000,0) end addEventHandler("onPlayerChat", root, aaaa) وبعد ما تجربه جرب المثال الثاني ورد لي خبر function aaaa() setTimer(function(source) outputChatBox(getPlayerName(source)) end,1000,0,source) end addEventHandler("onPlayerChat", root, aaaa)
  18. timersT[source] = setTimer ( function ( ) local x,y = getElementPosition( source ) local x1,y1 = getElementPosition( attacker ) local rot = findRotation(x,y,x1,y1) setElementRotation ( source, 0,0,rot ) end, 500, 0 ) لازم تعرفهم بالتايمر كذا timersT[source] = setTimer ( function (source, attacker) local x,y = getElementPosition( source ) local x1,y1 = getElementPosition( attacker ) local rot = findRotation(x,y,x1,y1) setElementRotation ( source, 0,0,rot ) end, 500, 0, source, attacker ) وذا ما له داعي لان يجي بالأفنت local wep = getPedWeapon ( attacker )
  19. غير معرفين داخل التايمر attacker و source يا بسول
  20. TEST. EDIT: It's work.
  21. function DaiSoldi(player, cmd, quantita, soldi) local soldi = tonumber(soldi) local quantita = getPlayerFromName(quantita) if (soldi) and (isElement(quantita) then givePlayerMoney(quantita, soldi) else outputChatBox("|Uso:| /givemoney [giocatore] [soldi]",player) end end addCommandHandler("givemoney", DaiSoldi)
  22. You're welcome.
  23. showCursor not needed.
  24. Also, this: function DaiSoldi(player,quantita) Should be: function DaiSoldi(player,cmd,quantita)
  25. Create a col shape and use events onClientColShapeHit and onClientColShapeLeave with function bindKey and unbindKey.
×
×
  • Create New...