Leaderboard
Popular Content
Showing content with the highest reputation on 20/05/19 in all areas
-
ســلام عليكم ورحمة الله كيف الأحــوال ّء موضوع اليوم عن لوحة أدمن ~ طـبعـا اللوحه ليست لوحة الأدمن الأصليه حقت اي سيرفر ~ >>| هذي لوحة مساعده للأدامن اللي في السيرفر اللوحه تفتح لرتب معينه وبكلمه من اف 8 |<< لتعديل كل هذا من ملف اسمه sittingS كل شيء عن المود موجود في هذا الرابط \ الفيديو |~ الإهداءات ~| @!#DesTroyeR_,) @MrKAREEM @Mr.Falcon @DABL @KillerX @NX_CI @[AcM] - Major . @MR_Mahmoud @Ahmed Ly @MR.Mosa @N3xT @Abu-Solo @SuperX @#BrosS @iMr.WiFi..! @Mr.CnTroL @Abdul KariM و جميع أعضاء المنتدى2 points
-
Se me permitem, eu faria um upgrade nesse script de congelar, ficaria assim: local m1 = createMarker (-2511, -481, 90, "cylinder", 1.5, 255, 255, 0, 170) -- Marker do Jonas^ Brothers addEventHandler ("onMarkerHit", m1, function (hitElement, matchingDimension) if hitElement and getElementType (hitElement) == "player" and matchingDimension then setElementFrozen (hitElement, true) toggleAllControls (hitElement, false) setTimer (function () setPedAnimation (hitElement, "int_house", "wash_up", 10000, true, false, false, false) setTimer (function () setElementFrozen (hitElement, false) toggleAllControls (hitElement, true) end, 10000, 1) end, 1000, 1) end end)2 points
-
It's official, MTASA has been bought and we are becoming SAMP. Future MTASA builds will be closed source and half the features removed. Have a nice day!2 points
-
**FREE FREE FREE!!!!** Absolutely FREE!!!!! Free MTA Server on Request! All you have to do is post for host! Just stay active and Post and we will host your server for you! Any server, Any Disk Space, Any Bandwidth and we will handle it for you. Register today and request for your server ASAP http://gregnax.xyz Register and start posting! Advanced Game Panel ! DM me personally for more information! Let's make our own server! Register at http://gregnax.xyz Have a LOOK!!!!!!!1 point
-
1 point
-
1 point
-
1 point
-
'client' isn't defined in the function with the timer. addEvent("getTicket",true) addEventHandler("getTicket", root, function() setElementInterior(client, 1) setElementPosition(client, 1.76953125 ,28.478515625 ,1199.59375) outputChatBox("#00ff00You are now in air plane!", client, 255, 255, 255, true) setTimer( function(client) setElementInterior(client, 0) setElementPosition(client, 1685.8193359375 ,-2237.5400390625 ,13.546875) outputChatBox("#00ff00Welcome To Los Santos!", client, 255, 255, 255, true) end , 60000, 1 ,client) end)1 point
-
amAdmin=false; render{ triggerServerEvent if amAdmin then -- اذا قيمة المتغير صحيحة -- اعرض الشيء اللي تبيه end } server{ isObjectInACLGroup triggerClientEvent } client{ amAdmin=true -- قيمة المتغير صحيحة في حالة ارسال الترايقر من سيرفر لكلينت }1 point
-
client-side: local x, y = guiGetScreenSize () local painel = false function renderPanel () dxDrawLine(494 - 1, 98 - 1, 494 - 1, 552, tocolor(254, 254, 254, 108), 1, false) dxDrawLine(877, 98 - 1, 494 - 1, 98 - 1, tocolor(254, 254, 254, 108), 1, false) dxDrawLine(494 - 1, 552, 877, 552, tocolor(254, 254, 254, 108), 1, false) dxDrawLine(877, 552, 877, 98 - 1, tocolor(254, 254, 254, 108), 1, false) dxDrawRectangle(494, 98, 383, 454, tocolor(0, 0, 0, 149), false) dxDrawRectangle(494, 98, 383, 60, tocolor(255, 255, 255, 255), false) dxDrawText("Máfia Armas", 560, 108, 892, 148, tocolor(0, 0, 0, 254), 1.10, "bankgothic", "left", "top", false, false, false, false, false) dxDrawLine(508 - 1, 173 - 1, 508 - 1, 252, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(861, 173 - 1, 508 - 1, 173 - 1, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(508 - 1, 252, 861, 252, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(861, 252, 861, 173 - 1, tocolor(249, 249, 249, 122), 1, false) dxDrawRectangle(508, 173, 353, 79, tocolor(0, 0, 0, 254), false) dxDrawText("Pistola 9MM - 2500R$", 518, 193, 817, 222, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "left", "top", false, false, false, false, false) dxDrawLine(508 - 1, 290 - 1, 508 - 1, 369, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(861, 290 - 1, 508 - 1, 290 - 1, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(508 - 1, 369, 861, 369, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(861, 369, 861, 290 - 1, tocolor(249, 249, 249, 122), 1, false) dxDrawRectangle(508, 290, 353, 79, tocolor(0, 0, 0, 254), false) dxDrawText("AK47 S/Coronha- 5000R$", 513, 317, 812, 346, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "left", "top", false, false, false, false, false) dxDrawLine(508 - 1, 406 - 1, 508 - 1, 485, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(861, 406 - 1, 508 - 1, 406 - 1, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(508 - 1, 485, 861, 485, tocolor(249, 249, 249, 122), 1, false) dxDrawLine(861, 485, 861, 406 - 1, tocolor(249, 249, 249, 122), 1, false) dxDrawRectangle(508, 406, 353, 79, tocolor(0, 0, 0, 254), false) dxDrawText("AK47 c/Coronha- 15000R$", 513, 429, 812, 458, tocolor(255, 255, 255, 255), 0.77, "bankgothic", "left", "top", false, false, false, false, false) end function startRender () if painel == false then addEventHandler ("onClientRender", root, renderPanel) showCursor (true) painel = true end end addEvent ("onRequestOpenPanel", true) addEventHandler ("onRequestOpenPanel", getRootElement(), startRender) function armas (_, state) if painel == true then if state == "down" then if isCursorOnElement (560, 108, 892, 148) then triggerServerEvent ("arma1", localPlayer) end end end end addEventHandler ("onClientClick", root, armas) function isCursorOnElement (x, y, w, h) local mx, my = getCursorPosition () local fullx, fully = guiGetScreenSize () cursorx,cursory = mx * fullx, my * fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end server-side: local PanelGun = createMarker (1503.3, -666.5, 95.5, 'cylinder', 1.5, 255, 255, 0, 170) addEventHandler ("onMarkerHit", PanelGun, function (hitElement, matchingDimension) outputChatBox ("#FF0000[BCR]#FFFFFF Compre Sua Arma", hitElement, 255, 0, 0, true) triggerClientEvent (hitElement, "onRequestOpenPanel", hitElement) end) function arma1 () giveWeapon (source, 22, 999, true) outputChatBox ("#00ff00BCR#ffffff )#ffff00Voce Pegou a #00ff00Pistola !", source, 255, 255, 255, true) end addEvent ("arma1", true) addEventHandler ("arma1", getRootElement(), arma1) -- Aconselho fazer em GUI1 point
-
Então cara. Eu testei aqui. Solução: Do jeito que está, com setElementFrozen DEPOIS da animação, ele não funciona. Com setElementFrozen ANTES da animação, ele funciona. Aparentemente o setElementFrozen é capaz de cancelar animações. Quando vc anima o personagem na linha anterior, ao dar freeze na linha seguinte, cancela a animação. Trocando as linhas de lugar, corrige o problema. local m1 = createMarker (-2511, -481, 90, "cylinder", 1.5, 255, 255, 0, 170) -- Marker do Jonas^ substitua pelo seu. addEventHandler ("onMarkerHit", m1, function (hitElement, matchingDimension) setElementFrozen (hitElement, true) setPedAnimation (hitElement, "int_house", "wash_up", 10000, true, false, false, false) setTimer (setElementFrozen, 10000, 1, hitElement, false) end)1 point
-
حـبـيــب قــلــبــي تـســلـمـمء انــشــالله بالاصــدآر الــثاني بـصــلـححء كــلء الأخطــآء شــكــراً لــردككء ? شــكـراً لــتـعـلـيـقـككء بـس أنـا مــش مــســتر مــوســـي ?1 point
-
If the loop isn't invert, this will not work well: -- This will go wrong function theFunction () -- first function removeRenderEvent(theFunction) end addRenderEvent(theFunction) -- add multiple functions, else the context isn't valid for i=1, 9 do addRenderEvent(function () end) end functions: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Looping: from 1 t/m 10 | = index 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Deleting 1 during the loop: | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Going on: | > > > > > > > > 2, 3, 4, 5, 6, 7, 8, 9, 10, nothing error: | 2, 3, 4, 5, 6, 7, 8, 9, 10, nothing If the loop is inverted, the loop will not have problems when items are removed.1 point
-
هيك start = getTickCount() DxAnimation = function (text,color1,color2) local now = getTickCount() x_,y_,w_,h_ = 254, 368, 465, 25 local progress = (now - start) / (start + 1000 - start) local h,r,g = interpolateBetween(h_-50,color1 or 0, color1 or 0, 0,color2 or 255, color2 or 255, progress, "CosineCurve") dxDrawRectangle (x_,y_-25,w_,h_, tocolor ( 0, 0, 0, 200 ) ) dxDrawRectangle (x_,y_,w_,h, tocolor ( 255,255,255, 165 ) ) dxDrawText(text or 'oskar',x_,y_-50,w_+x_,h_+y_, tocolor(r,g,r), 1.00, "bankgothic", "center", "center", false, false, false, true, false) if now - start >= 5000 then removeEventHandler("onClientRender", root,render) start = getTickCount() end end function render() DxAnimation ('Welcome To BlackHeart',0,255) end addEventHandler("onClientRender", root,render) أو هيك function render() DxAnimation ('Welcome To BlackHeart',0,255) end addEventHandler("onClientRender", root,render) setTimer(function() removeEventHandler("onClientRender", root,render) end,5000,1) و يب المتغيرات تنفع لكن الانتربولات اصعب وأحسن ض11 point
-
1 point
-
start = getTickCount() DxAnimation = function (text,color1,color2) local now = getTickCount() x_,y_,w_,h_ = 254, 368, 465, 25 local progress = (now - start) / (start + 1000 - start) local h,r,g = interpolateBetween(h_-50,color1 or 0, color1 or 0, 0,color2 or 255, color2 or 255, progress, "CosineCurve") dxDrawRectangle (x_,y_-25,w_,h_, tocolor ( 0, 0, 0, 200 ) ) dxDrawRectangle (x_,y_,w_,h, tocolor ( 255,255,255, 165 ) ) dxDrawText(text or 'oskar',x_,y_-50,w_+x_,h_+y_, tocolor(r,g,r), 1.00, "bankgothic", "center", "center", false, false, false, true, false) end addEventHandler("onClientRender", root,function () DxAnimation ('Welcome To BlackHeart',0,255) end) اي خطاء قوله1 point
-
The "getPedTargetStart" function will retrieve the starting point of the target range. This target range is probably linked to the camera position (I'm not entirely sure though), which would explain why your camera is "always moving forward" Let's say the target start range is always 1 unit in front of the camera. Your camera position is set to 0. Then you set the camera position to the start range (1), and the start range then subsequently changes to 2. This will happen forever whilst you are zoomed in. You should store the initial target start position, instead of getting it on each frame. This can be done quite easily. local targetStartPos = false function aim_test () if getControlState("aim_weapon") == true and getPedWeapon(localPlayer) == 34 then if not targetStartPos then local startX, startY, startZ = getPedTargetStart(localPlayer) targetStartPos = {x = startX, y = startY, z = startZ} end local x, y, z = targetStartPos.x, targetStartPos.y, targetStartPos.z local x2,y2,z2 = getPedTargetEnd(localPlayer) if not x2 then return false end local x3,y3,z3 = getPedTargetCollision(localPlayer) if x3 then setCameraMatrix(x,y,z,x3,y3,z3) else setCameraMatrix(x,y,z,x2,y2,z2) end else if not getCameraTarget(localPlayer) then targetStartPos = false setCameraTarget(localPlayer) end end end addEventHandler("onClientPreRender",root,aim_test) Haven't tested, but I'm fairly certain that should fix your issue.1 point
-
1 point
-
@Jonas^ Desnecessária a postagem, ainda mais pra alguém com certo tempo de fórum e que já entende as regras. Resolvam as questões pessoais em outro local, o fórum não é lugar pra isso e nem será tolerado. @brunob22 Envie isso por privado que será bem mais útil pra nossa comunidade, em vez de fazer off-tópic com posts de briguinhas poderia ter gastado esse tempo tentando ajudar, mas se você achar que já ajudou escrevendo menos de 1 linha beleza, mas aqui não é lugar de discussões e intrigas, se não vai ajudar é simples, não posta.1 point
-
0 points