ايهاب Posted November 21, 2015 Share Posted November 21, 2015 سلام عليكم ا انا غيرت بس مود الاحتلال بس الجديد الى عندى مش مدى مثال لطريق اضافة الاراضى اكواد بس ناقص اضيف انا الاراضى function addTurf(x,y,z,sizeX,sizeY,red,green,blue,owner) -- Load all turfs if not owner then owner = "None" end local colCuboid = createColCuboid(x, y, z-30, sizeX, sizeY, z+30) local radArea = createRadarArea(x, y, sizeX, sizeY, red, green, blue, 135) addEventHandler("onColShapeHit", colCuboid, onTurfEnter) addEventHandler("onColShapeLeave", colCuboid, onTurfLeave) setElementData(colCuboid, "owner", owner) setElementData(radArea, "owner", owner) setElementData(colCuboid, "posx", x) setElementData(colCuboid, "posy", y) setElementData(colCuboid, "sizex", sizeX) setElementData(colCuboid, "sizey", sizeY) setElementData(colCuboid, "area", radArea) set بس على ما اعتقد هى دى الى ليها علاقة بى اضافة الاراضى function createTurf(player, cmd, sx, sy) local acc = getPlayerAccount(player) if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("Admin")) then if not sx then sx = math.random(50,250) end if not sy then sy = math.random(50,250) end local x,y,z = getElementPosition(player) dbExec(db, "INSERT INTO turfs VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)", math.floor(x), math.floor(y), math.floor(z), math.floor(sx), math.floor(sy), 255, 255, 255, "None") addTurf(x,y,z,sx,sy,255,255,255,"None") exports.GTWtopbar:dm("TURFS: A new turf was added successfully", player, 0, 255, 0) end end addCommandHandler("addturf", createTurf) دى احدثيات مكان You are at (1462.74365 1314.43579 10.82031) You are at (1483.99304 1511.78088 10.82031) قطعتين ارض حد يدينى مثال لكتابتها فى الكود لانى بكتبها المود مش بيشتغل Link to comment
ايهاب Posted November 21, 2015 Author Share Posted November 21, 2015 --------- [--------- ------------------------------------------------- Link to comment
ايهاب Posted November 21, 2015 Author Share Posted November 21, 2015 اطرح الكود كامل الباقى اكواد برمجة دى function createTurf(player, cmd, sx, sy) انشاء ارض بس انا مش عارف اكتب الاحدثيات فهمت Link to comment
ايهاب Posted November 21, 2015 Author Share Posted November 21, 2015 function addTurf(x,y,z,sizeX,sizeY,red,green,blue,owner) -- Load all turfs if not owner then owner = "None" end local colCuboid = createColCuboid(x, y, z-30, sizeX, sizeY, z+30) local radArea = createRadarArea(x, y, sizeX, sizeY, red, green, blue, 135) addEventHandler("onColShapeHit", colCuboid, onTurfEnter) addEventHandler("onColShapeLeave", colCuboid, onTurfLeave) setElementData(colCuboid, "owner", owner) setElementData(radArea, "owner", owner) setElementData(colCuboid, "posx", x) setElementData(colCuboid, "posy", y) setElementData(colCuboid, "sizex", sizeX) setElementData(colCuboid, "sizey", sizeY) setElementData(colCuboid, "area", radArea) setElementData(colCuboid, "payment", math.floor((sizeX*sizeY)/20)) end -- Initialize and load turfs from database on startup function loadTurfs(query) local result = dbPoll(query, 0) if result then for _, row in ipairs(result) do addTurf(row["X"], row["Y"], row["Z"], row["sizeX"], row["sizeY"], row["red"], row["green"], row["blue"], row["owner"]) end end end -- Whenever a player dies inside a turf Link to comment
Rockyz Posted November 21, 2015 Share Posted November 21, 2015 (edited) turfS = { { PosX = 1462.74365, PosY = 1314.43579, PosZ = 10.82031, SizeX = 10, SizeY = 10, R = 255, B = 255, G = 255 }, { PosX = 1483.99304, PosY = 1511.78088, PosZ = 10.82031, SizeX = 10, SizeY = 10, R = 255, B = 255, G = 255 } } addCommandHandler ( "LetsTURF", function ( ) for _, v in ipairs ( turfS ) do addTurf ( v["PosX"], v["PosY"], v["PosZ"], v["SizeX"], v["SizeY"], v["R"], v["G"], v["B"] ) end end ) Edited November 21, 2015 by Guest Link to comment
ايهاب Posted November 21, 2015 Author Share Posted November 21, 2015 ضفت الكود لى الاسف مفيش شى وبعت رسالة لصاحب المود عن كيفية اضافة اراضى Link to comment
Rockyz Posted November 21, 2015 Share Posted November 21, 2015 كتبت في اف 8 LetsTURF ؟ Link to comment
ايهاب Posted November 21, 2015 Author Share Posted November 21, 2015 ظهرت بس مش بيحتل مش عارف السبب اية هستنى رد صاحب المودمشكور روك Link to comment
Rockyz Posted November 21, 2015 Share Posted November 21, 2015 العفو ^ تاكد من القروب سيستم Link to comment
ايهاب Posted November 23, 2015 Author Share Posted November 23, 2015 العفو ^ تاكد من القروب سيستم دة كلام صاحبة مش فاهم يقصد اية انى اشترى الملف You can buy them from ThePenguin, turfs are located in a SQLite database so you just need to buy the turfs.db file from him and copy it into the resource to get all the turfs. The other one can also be bought from ThePenguin, it's a little more expensive than the turfs but as soon you have that resources files they will work out of the box. Link to comment
</Mr.Tn6eL> Posted November 23, 2015 Share Posted November 23, 2015 الكود اللي حاطه عبارة عن كوماند باف 8 عشان تضيف اماكن اكتب كذا باف 8 addturf 200 200 راح يسوي ارض عرضها 200 وطولها 200 بمكانك انت Link to comment
ايهاب Posted November 26, 2015 Author Share Posted November 26, 2015 بكتب مش بيحصل شى خلاص راح اشوف شى غيروة Link to comment
Rockyz Posted November 26, 2015 Share Posted November 26, 2015 addturf 200 200 0 255 0 Link to comment
ايهاب Posted November 27, 2015 Author Share Posted November 27, 2015 addturf 200 200 0 255 0 بص خلاص مش عايزة نفس المشكلة بس دة كنت عايزة عشان بيحتاج جروب سيتسم تقريبا والجروب سيستم فى منة مجانى كتير وحلو فى واحد تانى بس بيحتاج جروب جانج بس شغال تمام التمام على العموم http://www.up-00.com/?6biL دة رابط المود تعال نتحدى بعض انك هتقدر تشغلة ويحتل ولا لاء ض1 Link to comment
a7zan Posted November 29, 2015 Share Posted November 29, 2015 شوف ترى لما تحمل مودات GTW فيه حق الاحتلال وفيه حق الجروبات اعتقد فـ اذا حصلت مود القروبات ركبه GTWلان تقريباً الاحتلال مبرمج على مود القروبات الخاص بـ Link to comment
ايهاب Posted November 29, 2015 Author Share Posted November 29, 2015 شوفترى لما تحمل مودات GTW فيه حق الاحتلال وفيه حق الجروبات اعتقد فـ اذا حصلت مود القروبات ركبه GTWلان تقريباً الاحتلال مبرمج على مود القروبات الخاص بـ انا خت منهم معرض السيارات بس لانى مكنتش لاقية ض1 ومعايا مود احتلا ل تانى مجانى غير بتاعهم بس كا نفسى اخد بتاعهم لان الى معايا بيشتغل على مود جروبات جانج سيستم ودول مش منتشرين Link to comment
Mr.Ronaldo Posted December 13, 2015 Share Posted December 13, 2015 العفو ^ تاكد من القروب سيستم دة كلام صاحبة مش فاهم يقصد اية انى اشترى الملف You can buy them from ThePenguin, turfs are located in a SQLite database so you just need to buy the turfs.db file from him and copy it into the resource to get all the turfs. The other one can also be bought from ThePenguin, it's a little more expensive than the turfs but as soon you have that resources files they will work out of the box. يقول انك لازم تشتري ملف turfs.db من صاحب المود لانه مبرمج على SQLite Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now