-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
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
-
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)
-
Post both latest client side and latest server side you have, and what does debugscript say.
-
viewtopic.php?f=91&t=52115 viewtopic.php?f=91&t=52172
-
https://wiki.multitheftauto.com/wiki/AR/Math
-
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)
-
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)
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=3634
-
المشكلة عندك أن لوحة الأدمنية مو شغالة لان التسجيل موجود في لوحة الأدمنية عشان تشتغل مع بداية تشغيل السيرفر mtaserver.conf لازم تضيفها في ملف
-
Requesting Moderators for our board
TAPL replied to Baseplate's topic in Maghrebi Arabic / Darija / الدارجة
You guys should request some topics for yours board instead Mostly i am able to understand the words you wrote. -
http://code.google.com/p/mtasa-resources/downloads/list كل المودات الأصلية بآخر تحديثاتها تقدر تحملها من هنا
-
الفري روم الأصلي مافيه ذي المشكلة يعني انت معدل عليه و تسببت بالمشكلة بدون الكود ما نقدر نساعدك بأي شي
-
مشكؤؤر ع الرد السريع بس والله مافهمت شي اشرح لي على اكواد احسن امداك تقرأ في 3 دقائق؟
-
بمناسبة العيد .. تم افتتاح الاستضافة السعودية + خصم 50%
TAPL replied to UAEpro's topic in الاستضافات
الأستضافة تقفلت على ما أضن للأسف .. نساعد البعض وآخر شي ينكرون المساعدة .. لكن هذي حال الدنيا وانا قفلت استضافتي بعد 6 اشهر لأسباب خاصة وعدم التفرغ .. -
HernandezGFX وين المشكلة أنت راد بدون اقتباس
-
إلى بسول بعد قلبي ذذ جرب ذا المثال ورد لي خبر 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)
-
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 )
-
غير معرفين داخل التايمر attacker و source يا بسول
-
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)
-
Also, this: function DaiSoldi(player,quantita) Should be: function DaiSoldi(player,cmd,quantita)
-
Create a col shape and use events onClientColShapeHit and onClientColShapeLeave with function bindKey and unbindKey.
