Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/09/17 in all areas

  1. السلام عليكم اليوم جبت لكم لوحة الفيب من صنعي خلينا نشوف صورة اللوحة فقط لتشغيلها ضيف الرتبة في الاسل "VIP" طبعا اللوحة تفتح لرتبة 'F9' من زر ____________________________________________________________________________________________________ : مميزات اللوحة - جميع رسائل اللوحة في الجيو مسيج - اخذ سيارات من كومبو بوكس - تغيير اللغة من عربي لانجليزي _____________________________________________________________________________________________________________________________________________ لتحميل اللوحة : اضغط هنا لتحميل الجيو ميسج : اضغط هنا _____________________________________________________________________________________________________________________________________________ الاهدائات @MR.StoRm @#Soking @iMr.WiFi..! @Aln3mani @#,+( _xiRoc[K]; > @Default#^ @Abu-Solo ____________________________________________________________________________________________________________________________________________ اتمني تكون اللوحة اعجبتكم ويلا مع السلامة
    2 points
  2. بسم الله الرحمن الرحيم اليوم جايبلكم شرح وظيفة createEffect Client Only اول شي الفنكشن Syntax نيجي الحين لل effect createEffect ( string name, float x, float y, float z [, float rX, float rY, float rZ, float drawDistance = 0 ] ) string name = هنا يقصد سترينج ثم اسم التأثير https://wiki.multitheftauto.com/wiki/Element/Effect#Effects_list لمعرفة اسماء التأثيرات خش هذا اللينك float x , float y , float z = الاحداثيات x,y,z --- مثال 1 addCommandHandler("تاثير", function() createEffect("wallbust", -709.07355,962.01721,12.45613) outputChatBox("تم صنع تأثير",255,255,0,true) end ) وهنا اول مثال نبيه اول م اللاعب يكتب في اف 8 تاثير يجيله التأثير في الاحداثيات الي قدامه صورة : مثال 2 addCommandHandler("effect", function() local x, y, z = getElementPosition(localPlayer) createEffect("flamethrower", x, y, z) outputChatBox("تم صنع التأثير",255,255,0,true) end ) في اف 8 يجيله تأثير نار effect هنا نبيه اول م يكتب كلمة صورة : اتمني الشرح يكون اعجبكم ويلا مع السلامة
    1 point
  3. Here's the full script if anyone is interrested : ----Client-- GUIEditor = { checkbox = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.label[1] = guiCreateLabel(614, 118, 130, 14, "Disable deathmatch", false) GUIEditor.checkbox[1] = guiCreateCheckBox(593, 117, 17, 15, "", false, false) addEventHandler("onClientGUIClick",GUIEditor.checkbox[1], checkBox, false) end ) function checkBox() if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1])) then setElementData(localPlayer, "invincible", true) setVehicleDamageProof(getPedOccupiedVehicle(localPlayer),true) else setElementData(localPlayer, "invincible", false) setVehicleDamageProof(getPedOccupiedVehicle(localPlayer),false) end end addEventHandler ( "onClientPlayerDamage",localPlayer, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function () if getElementData(source,"invencible") then cancelEvent() end end) function renderDeathmatchTag() local streamedPlayers = getElementsByType ("player", root, true) if streamedPlayers and #streamedPlayers ~= 0 then local lpos = {getElementPosition(localPlayer)} for _,p in ipairs (streamedPlayers) do if p and isElement (p) then if getElementData (p, "invincible") then local ppos = {getElementPosition(p)} if getDistanceBetweenPoints3D (lpos[1], lpos[2], lpos[3], ppos[1], ppos[2], ppos[3]) <= 20 then local x, y = getScreenFromWorldPosition (ppos[1], ppos[2], ppos[3]+1.2) if x and y then dxDrawText ("Disabled deathmatch ! (Can't die)", x, y, x, y, tocolor (255,0,0), 0.5, "bankgothic", "center") end end end end end end end addEventHandler ("onClientRender", root, renderDeathmatchTag) --------Server function disableWeaponOnGodMod (prev,new) if getElementData(localPlayer, "invincible") then setPedWeaponSlot(localPlayer, 0) setVehicleDamageProof ( root, true ) end end addEventHandler ( "onClientRender", root, disableWeaponOnGodMod )
    1 point
  4. Try this function erablas( button, state, thePlayer ) if button == "left" and state == "down" then if getElementType( source ) == "object" and getElementModel(source) == 1829 then local x, y, z = getElementPosition( thePlayer ) local x1, y1, z1 = getElementPosition( source ) local distance = getDistanceBetweenPoints3D( x, y, z, x1, y1, z1 ) if distance < 4 then if ( idozito [ source ] ~= nil ) then outputChatBox ( "#01AC41[SuperFun] #FFffFFA következő széfrablásig várnod kell #01AC41".. math.floor ( getTimerDetails ( idozito [ thePlayer ] ) / 60000+1 ) .." percet.", thePlayer, 255, 0, 0, true ); else setElementFrozen(thePlayer, true) setPedAnimation(thePlayer , "rob_bank", "cat_safe_rob", 10000, true, true, true, false) setTimer(setElementFrozen,10000,1,thePlayer,false) setTimer(setPedAnimation,10000,1,thePlayer) randomM = math.random(500000,1500000) setTimer(function() givePlayerMoney(thePlayer,randomM) destroyElement(safe) end,10000,1) setTimer(outputChatBox, 10000,1,"#01AC41[SuperFun] #FFffFFÖsszesen raboltál #01AC41"..randomM.." #ffffffforintot.",thePlayer,255,255,255,true) setTimer(outputChatBox, 900000, 1,"#01AC41[SuperFun - #8C8C8CÉszaki] #FFffFFAz #01AC41északin #FFffFFújra kirabolhatóvá vált a széf! #01AC41(/eszaki)",root,255,255,255,true) setTimer(Boltrablas,900000,1) idozito [ source ] = setTimer ( function ( ) idozito [ source ] = nil; end, 900000, 1, source); end else outputChatBox ( "#01AC41[SuperFun] #FFffFFTúl messze vagy a széftől! Gyere közelebb, nem harap..", thePlayer, 255, 0, 0, true ); end end end end addEventHandler( "onElementClicked", getRootElement( ), erablas )
    1 point
  5. You needed to loop the click function for all the buttons. function inventoryClickDetect (button,state,x,y) for i=1,rowNumber do if ( button == "left" ) then if ( state == "down" ) then if ( x >= 210 and x <= 210 + 50 and y >= 85+i*20 and y <= 85+i*20 + 15 ) then outputChatBox("Took "..newInvItems[i][1]) return end end end end end addEventHandler("onClientClick",root,inventoryClickDetect)
    1 point
  6. اشكرك اخوي واي فاي , دائما متميز , وتعطي الجواب حقه وكفيت ووفيت اشكرك على الاجابة , لا
    1 point
  7. Insert the source into your idozito table instead of thePlayer.
    1 point
  8. بسمـ الله الرحمن الرحيم عذرا لعدم تواجدي او تفاعلي , لان من وقت حسابي القديم ما اتفاعل ,, المهم اليوم جايب لكم مود من برمجتي , حق الترقيه طبعا هي عباره عن لوحه ما تفتح الا للمسؤول الي تبيه كيف نختار المسؤول ؟؟ تروح ملف الميتا تلاقي القيمه value="Console" ,, تغيرها للي تبيه طبعا صوره للمود : خصائص المود: 1- تستطيع ترقيه الاعبين الموجودين بالسيرفر حسب قائمه الادمنيه التي تحددها 2- تستطيع ترقيه الاعب وهو خارج السيرفر او سحب رتبته في حال عدم التواجد , 3- يوجد قائمه تبين لك جميع حسابات الادمنيه واسم الليفل الذي هو فيه 4- لا يستطيع المسؤول ترقيه الاعبين الا من ليفل1 حتى ليفل5 ملاحظه: تستطيع تغيير الليفل او الاسماء الي تبي تسويها من الاسل , من المود نفسه for i = 1, 5 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "LVL_1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "LVL_2", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "LVL_3", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "LVL_4", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "LVL_5", false, false) طبعا يجب ان تكون هاذه اسماء الرتب مثل اسماء الرتب بالاسل تستطيع تغيرها او اضافه لها او مثل ما تبي طبعا المود سهل تعدله , اذا كان عندك خبره بسيطه , اذا ما عندك خبره اطرح شو تبي يتعدل ونساعدك ملاحظه صغيره واخيره : المود تم نشره غير مشفر لان بعض السيرفرات والناس يحتاجوا المود بتمنى الكل يستفيد .. + تم استخدام بعض اكواد من مود سورا عشان كنت مستعجل لما سويته ,, بالتوفيق للجميع رابط التحميل بالاسفل https://up.top4top.net/downloadf-619l4ycm1-zip.html بأذن الله رح اسوي اصداارات اخرى , وانشر مودات اخرى , الي عنده اقتراح كومنت وشكرا لكم
    1 point
  9. Invalid function parameters check the wiki for them.
    1 point
  10. addEvent( "eszakirablas", true ) addEventHandler( "eszakirablas", root, function (thePlayer) if ( idozito [ thePlayer ] ~= nil ) then outputChatBox ( "#01AC41[SuperFun] #FFffFFA következő széfrablásig várnod kell #01AC41".. math.floor ( getTimerDetails ( idozito [ thePlayer ] ) / 60000+1 ) .." percet.", thePlayer, 255, 0, 0, true ); else setElementFrozen(thePlayer, true) setPedAnimation(thePlayer , "rob_bank", "cat_safe_rob", 10000, true, true, true, false) setTimer(setElementFrozen,10000,1,thePlayer,false) setTimer(setPedAnimation,10000,1,thePlayer) randomM = math.random(500000,1500000) setTimer(function() givePlayerMoney(thePlayer,randomM) end,10000,1) setTimer(outputChatBox, 10000,1,"#01AC41[SuperFun] #FFffFFÖsszesen raboltál #01AC41"..randomM.." #ffffffforintot.",thePlayer,255,255,255,true) setTimer(outputChatBox, 900000, 1,"#01AC41[SuperFun - #8C8C8CÉszaki] #FFffFFAz #01AC41északin #FFffFFújra kirabolhatod a széfet! #01AC41(/eszaki)",thePlayer,255,255,255,true) setTimer(Boltrablas,900000,1) idozito [ thePlayer ] = setTimer ( function ( thePlayer ) idozito [ thePlayer ] = nil; end, 900000, 1, thePlayer); end end )
    1 point
  11. https://wiki.multitheftauto.com/wiki/DxDrawTextOnElement
    1 point
  12. getScreenFromWorldPosition isLineOfSightClear
    1 point
  13. Don't forget MTA staff can access your community compiled scripts, after comparing it to castillo's resource it turns out it's the same, only customized. You just had the guts to call someone else's work ''your rights'' and are lying, which proves intent to breach castillo's original author rights. Therefore, this resource will be removed anyways, and your community account is now temporarily banned.
    1 point
  14. Replace 'player' with 'localPlayer'.
    1 point
  15. if ( guiGridListGetRowCount ( gridlist ) == 0 ) then
    1 point
  16. Esqueci de avisar que deu certo. Obrigado a todos. Ficou assim: [CLOSED]
    1 point
  17. Negative results are fine because you still have calculations left. What you did is correct, you just need to continue until the only thing left between the commas are numbers and nothing else.
    1 point
  18. There's nothing wrong in using and editing other servers' scripts. If you found them on the Internet that's not stealing, it's using. You don't take any credit for them but are just having fun. What someone said above me is correct though: we won't help with leaked scripts (but everybody knows a guy who knows a guy whose cousin's sister's boyfriend knows lua ). Using them is not a crime, telling others that you made them is.
    1 point
  19. addEventHandler('onClientResourceStart',root,function () txd = engineLoadTXD ( "test.txd" ) engineImportTXD ( txd, 587 ) setTimer(destroyElement,1000*2,1,txd) end) ? اتوقع وصلت الفكره
    1 point
  20. While I agree with everything Dutchman101 said, I'd like to add a few aspects from the technical point of view. The requirements that need to be fulfilled by the language are very strict, to mention some: Embeddable into other languages (especially C++) Sandboxed (no unsafe functions e.g. such that can invoke system commands) Well-known, stable and mature enough When thinking a bit about these requirements, there are only a handful of languages left that fulfill all of them. So let's take a closer look at the suggested languages: Java: Embedding works (even if it's not designed for that), but not sandboxed Python: Designed almost equally for embedding and running standalone, but no official/stable sandbox support (available solutions are rather experimental) C#: Microsoft's official implementation is not embeddable. Mono is, but isn't sandboxed either Javascript (V8): Meant to be embedded, sandboxed and well-known ==> fulfills requirements So, as you can see, only Javascript is an imaginable solution, even if it's a huge code base and takes much more time to compile (we're talking about a factor of >50-100x compared to Lua). That's basically the reason why Lua is loved in embedding contexts. Also, in my opinion Lua is actually a pretty good language: It's very easy to learn, it's one of the most flexible languages I know (considering metatables) and easy to embed (even though the C Interface is a bit old-school).
    1 point
×
×
  • Create New...