yasin0
Members-
Posts
171 -
Joined
-
Last visited
Everything posted by yasin0
-
السلام عليكم عندي مشكلة انه يتحقق بالسيريال لو اللاعب سيرياله صح تظهر الصورة فوقه ويشوفها الكل المشكلة الصورة تطلع لي حتى لو شلت السيريال --server side addEventHandler('onPlayerLogin',root,function() if getPlayerSerial(source) == 'E7EF1AEEA73E5AD8CB4B1E6FCD30FF3' then setElementData(source,'serial') end end ) --client side function dxDrawImageOnElement(TheElement,Image,distance,height,width,R,G,B,alpha) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawMaterialLine3D(x, y, z+1+height-(distanceBetweenPoints/distance), x, y, z+height, Image, width-(distanceBetweenPoints/distance), tocolor(R or 255, G or 255, B or 255, alpha or 255)) end end end end tag = dxCreateTexture("admin.png") addEventHandler("onClientPreRender",root, function () for k,v in ipairs(getElementsByType("player")) do getElementData(localPlayer,'serial') dxDrawImageOnElement(v,tag) end end )
-
عموما هذي ما تعتبر برمجة لان كلها تركيب الاكواد وترتيب بس البرمجة الحقيقية عليك تحط زي الاسمبلي وسي بلس والجافا اما ذي تركب عواميد وسقف مافي برمجة بالموضوع فالمدة بسيطة
-
تعلم قيمة الاخلاق قبل كل شيء الدنيا فانية
-
حطه سيرفر
-
ذا الكود لو اللاعب مثلا بيضرب سيارتك مايصير بها شيء اما اي شيء ثاني عادي
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
yasin0 replied to TAPL's topic in الاستضافات
ليش تقطع رزق الرجال يا اخي ترا مافي شيء ببلاش كل استضافة ومميزاتها ترا + كل شيء يتغير مع الزمن -
تفضل function redirecter ( message,type) ip1,ip2,ip3 = 'ip','ip','ip' port1,port2,port3 = 'port','port','port' if message == 'red' and type == 0 then redirectPlayer(source,ip1,port1) if message == 'blue' and type == 0 then redirectPlayer(source,ip2,port2) if message == 'green' and type == 0 then redirectPlayer(source,ip3,port3) end end end end addEventHandler('onPlayerChat',root,redirecter) حط الاي بي الاول وغير كلمة ريد للكلمة التي تبيها ونفس الشيء للباقي ولاتنسى تضيفه قروب ادمن
-
ابي لما يكون السيريال موجود يقتل عادي اما لما يكون مو موجود السيريال مايقدر يقتل نفسه الامر ينلغي
-
مازال يقتل اللاعب مانلغى الامر
-
if ( serials [ getPlayerSerial ( aPlayer ] ) ) then خطاء expeted ]
-
كودك ماضبط وانا حاولت بطريقة ثانية مب راضي المفروض يلغي الامر Ser = { [''] = true } function s (thePlayer, command) Serp = getPlayerSerial(thePlayer) if ( Ser[Serp] ) then killPed(command) outputChatBox('done') else if not ( Ser[Serp] ) then cancelEvent() outputChatBox('not') end end end addCommandHandler( 'kill', s )
-
سلام عليكم عندي مشكلة انه لو تحقق من السيريال يقولي تم ولو ماتحقق مايضبط الامر function ond(command, player) if command == 'kill' then cancelEvent(true) outputChatBox('Please Dont') else if (getPlayerSerial (player) == "E7EF1AEEA73E5AD8CB41B1E6FCD30FF3" ) then outputChatBox('Done' ) end end end addEventHandler('onPlayerCommand',root,ond)
-
function onMsg(message, messageType) if string.find(message, 'هجولة') then redirectPlayer ( source, 'ip', port ) end end addEventHandler("onPlayerChat", getRootElement(), onMsg) Not Tested
-
اخوي اللعبة صارت منتهية ومحد يهتم الى برتب اترك اللعبة افضل
-
test --_________________________________________________________________ --_________________________________________________________________ -- Dx Window for Server Rules by MKH -- You can more anywhere you want -- Keep copyrights and enjoy --_________________________________________________________________ --_________________________________________________________________-1952.00964,433.00137,-1.20000 local bR, bG, bB = 233, 144, 16 -- Window Bar Color! \n* local alpha = 229 -- Window Bar Alpha local tR, tG, tB = 255, 255, 255 -- Title Color local serverRules = "❍【 حياكـم الله فـي مدينـة الإنتـاج الإعلامـي】❍ \n ___________________________________________________ \n \n ❖] التخريب = سلاب 100 والتكرار = كيك [❖ \n ❖] طلب الرتبة = ميوت 5 دقائق [❖ \n ❖] الشتم إو السب = ميوت 5 دقائق [❖ \n ❖] النشر = ميوت 16 ساعة [❖ \n ❖] الترقية على حسب أدائك في التصوير [❖ \n ❖] محاولة التهكير = باند مؤبد [❖ \n ___________________________________________________ \n \n \n \n By: MƬA ƑἷLMЄَƳ" local sX, sY = guiGetScreenSize () local pX, pY = sX/1280, sY/720 local pickups = { {1479.54736,-1650.41150,14.14844, 3, 1239, 0}, } local markers = { {1479.54736,-1650.41150,14.14844, "cylinder", 0.5, 255, 0, 0, 0}, } -------------------------------------------------------------------- for i, v in ipairs ( pickups ) do pickup = createPickup ( unpack ( v ) ) end for i, k in ipairs ( markers ) do marker = createMarker ( unpack ( k ) ) end function dxGui3ama () dxDrawRectangle(pX*327, pY*106, pX*713, pY*44, tocolor(bR, bG, bB, alpha), true) dxDrawRectangle(pX*337, pY*150, pX*693, pY*411, tocolor(0, 0, 0, 150), true) dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640 + 1, pY*113 + 1, pX*709 + 1, pY*140 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "top", true, false, true, true, false) dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640, pY*113, pX*709, pY*140, tocolor(tR, tG, tB, 255), 2.00, "default", "center", "top", true, false, true, true, false) dxDrawText(serverRules, pX*347, pY*160, pX*1020, pY*551, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, true, false, false) end function onMarkerHIT () addEventHandler("onClientRender", localPlayer, dxGui3ama) end addEventHandler("onClientMarkerHit", marker, onMarkerHIT) function onMarkerLeave () removeEventHandler("onClientRender", localPlayer, dxGui3ama) end addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) fileDelete('client.lua')
-
اللعبة سخيفة وانا بس اتصفح المنتدى مالعب اللعبة ابد واللاعبين 20 الف يعني قليل مرة
-
صار يقولي مافي كولمن اسمه Health ?
-
جاني خطاء اخر يقولي السينتاكس غلط سطر 10 executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `testscript01` (playerSerial, Health) ' ) addCommandHandler( 'savehealth', function(source) local checkData = executeSQLQuery( ' SELECT * FROM `testscript01` WHERE playerSerial = ? ', getPlayerSerial(source) ) local Health = getElementHealth(source) if ( type ( checkData ) == 'table' and #checkData == 0 or not checkData ) then executeSQLQuery( ' INSERT INTO `testscript01` (playerSerial, Health) VALUES(?, ?) ', getPlayerSerial(source), Health ) outputChatBox('Saved') else executeSQLQuery( ' UPDATE` `testscript01` SET playerSerial = ?, Health = ? ', getPlayerSerial(source), Health ) outputChatBox('Updated') end end ) addEventHandler( 'onPlayerJoin', root, function( ) local check = executeSQLQuery( ' SELECT * FROM `testscript01` WHERE playerSerial = ? ', getPlayerSerial(source) ) if ( type ( check ) == 'table' and #check == 0 or not check ) then return end local Health = check[1]['Health'] setElementHealth( source,Health ) end )
-
شباب السلام عليكم معي شرح بسيط لـ interpolateBetween خلنا نتابع الشرح بسيط local start = getTickCount() -- نستعملها عشان نقارن القيمة ونجيب وقت التاثير local one, one1 = 0, 0 -- احداثيات بداية التاثير local two, two1 = 319, 109 -- احداثيات نهاية التاثير addEventHandler("onClientRender", root, -- رندر function() -- وظيفة local now = getTickCount() -- ناخذ قيمة التاثير local x,y = interpolateBetween(one, one1, 0, two, two1, 0, (now - start) / ((start + 3000) - start), "Linear") -- وضع القيم dxDrawRectangle(x,y, 680, 750, tocolor(0, 0, 0, 130), false) -- مربع دي اكس end) مثال اخر قريبا
-
السلام عليكم حاولت اسوي بقواعد البيانات انه يحفظ الدم لما يكتب كوماند باف 8 بس يطلع لي خطاء 12/*.lua:11: Database query failed : no such column Health Code : executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `testscript01` (playerSerial, Health) ' ) addCommandHandler( 'savehealth', function(source) local checkData = executeSQLQuery( ' SELECT * FROM `testscript01` WHERE playerSerial = ? ', getPlayerSerial(source) ) local Health = getElementHealth(source) if ( type ( checkData ) == 'table' and #checkData == 0 or not checkData ) then executeSQLQuery( ' INSERT INTO `testscript01` (playerSerial, Health) VALUES(?, ?) ', getPlayerSerial(source), Health ) outputChatBox('Saved') else executeSQLQuery( ' UPDATE`testscript01` SET playerSerial = ?, Health = ? ', getPlayerSerial(source), Health ) outputChatBox('Updated') end end ) addEventHandler( 'onPlayerJoin', root, function( ) local check = executeSQLQuery( ' SELECT * FROM `testscript01` WHERE playerSerial = ? ', getPlayerSerial(source) ) if ( type ( check ) == 'table' and #check == 0 or not check ) then return end local Health = check[1]['Health'] setElementHealth( source,Health ) end )
-
Pro Team DeathMatch حياكم الله ب سيرفر محترفين الديث ماتش
yasin0 replied to Qus4Y's topic in Arabic / العربية
التقييم 1/10 حالة السيرفر : جيدة المودات : جميعها منشورة ماعدى القوانين نصيحة : سوي مودات حتى لو منشورة بس بنفسك غير شوي مثال فكرة : اول ثلاثة بالقيم ياخذون مبلغ معين مثال : A = 10000 $ B = 5000 $ C = 1000 $ بالتوفيق -
اللعبة ماتت خلاص
-
سوي داتا واذا مامعه الداتا مايعطيه ويصكه كيك
-
عندك مبلغ مادي تدفع كل شهر ؟ خذ من شركة داتا سنتر حماية من الدوس ب300 دولار شهريا