All Activity

This stream auto-updates     

  1. Past hour
  2. GodKraken

    dbExec ERRO

    Estou tento esse erro nessa linha, como posso resolver? Obrigado a toda ajuda ❤️ dbExec(database, "CREATE TABLE IF NOT EXISTS items (id INT, itemValue TEXT, itemID INT, type TEXT, owner TEXT, slot INT, index INT)") dbExec failed; (1) near "index": syntax error
  3. Today
  4. تحريات تيس
  5. هههههههههههههههههههههههه ايش فيه ي بشمهندس ! تحريات كلب
  6. LucasMTA

    Ajuda sobre inventario

    ja tem isso na funcao e porq o codigo e grande e eu coloquei apenas o da arma function botoes ( _,state ) if DX_Inventario == true then if state == "down" then if Posicao_Mouse_Inventario(x*440, y*320, x*180, y*35) then --Armas playSound("sounds/click.mp3", false) addEventHandler("onClientRender", root, armas) removeEventHandler ( "onClientRender", getRootElement(), alimentos ) removeEventHandler ( "onClientRender", getRootElement(), utilitarios ) removeEventHandler ( "onClientRender", getRootElement(), outros ) if Posicao_Mouse_Inventario(x*445, y*445, x*80, y*20) then -- img 1 playSound("sounds/click.mp3", false) end end end end addEventHandler("onClientClick", root, botoes) Ela esta assim ali quando clico em armas ele vai na aba armas o img 1 e quando clico na imagem na aba armas mais nao esta funcionando, o player sound e so um teste pra ve se o botao ta funcionando saca
  7. NX_CI

    استفسار - حركة

    + engineLoadIFP
  8. !#DesTroyeR_,)

    استفسار - حركة

    العفو , حياك الله ولو تبي تعرف اكثر عن هذا الموضوع شوف هذا شرح سويته اول ما نزل الفنكشن
  9. #Bad_Boy,

    استفسار - حركة

    مشكور ❤️
  10. !#DesTroyeR_,)

    استفسار - حركة

    engineReplaceAnimation
  11. تحس نظرتك تبي تغريهم هذي نظرة الي يخطفو الاطفال قدام المدارس يجلسو يعطوهم هذي النظرة يغروهم فيها x D المهم هذا الكلام مزح ولا تاخذه جد ولو انه ازعجك اسف
  12. #Bad_Boy,

    استفسار - حركة

    واركبها كيف !؟ بعرف اركب الاوبجكتات والسيارات يعني.. بس دي كيف !
  13. !#DesTroyeR_,)

    استفسار - حركة

    يب تقدر , عن طريق برنامج 3D Max
  14. #Bad_Boy,

    استفسار - حركة

    السلام عليكم - هل يمكنني صنع حركة وتركيبها في ام تي اي @NX_CI @KillerX @Abdul KariM @!#DesTroyeR_,)
  15. aka Blue

    Get DX Text lines

    I want to know if it is possible or if it exists a function that returns the lines ammount of a DX Text. I'm trying to do a notification system and it would be so useful. Thanks.
  16. Sub[Z]ero

    مشكله x

    حط مكان resourcename اسم المود حق البكجات.. طيب جرب addEvent('gold_gives', true) addEventHandler( 'gold_gives' , root, function ( player ) givePlayerPackage( player, 'Gold' ) end )
  17. NX_CI

    مشكله x

    admins = 'C158E34B81CDD38BDA0CB0650E6EC692' -- لاتنسى تعدل الى السريال الخاص فيك gold_settings = { cars={ 455, 505, 512 }, weapons={ 30, 45, 31 }, money={ 10000, 13000, 30000 }, }; silver_settings = { cars={ 455, 505, 512 }, weapons={ 30, 45, 31 }, money={ 10000, 13000, 30000 }, }; wooden_settings = { cars={ 455, 505, 512 }, weapons={ 30, 45, 31 }, money={ 10000, 13000, 30000 }, }; GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.35, 0.35, 0.32, 0.42, "Packages", true) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF059140") guiSetVisible(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0.01, 0.82, 0.36, 0.06, "Wooden package : 0", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 195, 91, 59) GUIEditor.label[2] = guiCreateLabel(0.01, 0.88, 0.36, 0.06, "Silver package : 0", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 154, 158, 156) GUIEditor.label[3] = guiCreateLabel(0.01, 0.93, 0.36, 0.06, "Golden package : 0", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 250, 200, 79) GUIEditor.gridlist[1] = guiCreateGridList(0.01, 0.05, 0.58, 0.75, true, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Package", 0.9) GUIEditor.button[1] = guiCreateButton(0.61, 0.30, 0.38, 0.08, "توزيع البكجات | للأدمنية فقط", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF5AB53") guiSetEnabled(GUIEditor.button[1], false) GUIEditor.label[4] = guiCreateLabel(0.66, 0.91, 0.31, 0.06, "Created by NX_CI & Ad[N]a[N]e", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 17, 48, 138) GUIEditor.button[2] = guiCreateButton(0.61, 0.18, 0.38, 0.08, "فتح البكج", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF199A00") GUIEditor.button[3] = guiCreateButton(0.61, 0.70, 0.38, 0.08, "إغلاق", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF990000") --لوحة التوزيع GUIEditor.window[2] = guiCreateWindow(0.68, 0.41, 0.17, 0.33, "التوزيع", true) guiWindowSetMovable(GUIEditor.window[2], false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetProperty(GUIEditor.window[2], "CaptionColour", "FF2BC901") guiSetVisible(GUIEditor.window[2], false) GUIEditor.gridlist[2] = guiCreateGridList(109, 24, 202, 315, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "اللاعبون", 0.9) GUIEditor.button[5] = guiCreateButton(9, 178, 90, 27, "Silver توزيع بكج", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFD7D2D4") GUIEditor.button[6] = guiCreateButton(9, 211, 90, 27, "Gold توزيع بكج", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFFD647") GUIEditor.button[7] = guiCreateButton(9, 145, 94, 27, "Wooden توزيع بكج", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF76D11") GUIEditor.button[8] = guiCreateButton(12, 301, 29, 33, "X", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFCB0000") end ) windowVisible=function() if guiGetVisible(GUIEditor.window[1]) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) guiSetEnabled(GUIEditor.button[1], false) if timer and isTimer(timer) then killTimer(timer) end else guiSetVisible( GUIEditor.window[1], true ) showCursor( true ) guiGridListClear(GUIEditor.gridlist[1]) refreshPackageGridList() if getPlayerSerial(localPlayer) == admins then guiSetEnabled(GUIEditor.button[1], true) end timer = setTimer( function() setLabelPackagesCount() refreshPackageGridList() end, 5000, 0) end if guiGetVisible(GUIEditor.window[2]) then guiSetVisible(GUIEditor.window[2], false); guiGridListClear(GUIEditor.gridlist[2]) end end bindKey('F7', 'down', windowVisible) function setLabelPackagesCount() local count = getElementData(localPlayer,'packages') if count then guiSetText(GUIEditor.label[1],"Wooden package : "..tostring(count.wooden)) guiSetText(GUIEditor.label[2],"Silver package : "..tostring(count.silver)) guiSetText(GUIEditor.label[3],"Golden package : "..tostring(count.gold)) end end function getPlayerPackages( player ) if isElement(player) then if getElementType(player) == 'player' then local playerPacks = getElementData( player, 'packages') if playerPacks and type(playerPacks)=='table' then for k, v in ipairs (playerPacks) do return v end else return false end else return nil end else return nil end end function refreshPackageGridList() local clear=guiGridListClear(GUIEditor.gridlist[1]) if clear then local packs = getElementData(localPlayer, 'packages') if packs then if packs.wooden >= 1 or packs.silver >= 1 or packs.gold >= 1 then if packs then for i = 1, packs.wooden do local row = guiGridListAddRow ( GUIEditor.gridlist[1], i ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, 'Wooden', false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 232, 108, 0 ) end for i = 1, packs.silver do local row = guiGridListAddRow ( GUIEditor.gridlist[1], i ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, 'Silver', false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 155, 155, 155 ) end for i = 1, packs.gold do local row = guiGridListAddRow ( GUIEditor.gridlist[1], i ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, 'Gold', false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 238, 238, 123 ) end end end end end end addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local status=guiGetVisible(GUIEditor.window[2]); guiSetVisible(GUIEditor.window[2],not status); local clear = guiGridListClear(GUIEditor.gridlist[2]); if clear then guiGridListAddPlayers(); end elseif source == GUIEditor.button[8] then guiSetVisible(GUIEditor.window[2],false) guiGridListClear(GUIEditor.gridlist[2]) elseif source == GUIEditor.button[7] then row , col = guiGridListGetSelectedItem ( GUIEditor.gridlist[2] ) if row >= 0 then local playerName = guiGridListGetItemData(GUIEditor.gridlist[2], row, 1) if playerName and playerName ~= nil then local player = getPlayerFromName(playerName); triggerServerEvent( 'wooden_gives', localPlayer, player ) end else return outputChatBox('الرجاء تحديد اللاعب من القائمة', 255, 0 , 0) end elseif source == GUIEditor.button[5] then row , col = guiGridListGetSelectedItem ( GUIEditor.gridlist[2] ) if row >= 0 then local playerName = guiGridListGetItemData(GUIEditor.gridlist[2], row, 1) if playerName and playerName ~= nil then local player = getPlayerFromName(playerName); triggerServerEvent( 'silver_gives', localPlayer, player ) end else return outputChatBox('الرجاء تحديد اللاعب من القائمة', 255, 0 , 0) end elseif source == GUIEditor.button[6] then row , col = guiGridListGetSelectedItem ( GUIEditor.gridlist[2] ) if row >= 0 then local playerName = guiGridListGetItemData(GUIEditor.gridlist[2], row, 1) if playerName and playerName ~= nil then local player = getPlayerFromName(playerName); triggerServerEvent( 'gold_gives', localPlayer, player ) end else return outputChatBox('الرجاء تحديد اللاعب من القائمة', 255, 0 , 0) end elseif source == GUIEditor.button[3] then windowVisible() elseif source == GUIEditor.button[2] then guiSetEnabled(GUIEditor.button[2],false) setTimer(guiSetEnabled, 5000, 1, GUIEditor.button[2],true) local row, col = guiGridListGetSelectedItem(GUIEditor.gridlist[1]); if row >= 0 then local package = guiGridListGetItemText( GUIEditor.gridlist[1], row, 1 ); if package then if package == "Wooden" or package == "Silver" or package == "Gold" then triggerServerEvent("givePlayerGift", localPlayer, package); end end else return outputChatBox("الرجاء إختيار البكج *", 255,0,0); end end end ) function guiGridListAddPlayers() for k, v in ipairs (getElementsByType("player"))do local names = getPlayerName(v) local row = guiGridListAddRow( GUIEditor.gridlist[2] ) local text = guiGridListSetItemText( GUIEditor.gridlist[2], row, 1, string.gsub(names,'#%x%x%x%x%x%x',''), false, false ) local data = guiGridListSetItemData(GUIEditor.gridlist[2], row, 1, names) guiGridListSetItemColor(GUIEditor.gridlist[2], row, 1, 255,255,0) end end -- Server local packs_kills = { ['Wooden']=30, ['Silver']=40, ['Gold']=50, } for k, v in ipairs ( getElementsByType('player') ) do removeElementData(v,"packages") end function calcKill( _, killer ) local data = getElementData( killer , 'kills' ); if data and type(data) == "number" and data ~= 0 then if data ~= packs_kills['Gold'] and data ~= packs_kills['Silver'] and data ~= packs_kills['Wooden'] then setElementData( killer, 'kills', data+1 ) elseif data == packs_kills['Wooden'] then setElementData( killer, 'kills', data+1 ) givePlayerPackage( killer, 'Wooden' ) elseif data == packs_kills['Silver'] then setElementData( killer, 'kills', data+1 ) givePlayerPackage( killer, 'Silver' ) elseif data == packs_kills['Gold'] then setElementData( killer, 'kills', 1 ) givePlayerPackage( killer, 'Gold' ) end else setElementData( killer, 'kills', 1 ) end end addEventHandler('onPlayerWasted', root, calcKill) function givePlayerPackage( player , package ) if player and package then if isElement( player ) then if type( package ) == 'string' then if package == 'Wooden' or package == 'Silver' or package == 'Gold' then local packs = getElementData( player, 'packages' ) if type(packs) == 'table' then local Wooden=packs.wooden local Silver=packs.silver local Gold=packs.gold if Wooden and Silver and Gold then if package == 'Wooden' then setElementData(player,'packages',{wooden=Wooden+1, silver=Silver, gold=Gold}) outputChatBox("You got a Wooden package",player) elseif package == 'Silver' then setElementData(player,'packages',{wooden=Wooden, silver=Silver+1, gold=Gold}) outputChatBox("You got a Silver package",player) elseif package == 'Gold' then setElementData(player,'packages',{wooden=Wooden, silver=Silver, gold=Gold+1}) outputChatBox("You got a Golden package",player) end end else if package == 'Wooden' then setElementData(player,'packages',{wooden=1, silver=0, gold=0}) outputChatBox("You got a Wooden package",player) elseif package == 'Silver' then setElementData(player,'packages',{wooden=0, silver=1, gold=0}) outputChatBox("You got a Silver package",player) elseif package == 'Gold' then setElementData(player,'packages',{wooden=0, silver=0, gold=1}) outputChatBox("You got a Golden package",player) end end end end end end end function takePlayerPackage( player, package ) if player and package then if isElement( player ) then if type( package ) == 'string' then if package == 'Wooden' or package == 'Silver' or package == 'Gold' then local packs = getElementData( player, 'packages' ) if type(packs) == 'table' then local Wooden=packs.wooden local Silver=packs.silver local Gold=packs.gold if Wooden and Silver and Gold then if package == 'Wooden' then if Wooden > 0 then setElementData(player,'packages',{wooden=Wooden-1, silver=Silver, gold=Gold}) outputChatBox("You have lost a Wooden package",player) end elseif package == 'Silver' then if Silver > 0 then setElementData(player,'packages',{wooden=Wooden, silver=Silver-1, gold=Gold}) outputChatBox("You have lost a Silver package",player) end elseif package == 'Gold' then if Gold > 0 then setElementData(player,'packages',{wooden=Wooden, silver=Silver, gold=Gold-1}) outputChatBox("You have lost a Golden package",player) end end end else if package == 'Wooden' then setElementData(player,'packages',{wooden=0, silver=0, gold=0}) outputChatBox("You have lost a Wooden package",player) elseif package == 'Silver' then setElementData(player,'packages',{wooden=0, silver=0, gold=0}) outputChatBox("You have lost a Silver package",player) elseif package == 'Gold' then setElementData(player,'packages',{wooden=0, silver=0, gold=0}) outputChatBox("You have lost a Golden package",player) end end end end end end end function wooden_gives( player ) givePlayerPackage( player, 'Wooden' ) end addEvent("wooden_gives",true) addEventHandler("wooden_gives", root, wooden_gives) function silver_gives( player ) givePlayerPackage( player, 'Silver' ) end addEvent("silver_gives",true) addEventHandler("silver_gives", root, silver_gives) function gold_gives( player ) givePlayerPackage( player, 'Gold' ) end addEvent("gold_gives",true) addEventHandler("gold_gives", root, gold_gives) function givePlayerGift( package ) if package == "Wooden" then takePlayerPackage( source, package ) randomMoney=math.random(1000, 5000) givePlayerMoney( source, randomMoney ); -- جائزة بكج ودن outputChatBox("Open package has been succesfully and you won : $"..tostring(randomMoney), source, 204,102,0) elseif package == "Silver" then takePlayerPackage( source, package ); randomMoney=math.random(5000, 10000) givePlayerMoney( source, randomMoney ); -- جائزة بكج السلفر outputChatBox("Open package has been succesfully and you won : $"..tostring(randomMoney), source, 155,155,155) elseif package == "Gold" then takePlayerPackage( source, package ); randomMoney=math.random(10000, 30000) givePlayerMoney( source, randomMoney ); -- جائزة بكج القولد outputChatBox("Open Golden package has been succesfully and you won : $"..tostring(randomMoney), source, 255,255,0) end end addEvent("givePlayerGift",true) addEventHandler("givePlayerGift", root, givePlayerGift)
  18. DmAr511

    مشكله x

    ما في :]
  19. السلام عليكم بدون مقدمات كل واحد يشاركنا بصورهـ لوجهه هذا أنا البندر : ملاحظة مهمة : نفسي أشوف وجه تابل المشرف بالمنتدى
  20. NX_CI

    Send client-side data on quit

    How you should save it ? i think you need to save it by the player serial because you could get the details by player serial if he was joined the server. Or ! you may use an account data. How you want to save it?
  21. table={} "onClientRender" triggerServerEvent takePlayerScreenShot triggerClientEvent table.insert table.remove dxCreateTexture dxDrawImage
  22. momar363

    مطلوب استضافه ممتازة

    لو بدك خادم معي خادم شريه سنه من هوستنجر
  23. momar363

    مشكلة في خادم

    قمت بعمل سيرفر اول سيرفر عمل بنجاح ولكن تاني سيرفر يظهر مشكله وهي * Failed querying the server. مممكن حل رابط تحديث الي استخدمه http://cairoo-host.com/mta1.5.6.zip https://a.top4top.net/p_1206qdncc1.png والعلم انه تحديث 1.5.6 والاي بي مكتوب غلط !ماهو الحل ؟
  24. لا ما اقصد زر Spectate في الادمنية انا ابي اسجل مقطع لشاشة اللاعب عشان اعرف انه ممكن يشوف من ورا الجدار لو انه يستخدم ايمبوت او اي هاك اخر
  25. تقدر تسوي مُراقبة حية للشخص من خلال setCameraTarget( thePlayer, targetPlayer )
  26. Sub[Z]ero

    مشكله x

    - givePlayerPackage اذا مو موجود في ملفات السيرفر حقك فلازم تسوي exports.resourcename:givePlayerPackage( player, 'gold')
  27. رأي موافقك، للأسف اغلب العرب يتجهزون السيرفرات القديمة فقط لأنها كانت تكذب نفس الكذبة مع ذالك يوم بعد يوم باراديس يتطور وراح نثبت ذا شيء بعد ثلاثة أشهر.
  1. Load more activity