Jump to content

Faycel...

Members
  • Posts

    21
  • Joined

  • Last visited

About Faycel...

  • Birthday 26/02/1995

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Faycel...'s Achievements

Civilian

Civilian (7/54)

1

Reputation

  1. مانتبهت له حبيت مساعدة فقط --[[ [ - ] = Removed : [ + ] Added : [ ! ] Fixed FILE : inventory_server.lua TODO : Notes : Last edit : 05/03/2020 [Simple] + Fuel Stations to inventory + Restaurants to inventory + Vehicles to inventory ( Mustang, Car ) 23/02/2020 [Simple] + Skins to inventory + Group skins to inventory ]] local PACKS = { "Gold Package", "Silver Package", "Bronze Package" } local CarIDs = { 477, 438 } local RM = exports["ResturantManager"] local FM = exports["FuelManager"] addEventHandler ( "onResourceStart", resourceRoot, function () vehicle_db = dbConnect ( "sqlite", ":VehicleSystem/database-edited.db" ) if vehicle_db then outputDebugString ('[ USER PANEL ] Connected success to Vehicles Database') end package_db = dbConnect ( "sqlite", ":PackagesSystem/Packages.db" ) if package_db then outputDebugString ('[ USER PANEL ] Connected success to Packages Database') end skins_db = dbConnect ( "sqlite", ":SkinsManagement/Database.db" ) if skins_db then outputDebugString ('[ USER PANEL ] Connected success to Skins Database') end end) addEvent ( 'UI:onInventoryTabClientSelect', true ) function onInventoryTabClientSelect () local ITEMS = {} for i,v in ipairs ( dbPoll(dbQuery(package_db, "SELECT * FROM Packages WHERE account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if tonumber(v['number']) > 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = tostring ( PACKS[tonumber(v['number'])] ) , ['ITEM_AMMOUNT'] = v['ammount'], ['ITEM_TYPE'] = 'package'}) end end for i,v in ipairs ( dbPoll(dbQuery(skins_db, "SELECT * FROM SkinsOwners WHERE account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if v['account'] then local SkinInfo = dbPoll(dbQuery(skins_db, "SELECT * FROM Skins WHERE name = ?", v['skin']), -1) if SkinInfo and #SkinInfo ~= 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = v['skin'] , ['ITEM_AMMOUNT'] = SkinInfo[1]['id'], ['ITEM_TYPE'] = 'skin'}) end end end if RM:isPlayerHasResturant(getPlayerSerial(source)) then table.insert ( ITEMS, { ['ITEM_NAME'] = 'Restaurant' , ['ITEM_AMMOUNT'] = 1, ['ITEM_TYPE'] = 'restaurant'}) end if FM:isPlayerHasFuel(getPlayerSerial(source)) then table.insert ( ITEMS, { ['ITEM_NAME'] = 'Fuel station' , ['ITEM_AMMOUNT'] = 1, ['ITEM_TYPE'] = 'fuel'}) end --[[ for i,v in ipairs ( dbPoll(dbQuery(skins_db, "SELECT * FROM PaintOwners WHERE account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if v['account'] then local SkinInfo = dbPoll(dbQuery(skins_db, "SELECT * FROM Paintjobs WHERE name = ?", v['skin']), -1) if SkinInfo and #SkinInfo ~= 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = v['skin'] , ['ITEM_AMMOUNT'] = SkinInfo[1]['id'], ['ITEM_TYPE'] = v['type']}) end end end --]] if getElementData ( source, 'Group' ) then for i,v in ipairs ( dbPoll(dbQuery(skins_db, "SELECT * FROM SkinsOwners WHERE account = ?", getElementData ( source, 'Group' )), -1) ) do if v['account'] then local SkinInfo = dbPoll(dbQuery(skins_db, "SELECT * FROM Skins WHERE name = ?", v['skin']), -1) if SkinInfo and #SkinInfo ~= 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = v['skin'] , ['ITEM_AMMOUNT'] = SkinInfo[1]['id'], ['ITEM_TYPE'] = 'skin'}) end end end end for i,v in ipairs ( dbPoll(dbQuery(vehicle_db, "SELECT * FROM VehicleList WHERE Account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if isAllowedModel ( tonumber ( v['Model'] ) ) then table.insert ( ITEMS, { ['ITEM_NAME'] = getVehicleNameFromModel( v['Model'] ) , ['ITEM_AMMOUNT'] = 1, ['ITEM_TYPE'] = 'vehicle'}) end end triggerClientEvent ( source, 'UI:UpdateClientPlayerItems', source, ITEMS ) end addEventHandler ( 'UI:onInventoryTabClientSelect', root, onInventoryTabClientSelect ) function isAllowedModel ( model ) for i,v in ipairs ( CarIDs ) do if v == model then return true end end return false end
  2. مافهمت المشكل يقلي هيك ERROR: UserPanel/inventory_server.lua:79: bad argument #1 to 'ipairs' (table expected, got boolean) --[[ [ - ] = Removed : [ + ] Added : [ ! ] Fixed FILE : inventory_server.lua TODO : Notes : Last edit : 05/03/2020 [Simple] + Fuel Stations to inventory + Restaurants to inventory + Vehicles to inventory ( Mustang, Car ) 23/02/2020 [Simple] + Skins to inventory + Group skins to inventory ]] local PACKS = { "Gold Package", "Silver Package", "Bronze Package" } local CarIDs = { 477, 438 } local RM = exports["ResturantManager"] local FM = exports["FuelManager"] addEventHandler ( "onResourceStart", resourceRoot, function () vehicle_db = dbConnect ( "sqlite", ":VehicleSystem/database-edited.db" ) if vehicle_db then outputDebugString ('[ USER PANEL ] Connected success to Vehicles Database') end package_db = dbConnect ( "sqlite", ":PackagesSystem/Packages.db" ) if package_db then outputDebugString ('[ USER PANEL ] Connected success to Packages Database') end skins_db = dbConnect ( "sqlite", ":SkinsManagement/Database.db" ) if skins_db then outputDebugString ('[ USER PANEL ] Connected success to Skins Database') end end) addEvent ( 'UI:onInventoryTabClientSelect', true ) function onInventoryTabClientSelect () local ITEMS = {} for i,v in ipairs ( dbPoll(dbQuery(package_db, "SELECT * FROM Packages WHERE account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if tonumber(v['number']) > 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = tostring ( PACKS[tonumber(v['number'])] ) , ['ITEM_AMMOUNT'] = v['ammount'], ['ITEM_TYPE'] = 'package'}) end end for i,v in ipairs ( dbPoll(dbQuery(skins_db, "SELECT * FROM SkinsOwners WHERE account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if v['account'] then local SkinInfo = dbPoll(dbQuery(skins_db, "SELECT * FROM Skins WHERE name = ?", v['skin']), -1) if SkinInfo and #SkinInfo ~= 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = v['skin'] , ['ITEM_AMMOUNT'] = SkinInfo[1]['id'], ['ITEM_TYPE'] = 'skin'}) end end end if RM:isPlayerHasResturant(getPlayerSerial(source)) then table.insert ( ITEMS, { ['ITEM_NAME'] = 'Restaurant' , ['ITEM_AMMOUNT'] = 1, ['ITEM_TYPE'] = 'restaurant'}) end if FM:isPlayerHasFuel(getPlayerSerial(source)) then table.insert ( ITEMS, { ['ITEM_NAME'] = 'Fuel station' , ['ITEM_AMMOUNT'] = 1, ['ITEM_TYPE'] = 'fuel'}) end --[[ for i,v in ipairs ( dbPoll(dbQuery(skins_db, "SELECT * FROM PaintOwners WHERE account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if v['account'] then local SkinInfo = dbPoll(dbQuery(skins_db, "SELECT * FROM Paintjobs WHERE name = ?", v['skin']), -1) if SkinInfo and #SkinInfo ~= 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = v['skin'] , ['ITEM_AMMOUNT'] = SkinInfo[1]['id'], ['ITEM_TYPE'] = v['type']}) end end end --]] if getElementData ( source, 'Group' ) then for i,v in ipairs ( dbPoll(dbQuery(skins_db, "SELECT * FROM SkinsOwners WHERE account = ?", getElementData ( source, 'Group' )), -1) ) do if v['account'] then local SkinInfo = dbPoll(dbQuery(skins_db, "SELECT * FROM Skins WHERE name = ?", v['skin']), -1) if SkinInfo and #SkinInfo ~= 0 then table.insert ( ITEMS, { ['ITEM_NAME'] = v['skin'] , ['ITEM_AMMOUNT'] = SkinInfo[1]['id'], ['ITEM_TYPE'] = 'skin'}) end end end end for i,v in ipairs ( dbPoll(dbQuery(vehicle_db, "SELECT * FROM VehicleList WHERE Account = ?", getAccountName ( getPlayerAccount ( source ) )), -1) ) do if isAllowedModel ( tonumber ( v['Model'] ) ) then table.insert ( ITEMS, { ['ITEM_NAME'] = getVehicleNameFromModel( v['Model'] ) , ['ITEM_AMMOUNT'] = 1, ['ITEM_TYPE'] = 'vehicle'}) end end triggerClientEvent ( source, 'UI:UpdateClientPlayerItems', source, ITEMS ) end addEventHandler ( 'UI:onInventoryTabClientSelect', root, onInventoryTabClientSelect ) function isAllowedModel ( model ) for i,v in ipairs ( CarIDs ) do if v == model then return true end end return false end
  3. يعطيك العافية يا غالي بجرب و اشوف
  4. السلام عليكم المشكلة انو وقت احط ذا كود في ملف Server و اشغله في سيرفر يضل حوالي 5 او 6 دقايق بعدين يجي لاق مدري بنق او فبس تجي Network Trouble بعدين يطفي السيرفر تلقائي مافهمت المشكلة في ذا كود addEventHandler("onResourceStart", root, function() startX, startY, startZ = 3344, -664.40002441406, 11.300000190735 endX, endY, endZ = 3344, -664.40002441406, 1.2999999523163 rotX, rotY, rotZ = 0, 0, 90 OB = createObject(2669, startX, startY, startZ, rotX, rotY, rotZ) Speed = 10000 MoveSE("End") end ) function MoveSE(Object) if Object == "End" then moveObject(OB, Speed, endX, endY, endZ) setTimer(function() MoveSE("Start") end,15000,0) elseif Object == "Start" then moveObject(OB, Speed, startX, startY, startZ) setTimer(function() MoveSE("End") end,15000,0) end end
  5. فهمتك .يعني المفروض مني اخاف حين خخ تحشر نفسك يا خبير ؟
  6. يا هاذا ..اذا ماتعرف لعبة free fire لكان واش تعرف ام تي اي بس نجوم مثلها بضبط احتمال صور حاطينها من اللعبة الي برمج المود يعرف على شو بحكي
  7. هي البرمجة او لا الاخر قله OnPlayerJoin خخ كيف يخش و يجي دمه 200 لازم يرسبن اول و يجي دمه مثل يبي كفو عليك نكست ...
  8. تحسها نجوم رمادية الي فيها جوائز مثل لعبة free fire خخخ الي في user panel
  9. ناقص كود و يعطيكم العافية setElementData? كود سهل مدري اذا احط setElementData(prizes, هيك شيء
  10. للاسف حتى عدلت عليه اخطاء كانت شوي و ماشتغل !! ذي الكودات حاليا function table.random ( theTable ) return theTable[math.random ( #theTable )] end Money = 20000 XP = 50 Launcher = 10 W = { "Money","XP","Launcher" } function RandomPrizes() local randomPlayer = getRandomPlayer ( ) local Data = table.random(W) exports["guimessages"]:outputServer(root, "#65E3FC[Random Prizes] #00FF00".. getPlayerName ( randomPlayer ) .." #FFFFFF Has Won #15FF00[#66AA0D$".. Data .."#15FF00].", 0, 255, 0) exports["guimessages"]:outputServer(root, "#65E3FC[Random Prizes] #00FF00[#66AA0D".. getPlayerName ( randomPlayer ) .." #15FF00]#FFFFFF Has Won #15FF00[#66AA0D$".. Data .."#15FF00].", 0, 255, 0) setElementData(randomPlayer, ""..Data.."", (getElementData(randomPlayer, ""..Data.."") or 0) + Data) playSoundFrontEnd(5) end setTimer(RandomPrizes,*1,1000,1) setTimer(RandomPrizes,3000,1)
  11. تفضل ,ابهرنا ... function RandomPrizes() local players = getElementsByType ( "player" ) local randomPlayer = players[math.random(#players)] local Data = math.random("Money","XP","Launcher") exports["guimessages"]:outputServer(root, "#65E3FC[Random Prizes] #00FF00Player ".. getPlayerName ( randomPlayer ) .." #15FF00[#66AA0D".. XP .." XP#15FF00]#FFFFFF Has Won #15FF00[#66AA0D$".. Data .."#15FF00].", 0, 255, 0) exports["guimessages"]:outputServer(root, "#65E3FC[Random Prizes] #00FF00You Have Got #15FF00[#66AA0D".. getPlayerName ( randomPlayer ) .." #15FF00]#FFFFFF Has Won #15FF00[#66AA0D$".. Data .."#15FF00].", 0, 255, 0) setElementData(randomPlayer, "Data", (getElementData(randomPlayer, "Data") or 0) + Data) playSoundFrontEnd(5) end setTimer(RandomPrizes,*60,1000,0) setTimer(RandomPrizes,3000,1)
  12. السلام عليكم ... مثلا نبي نسوي مود جوائز العشوائية في الشات نبيها تجي كل ساعة جوائز تجي لللاعب الي يختاره المود و واش فاز مود يختار 2 لاعبين مب واحد كود مطلوب هو الي يسوي random.math للداتا مثلا رح اسوي كم داتا مب وحدة بس حق اكس بي و لفل و شيء اخر و نبي داتا يختاره المود هو و 2 لاعبين فكر مليح و جاوب ...
  13. تم الرجوع من جديد و باقوى حصريات ... توزيعات كبيرة و فعليات مسابقات - كل يوم خميس و جمعة و سبت ... شعار السيرفر [Z.M] خاص بادمنية بس اشياء كثير مثل اف1 او اف2 او اف5 او اف9 باقي اشياء حلوة كثير و بخليها مفاجئة لكم لا تحكمو على اي سيرفر قبل تخشو له و تشوفو اشياء ... بالتوفيق -- قريبا ديسكورد للسيرفر !! Soon Discord !! -- اي بي السيرفر : mtasa://94.130.53.110:35252 Ip Server For Game : mtasa://94.130.53.110:35252 -- اي بي التيم سبيك خاص بسيرفر الرسمي : 54.36.195.41:17603 Ip TeamSpeak : 54.36.195.41:17603 بعض الصور : لوحة الفيب الخيالية ...
  14. Gta-Avible GangWars X3 | تم الرجوع من جديد و حصريات قبل اول حياكم الله [Gta-Av] تم الرجوع؟؟ حصريات الان خخ سيبك من سيرفرات المنوبة و الرتب و تعال و شوف بس حياكم الله [Gta-Av] اي بي السيرفر | mtasa://89.36.211.20:27004 | IP Server كل يوم جمعة بأذن الله توزيعات - مسابقات - فتح شوب - فتح السوق السوداء ...# تيم سبيك قريبااا صيانة حين منتدى عادي و مجاني يعني قريبا واحد اخر ذا مؤقت www.gta-avible.yoo7.com * Images | الصور *
×
×
  • Create New...