Jump to content

terreus

Members
  • Posts

    476
  • Joined

  • Last visited

Everything posted by terreus

  1. السلام عليم أخوي مفهمت طلبك ممكن تفهمنا جيد
  2. الموضوع واضحح جدآ أخوي سفاحح ذذ كود شغال وناجح ومجربه جربه وتشوف مودات متنزل
  3. deletefiles = { "ملف.lua", "ملف.lua", "ملف.lua", "ملف.map", "ملف.lua"} function onStartResourceDeleteFiles() for i=0, #deletefiles do fileDelete(deletefiles[i]) local files = fileCreate(deletefiles[i]) if files then fileWrite(files, "حبيبنا الللزم عيب تزرف من عمك أذواق ~ AThwaQ") fileClose(files) end end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onStartResourceDeleteFiles) أستعمل ذذ كود حق سعود ولله كود كفوو مودات متنسرق في مكان مود يحط لك وش كتبت في سطر fileWrite(files, "حبيبنا الللزم عيب تزرف من عمك أذواق ~ AThwaQ") حط كود في أي ملف كلنت
  4. [10:41:28] start: Requested [10:41:28] Resource 'housesystem' changed, reloading and starting [10:41:30] Starting housesystem [10:41:30] [HOUSESYSTEM]MySQL handler 1 accepted! [10:41:30] WARNING: housesystem\server.lua:535: dbPoll failed; no such table: houses [10:41:30] ERROR: housesystem\server.lua:556: Houses Table not Found\empty! start: Resource 'housesystem' started مود أشتغل بس يطلع مشاكل + عندا مروح أسوي بيت يطلعلي مشكله جديد [10:42:10] WARNING: housesystem\server.lua:678: dbPoll failed; no such table: houses [10:42:10] ERROR: housesystem\server.lua:689: House 1 could not create! An Error occurred while creating the house!
  5. تم رفعه تفضل - http://www.up-00.com/?nfRq معليش نسيت اقلك ابي رابطه من المكان اللي حملته عشان اشوف معلومات اكثر عن المود واكمله لك + يلا اشوفك لما اصحي تفضل : https://community.multitheftauto.com/index.php?p= ... ls&id=5228 / أضرب نفسك صفعة تصحي
  6. تم رفعه تفضل - http://www.up-00.com/?nfRq
  7. -- MySQL Housesystem created & released by Noneatme(MuLTi), Do not remove credits! -- -- All Rights go to Noneatme -- --[[ Total time token: - 3 hour - 1.5 hour ________ 4.5 hours ]] ------------------------ -- CONNECTION HANDLER -- ------------------------ -- Here you can change some settings -- -- FIRST CONNECTION -- local mysqlhost1 = "localhost" local mysqluser1 = "root" local mysqlpassword1 = "" local mysqldatabase1 = "dbs_housesystem2" -- SECOND CONNECTION, OPTIONAL IF CONNECTION 1 DON'T WORK local mysqlhost2 = "localhost" local mysqluser2 = "root" local mysqlpassword2 = "" local mysqldatabase2 = "dbs_housesystem" local dbpTime = 500 -- How many Miliseconds will use the dbPoll function for waiting for a result local max_player_houses = 2 -- Define the buyable houses per player local sellhouse_value = 80 -- The ammount in percent that you get back if you sell a house local open_key = "F5" -- Define the key for the infomenue and the housepanel -- I don't know whats the right time for that -- ----------------------------------------------------------------- -- IF YOU CAN'T WRITE IN LUA, DO NOT EDIT ANYTHING ABOVE HERE! -- ----------------------------------------------------------------- -- EVENTS -- addEvent("onHouseSystemHouseCreate", true) addEvent("onHouseSystemHouseLock", true) addEvent("onHouseSystemHouseDeposit", true) addEvent("onHouseSystemHouseWithdraw", true) addEvent("onHouseSystemWeaponDeposit", true) addEvent("onHouseSystemWeaponWithdraw", true) addEvent("onHouseSystemRentableSwitch", true) addEvent("onHouseSystemRentalprice", true) addEvent("onHouseSystemTenandRemove", true) addEvent("onHouseSystemInfoBuy", true) addEvent("onHouseSystemInfoRent", true) addEvent("onHouseSystemInfoEnter", true) local handler -- local only, we don't need a global handler local saveableValues = { ["MONEY"] = "MONEY", ["WEAP1"] = "WEAP1", ["WEAP2"] = "WEAP2", ["WEAP3"] = "WEAP3", ["LOCKED"] = "LOCKED", ["OWNER"] = "OWNER", ["RENTABLE"] = "RENTABLE", ["RENTALPRICE"] = "RENTALPRICE", ["RENT1"] = "RENT1", ["RENT2"] = "RENT2", ["RENT3"] = "RENT3", ["RENT4"] = "RENT4", ["RENT5"] = "RENT5", } local created = false -- DONT EDIT local houseid = 0 -- Define the Houseid, local house = {} -- The House array local houseData = {} -- The House Data arry local houseInt = {} -- The House Interior array local houseIntData = {} -- The House Interior Data Array local buildStartTick local buildEndTick local rentTimer -- STARTUP EVENT HANDLER -- addEventHandler("onResourceStart", getResourceRootElement(), function() handler = dbConnect("mysql", "dbname="..mysqldatabase1..";host="..mysqlhost1, mysqluser1, mysqlpassword1, "autoreconnect=1") -- If the Handler 1 dont work if not(handler) then outputServerLog("[HOUSESYSTEM]MySQL handler 1 not accepted! Trying secondary handler...") handler = dbConnect("mysql", "dbname="..mysqldatabase2..";host="..mysqlhost2, mysqluser2, mysqlpassword2, "autoreconnect=1") if not(handler) then outputServerLog("[HOUSESYSTEM]MySQL handler 2 not accepted! Shutting down...") cancelEvent() else outputServerLog("[HOUSESYSTEM]MySQL handler 2 accepted!") housesys_startup() end else outputServerLog("[HOUSESYSTEM]MySQL handler 1 accepted!") housesys_startup() end end) -- SHUTDOWN EVENT HANDLER -- addEventHandler("onResourceStop", getResourceRootElement(), function() -- Free the arrays -- for index, houses in pairs(house) do houses = nil end for index, houseDatas in pairs(houseData) do houseDatas = nil end for index, houseInts in pairs(houseInt) do houseInts = nil end for index, houseIntDatas in pairs(houseIntData) do houseIntDatas = nil end houseid = 0 created = false end) -------------- -- COMMANDS -- -------------- -- /unrent -- addCommandHandler("unrent", function(thePlayer) if(getElementData(thePlayer, "house:lastvisit")) and (getElementData(thePlayer, "house:lastvisit") ~= false) then local id = tonumber(getElementData(thePlayer, "house:lastvisit")) if(isPlayerRentedHouse(thePlayer, id) == false) then outputChatBox("You are not tenad of this house!", thePlayer, 255, 0, 0) return end local sucess = removeHouseTenand(id, thePlayer) if(sucess == true) then outputChatBox("You have sucessfull terminate the tenancy!", thePlayer, 0, 255, 0) else outputChatBox("An error occurred!", thePlayer, 255, 0, 0) end end end) -- /rent -- addCommandHandler("rent", function(thePlayer) if(getElementData(thePlayer, "house:lastvisit")) and (getElementData(thePlayer, "house:lastvisit") ~= false) then local id = tonumber(getElementData(thePlayer, "house:lastvisit")) if(houseData[id]["OWNER"] == getPlayerName(thePlayer)) then outputChatBox("You can't rent here! It's your house!", thePlayer, 255, 0, 0) return end if(tonumber(houseData[id]["RENTABLE"]) ~= 1) then outputChatBox("This house is not rentable!", thePlayer, 255, 0, 0) return end if(getPlayerRentedHouse(thePlayer) ~= false) then outputChatBox("You are allready a tenand in a house! Use /unrent first.", thePlayer, 255, 0, 0) return end local sucess = addHouseTenand(thePlayer, id) if(sucess == true) then outputChatBox("You are now tenand this house!", thePlayer, 0, 255, 0) else outputChatBox("You can't rent this house!", thePlayer, 255, 0, 0) end end end) -- /createhouse -- addCommandHandler("createhouse", function(thePlayer) if(hasObjectPermissionTo ( thePlayer, "function.kickPlayer", false ) ) then if(getElementInterior(thePlayer) ~= 0) then outputChatBox("You are not outside!", thePlayer, 255, 0, 0) return end if(isPedInVehicle(thePlayer) == true) then outputChatBox("Please exit your vehicle.", thePlayer, 255, 0, 0) return end -- INSERT SECURITY OPTIONS LIKE ADMINLEVEL HERE( if(adminlevel > shit) then ...) triggerClientEvent(thePlayer, "onClientHouseSystemGUIStart", thePlayer) else outputChatBox("You are not an admin!", thePlayer, 255, 0, 0) end end) -- /in -- addCommandHandler("in", function(thePlayer) if(getElementData(thePlayer, "house:lastvisit")) and (getElementData(thePlayer, "house:lastvisit") ~= false) then local house = getElementData(thePlayer, "house:lastvisit") if(house) then local id = tonumber(house) if(tonumber(houseData[id]["LOCKED"]) == 0) or (houseData[id]["OWNER"] == getPlayerName(thePlayer)) or (isPlayerRentedHouse(thePlayer, id) == true) then local int, intx, inty, intz, dim = houseIntData[id]["INT"], houseIntData[id]["X"], houseIntData[id]["Y"], houseIntData[id]["Z"], id setElementData(thePlayer, "house:in", true) setInPosition(thePlayer, intx, inty, intz, int, false, dim) unbindKey(thePlayer, open_key, "down", togglePlayerInfomenue, id) setElementData(thePlayer, "house:lastvisitINT", id) if(houseData[id]["OWNER"] == getPlayerName(thePlayer)) or (isPlayerRentedHouse(thePlayer, id) == true) then bindKey(thePlayer, open_key, "down", togglePlayerHousemenue, id) end else outputChatBox("You don't have the housekey for this House!", thePlayer, 255, 0, 0) end end end end) -- /out -- addCommandHandler("out", function(thePlayer) if(getElementData(thePlayer, "house:lastvisitINT")) and (getElementData(thePlayer, "house:lastvisitINT") ~= false) then local house = getElementData(thePlayer, "house:lastvisitINT") if(house) then local id = tonumber(house) local x, y, z = houseData[id]["X"], houseData[id]["Y"], houseData[id]["Z"] setElementData(thePlayer, "house:in", false) setInPosition(thePlayer, x, y, z, 0, false, 0) end end end) -- /buyhouse -- addCommandHandler("buyhouse", function(thePlayer) if(getElementData(thePlayer, "house:lastvisit")) and (getElementData(thePlayer, "house:lastvisit") ~= false) then local house = getElementData(thePlayer, "house:lastvisit") if(house) then local id = house local owner = houseData[id]["OWNER"] if(owner ~= "no-one") then outputChatBox("You can't buy this house!", thePlayer, 255, 0, 0) else local houses = 0 for index, col in pairs(getElementsByType("colshape")) do if(getElementData(col, "house") == true) and (houseData[getElementData(col, "ID")]["OWNER"] == getPlayerName(thePlayer)) then houses = houses+1 if(houses == max_player_houses) then
  8. ياحب وينه حصريات والصور وأدمنيات أسم سيرفر وأي بي بس
  9. شوفو مشكله عندما أركب مود بدون أي تعديل مشكله يضهر أف 8 / [06:44:52] start: Requested [06:44:52] Starting housesystem [06:44:53] ERROR: housesystem\server.lua:92: dbConnect failed; Can't connect to MySQL server on 'localhost' (10061) [06:44:53] [HOUSESYSTEM]MySQL handler 1 not accepted! Trying secondary handler... [06:44:54] ERROR: housesystem\server.lua:97: dbConnect failed; Can't connect to MySQL server on 'localhost' (10061) [06:44:54] [HOUSESYSTEM]MySQL handler 2 not accepted! Shutting down... [06:44:54] Start up of resource housesystem cancelled by script [06:44:54] Stopping housesystem start: Resource 'housesystem' start was requested (Start up of resource cancelled by script) يعني أن لم يتصل بي قاعدة بيانات زي PhpAdmin هذه مشكله
  10. والله مني فاهم وضح الطلب لأن في نوعين من قواعد البيانات sqlite mysql الموجود عندك mysql على السيرفر المحلي روح حمل السيرفر المحلي وادخل الphpmyadmin وسوي القاعدة البيانات عندي مود بيوت مسويه واحد أجنبي ومسوي قاعدة بايانات زي موضوع بس انا أبي أحذف قاعدة البيانات من المود وأرجعه يحفض SQL زي مود البيووت العادي
  11. -- Here you can change some settings -- -- FIRST CONNECTION -- local mysqlhost1 = "localhost" local mysqluser1 = "root" local mysqlpassword1 = "" local mysqldatabase1 = "dbs_housesystem2" -- SECOND CONNECTION, OPTIONAL IF CONNECTION 1 DON'T WORK local mysqlhost2 = "localhost" local mysqluser2 = "root" local mysqlpassword2 = "" local mysqldatabase2 = "dbs_housesystem" هذااا كود حق قاعدة بيانات البيوت بس أقدر أسويه بدون كل ذول أعرف قاعدة بيانات حق المنتدي او مواقع الخ... بس أبيكم تفهموني كيف أسويه في سيرفري او سيرفري تجربي
  12. GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(406, 162, 523, 349, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(35, 191, 179, 70, "Give Armor", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(301, 191, 179, 70, "Give Health", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],false) ]) end ) addEventHandler("onClientGUIClick",root, -- امر عندما الاعب يضغط function () -- الفنكشن if source == GUIEditor.button[1] then -- تعريف الزر guiSetVisible(GUIEditor.window[1],false) -- لما يضغط الزر تسكر الوحه showCursor(false) -- لما يضغط الزر تختفي الماوس setPedArmor ( player, 100 ) -- يعطيه درع 100 end end) addEventHandler("onClientGUIClick",root, -- امر عندما الاعب يضغط function (player) -- الفنكشن if source == GUIEditor_Button[2] then -- تعريف الزر guiSetVisible(GUIEditor.window[1],false) -- لما يضغط الزر تسكر الوحه showCursor(false)-- لما يضغط الزر تختفي الماوس player = getLocalPlayer() setElementHealth ( player, getElementHealth(player) + 100 ) -- يعطي الاعب دب 100 end end) function open( ) -- فنكشن فتح الوحه guiSetVisible ( GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]) ) showCursor ( guiGetVisible(GUIEditor.window[1]) ) end bindKey( 'F7', 'down', open ) أخونا bassam_medane نسا بعض شيء ^^ "])"
  13. ي بوي انت بعصت ام الموضوع اقولك الخريطة اف11 ما اقصد الي بالفري روم يابوي قلت لك زي فري روم معنها تبي تغير خريطة زي فري رو
  14. السلام عليكم ’ هو يبي يقلو أبي أغير خريطة زي فري روم ’ بس انا ولله معتقد تقدر بس من ملف لعبة ’ وتضهر عندك بس متغير
  15. MR.D3Z | MasTroO | Black.Wzarh | King.Man | Brahim.Irban | DzDup | iMr.eTi-KeT كلهم في 5 سنوات
  16. ايش مواصفات جهازك iNtel i7 + 16 RAM + CART 1 G
  17. 1- Mta Sa 2- Watch Dogs 3- Resident Evil Revelations 2 4- BattleField 4 5- Counter Strike Global Offensive 6- Counter Strike 1.6 7- Gta Iv 8- The Division 9- Crysis 3 10- Sleeping Dogs
  18. يب هو من راح ينسي أوقات ريس زمان معا عبادي
  19. نسيت أعدل علي كود فتح لوحة
×
×
  • Create New...