Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/02/19 in all areas

  1. سلام علكيم . اليوم سويت سكربت بسيط وحبيت اعرضه للبيع . السكربت عباره عن لليزر لـ الطلقة ينفع لـ سيرفرات الشوتر + الهنتر تقريباً . وبإمكانك ان تشتري الليزر + تغير لونه . فيديو لـ الي مافهم الفكرة . سعر السكربت 7$ باي بال أتمنى مايكلمني الا الصامل . تواصل معي خاص او سكايب حقي بالوصف .
    1 point
  2. I've heard some say that custom event triggers may be slower than element data when it comes to syncing up with clients unless you only do it when necessary rather than on each change. If you're intending on sharing the data on the server-side only, you should simply set the 4th argument to false in setElementData. Exported functions travel from one LuaVM through C/C++ into a different LuaVM and back to your resource via C/C++. This is slower than simply using element data which only goes from LuaVM to C/C++ and back to your LuaVM (LuaVM is an instance of Lua being run under the hood, separating Lua contexts between resources). As long as you don't sync set element data, it would provide better speed than custom system with exports. A custom system would probably run faster if you keep everything in one resource though, but that's at the price of modularity.
    1 point
  3. سلام عليكم ورحمة الله تعالى وبركاته كيفكم ياحلوين من زمان عنكم والله حبيت أخبر كل شخص يحبني .. إني راجع للبرمجة وراح انزل كل مود حصري بسويه بـ يدي ونقول ولكم باك يـ فخامة ؟؟
    1 point
  4. يمديك تسوي اكسبورت وتحط الاوت بوت
    1 point
  5. مود جميل , بالتوفيق
    1 point
  6. مود جميل والله من واحد مبدع مو غريب منك الحصريات لكن ورا مانشوفك تنزل عرض/بيع مودات زي قبل موداتك رهيبه لآزم تكثر منها .
    1 point
  7. Selecione toda a tabela, coloque todos os registros da tabela em um resultado e conte o número de registros que estão nesse resultado. -- connection é a conexão previamente estabelecida com o banco de dados usando dbConnect. local qh = dbQuery (connection, "SELECT * FROM table_name") -- table_name é o nome da tabela, não do banco de dados. local result = dbPoll (qh, -1) local rows = #result rows é a quantidade de linhas da tabela. (não testado) Já que vc está trabalhando com MySQL, entendo que vc já tenha conhecimento com bancos de dados.
    1 point
  8. O seu código está muito repetitivo, como você tem interesse em aprender, deixo abaixo um código otimizado usando tabelas, com ele fica muito mais fácil fazer manutenção no código. local armas = { ["brinquedo"] = {id = 12, municao = 1, preco = 500, nome = "Brinquedo"}, ["colt"] = {id = 12, municao = 300, preco = 1400, nome = "Colt 45"}, ["deagle"] = {id = 12, municao = 300, preco = 2000, nome = "Deagle"}, ["shotgun"] = {id = 12, municao = 300, preco = 2300, nome = "Shotgun"}, ["uzi"] = {id = 12, municao = 300, preco = 3200, nome = "Uzi"}, ["ak"] = {id = 12, municao = 300, preco = 4000, nome = "AK-47"}, ["sniper"] = {id = 12, municao = 300, preco = 5200, nome = "Sniper"}, ["rifle"] = {id = 12, municao = 300, preco = 9200, nome = "Rifle"} } markerWeapon = createMarker(2678.94214, -1430.34009, 15.25723, "cylinder", 1.5, 25,25,112,200) function msg(hitElement, matchingDimension) if getElementType(hitElement) == "player" and matchingDimension then outputChatBox("Olá, AMIGO,SOU DONO DO MERCADO NEGRO SE NÃO VEIO COMPRAR ALGO VAZA!.", hitElement, 255,255,255,true) for cmd,tbl in pairs(armas) do outputChatBox("/"..cmd.." = #727272 "..tbl.preco, hitElement, 255,255,255,true) end end end addEventHandler("onMarkerHit", markerWeapon, msg) function pegarArma(player, cmd) if not armas[cmd] then return end if isElementWithinMarker(player,markerWeapon) then local acc = getPlayerAccount(player) if acc and not isGuestAccount(acc) then if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("WP")) then if getPlayerMoney(player) >= armas[cmd].preco then takePlayerMoney(player, armas[cmd].preco) giveWeapon(player, armas[cmd].id, armas[cmd].municao, true) outputChatBox("Você comprou uma "..armas[cmd].nome.." com "..armas[cmd].municao.." munições.", player, 255,255,255,true) else outputChatBox("Você não tem dinheiro suficiente para comprar.", player, 255,0,0,true) end end end end end for cmd,tbl in pairs(armas) do addCommandHandler ( cmd, pegarArma ) end * não testado
    1 point
  9. addEventHandler ( "onClientGUIClick" , resourceRoot , function ( ) if ( source == checkbox_output ) then outputChatBox ( guiCheckBoxGetSelected ( source ) and "Yes" or "No" ) end end )
    1 point
  10. ممم م يسوى احسه لنه م منه فايدة
    1 point
  11. can you test below peace of code separately from your resource ? and tell what you think about it related to your code ? after command as /walk function checkPlayerMovementStyle() setTimer( function () value = {} value[1] = true value[2] = false setTimer(setPedControlState,50,2,getLocalPlayer(), "walk", value[1]) toggleControl("walk", value[2]) toggleControl("sprint", value[2]) toggleControl("jump", value[2]) end,500,1) end addCommandHandler("walk",checkPlayerMovementStyle)
    1 point
  12. ممكن يسويها كدا ابسطا _table = {} table[0] = guiCreateWindow(...) -- اللوحة الاولي مع الرو الاول table[1] = guiCreateWindow(...) -- اللوحة الثانية مع الرو الثاني -- window1 = اللوحة الاولى window2 = اللوحة الثانية function ondoubleclick() local row,_=guiGridListGetSelectedItem(gridlist) if row~= -1 then guiSetVisible( _table[ row ] ) end end addEventHandler('onClientGUIDoubleClick',root,ondoubleclick) يا اخي دي برمجة مستقبلية لا تتدخل انتا يا عدو النجاح
    1 point
  13. its working so good, the only one problem is at the line 20, local filePath... the table returns the filename without the file extension, so i used filepath = 'imagens/'..descricoes[name]..'.png' and its working, thnx, but i dont know if the real problem is fixed too with dxCreateTexture Hi loki, how are u? i didnot know this command, so i didnt tested it when the error appears, but using the userful function from iiyama, the problem is fixed for now, but ill still here seeing the memstat, thnx so much bro. guys, im thinking here... the table is in an shared type archive, the problem could be here?
    1 point
  14. لنفترض جدلاً انك حطيت جدول , إذا حطيته في ملف السيرفر كذا ما فرقت راح تكون نفس الحالة عموماً طريقة الجداول حلوه لكن أنا حبيت اوضح انو يقدر يستخدم القواعد بدون الجداول و يختصر الموضوع و أصلا ماراح يكون فيه فرق كبير اذا صار فرق راح يكون 1 فريم
    1 point
  15. Yes it is advanced stuff, for if you have a lot of players. How about you give this first a try? https://wiki.multitheftauto.com/wiki/Resource_Web_Access Basis, contents: 1, 2, 2.1 https://wiki.multitheftauto.com/wiki/HttpWrite
    1 point
  16. عندك طرق كتير واسهلها الاكونت داتا addEventHandler( 'onPlayerLogin' , root , function( old , new ) if( getAccountData( new , 'data' ) ) then return outputChatBox( 'تم الدخول مسبقا لهذا الحساب' , source , 255 , 0 , 0 , true ) end outputChatBox( 'انتا اول شخص يقوم بتسجيل الدخول في هذا الحساب' , source , 0 , 255 , 0 , true ) setAccountData( new , 'data' , true ) end )
    1 point
  17. i just gotta ask. whats up with calling everyone dear lol?
    1 point
  18. Használd a 'enter_exit'-et, mert a 'enter_passenger'-re csak bindet tudsz tenni ami a settingsbe beállított gombhoz "illeszkedik". (Use 'enter_exit', because 'enter_passenger' is an MTA hard-coded command and you can only bind a function to that.)
    1 point
  19. You know, you can host servers 100% free? That's why they allowed you to have an "MTA Server". And if anyone needs help getting there server up on it, please feel free to pm me, I have a few links to YouTube that walk you through it, and also I can explain it if you do understand, as long as you know how to work a browser and drag things into a folder, oh! And know how to copy and paste too.... Only things I can't really show you. I know, 5 year old thread, but it popped up in search, so I thought... Why not?
    1 point
  20. HostSlayer is a leading provider in VPS, Colocation and Dedicated Server hosting within the United States, we have a 24/7 ticket team along with phone support. We guarantee the lowest prices in America but with the highest performance and network capabilities. We have dedicated DDoS Protection that is re-active along with pro-active settings if you want it enabled beforehand. ------------------------------------------------------------------ [ NETWORK TEST ] ------------------------------------------------------------------ 50MB: http://lg.hostslayer.com/50MB.test 1GB: http://lg.hostslayer.com/1000MB.test Looking-Glass: HostSlayer - Looking Glass ALL PRICES IN USD OPENVZ - LINUX ========================= ECONOMY VPS 1 ========================= 1 GB Guaranteed RAM 1 vCPU Cores 25 GB Storage 250 GB Bandwidth 1 IP Address $3.99 USD / Month Order Here ========================= ECONOMY VPS 2 ========================= 2 GB Guaranteed RAM 1 vCPU Cores 50 GB Storage 250 GB Bandwidth 1 IP Address $6.99 USD / Month Order Here ========================= ECONOMY VPS 3 ========================= 3 GB Guaranteed RAM 1 vCPU Cores 75 GB Storage 500 GB Bandwidth 1 IP Address $8.99 USD / Month Order Here ========================= ECONOMY VPS 4 ========================= 4 GB Guaranteed RAM 1 vCPU Cores 100 GB Storage 500 GB Bandwidth 1 IP Address $9.99 USD / Month Order Here PREMIUM SERVERS - LINUX ========================= VPS STARTER ========================= 6 GB Guaranteed RAM 2 vCPU Cores 100 GB SSD Storage 1 TB Bandwidth 1 IP Address $14.99 USD / Month Order Here ========================= VPS INTERMEDIATE ========================= 8 GB Guaranteed RAM 3 vCPU Cores 200 GB Storage Unmetered Bandwidth 1 IP Address $19.99 USD / Month Order Here ========================= VPS ADVANCED ========================= 10 GB Guaranteed RAM 4 vCPU Cores 300 GB Storage Unmetered Bandwidth 1 IP Address $24.99 USD/ Month Order Here ========================= VPS ENTERPRISE ========================= 12 GB Guaranteed RAM 6 vCPU Cores 500 GB Storage Unmetered Bandwidth 3 IP Address $29.99 USD / Month Order Here
    1 point
  21. Greetings, Introducing FREE hosting solutions! All you have to do is post for host. Get going to the forum and start posting for your server. The forum Link : Visit www.vortexhost.me Or Click here Get your server NOW! Gamepanel and more! Free WebHosting : www.vortexweb.ga
    0 points
×
×
  • Create New...