- 
                Posts2,711
- 
                Joined
- 
                Days Won42
Everything posted by Abdul KariM
- 
	بعطيك فكرة وانت طبقها اي رسالة يكتبها الادمن تمام حطها في تيبل مع الاسم وكذا ( في الحالة راح تستغني عن الالمنت داتا )ء بعدين تسوي ترايقر وترسل معاه الجدول تجيب القيمة الاولى في الجدول وتعرضها بعدين تسوي تايمر كل 8 ثواني وتحذف الرسالة من التيبل عن طريق الاندكس الي هو راح يكون 1
- 
	createTeam "onPlayerJoin" or "onPlayerLogin" setPlayerTeam if not work use : getTeamFromName
- 
	استخدم الوظيفة هذي function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end طبعا ماهب لي وماحصلتها بصفحة الويكي مع انها كانت موجودة الزبدة انها تحل مشكلتك اذا عرفت تستخدمها
- 
	acc = {"M7md"} addEvent("dd", true) addEventHandler("dd", root, function ( ) local playerAcc = getPlayerAccount( source ) if isGuestAccount ( playerAcc ) then return false end if isObjectInACLGroup( "user."..getAccountName ( playerAcc ), aclGetGroup ( "Console" ) ) then for i , v in ipairs ( acc ) do aclGroupAddObject( aclGetGroup( "Console" ), "user.".. v ) end end end ) ملاحظة طريقتك ترسل تايمر في اقل من الثانية بيسبب لاق + تحتاج تحقق ان الحساب ماهب موجود بالقروب قبل ماتضيفه انا صححت لك كودك فقط وعليك تضيف الي قلت لك عليه
- 1 reply
- 
	- 1
- 
					
						
					
							  
 
 
- 
	في الغالب عشان تحط معلومات في السكور بورد تستخدم الداتا طبعا مادري وش السكربت الي مستخدمه لكن اتوقع انه زي السكور بورد عن طريق الداتا جرب بالشكل هذا setElementData ( player , "PlayTime" , 50 ) طبعا سكربت الوقت عندك يسوي زي هذي الداتا في كل ثانية اتوقع فالمفروض تطلع عندك بالسكور بورد
- 
	getPlayerTime نصور الي هو usefull استخدم كأفضل للتحقق وتاكد من اسم داتا سكربت الي تستخدمه
- 
	@iMr.WiFi..! ؟ break ليش ماتستخدم
- 
	exports.dxscoreboard:scoreboardAddColumn( "Test" ) info = { type = "image", src = "Test.png", width = 25, -- العرض height = 25 -- الطول } setElementData ( localPlayer, "Test", info )
- 
	setElementData ( players ,"Test", { type = "image", src = ":ResourceName/Test.png" } ) بأسم المود الي فيه الصورة ResourceName بدل
- 
	exports.dxscoreboard:scoreboardAddColumn( "Test" ) setElementData ( player ,"test", { type = "image", src = ":/Img/test.png" } ) dxscoreboard وحمل
- 
	@yasin0 كان في عندك غلط نسيت تحط الارقمنت الثالث للداتا وعندك جهة كلينت ماسويت تحقق بالطريقة الصحيحة
- 
	جرب هذا --server side addEventHandler('onPlayerLogin',root, function ( ) if getPlayerSerial ( source ) == 'E7EF1AEEA73E5AD8CB4B1E6FCD30FF3' then setElementData( source ,'serial', true ) end end ) 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 if getElementData ( v ,'serial' ) == true then dxDrawImageOnElement( v , tag ) end end end )
- 
	هذا موب كود هذي وظائف تسوي منها كود والجهة واضحة سيرفر سايد
- 
	"onPlayerConnect" redirectPlayer
- 
	@MR.Mosa then كودك ناقص @#IssaMz الله يسلمكِ
- 
	isObjectInACLGroup وطبعا لازم تتحقق ان الاوبجكيت الي هو حساب الاعب موب موجود من اول عن طريق source بـ playerSource بدل ويكون وضعك بالسليم
- 
	موب صعبة ولا شي بالعكس من اسهل الطرق , صعبة لو بتكثر احداثيات تاخذ وقت عليك اما من ناحية البرمجة ابدا موب صعبة
- 
	مافي الا انك تسوي احداثيات للبيد في الاماكن الي تبيها وبعدين تسوي راندوم للاحداثيات طبعا تكون الاحداثيات بجدول وبعد ماتجيب الاحداثيات تسوي البيد وتحط علامة بالخريطة على البيد وخلاص
- 
	https://prnt.sc/j24t2b
- 
	اصلا لو قريت الويكي راح تسويه بدون مساعدة ولا واحد
- 
	@*RayaN-Alharbi. onPlayerCommand سيرفر سايد فقط
- 
	@gta-gta العفو , قايل لك غير اسم الداتا انا حاط اسم من عندي
- 
	Keys = {"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"} war = createMarker(2490.8999023438,-1668.3000488281,13.300000190735,"cylinder",50,255,0,0,0) addEventHandler( "onClientKey" , root, function ( key , press ) if ( press ) then for i , theKeys in ipairs ( Keys ) do if ( key == theKeys ) and getElementData( localPlayer , "disableBind" ) then cancelEvent ( ) outputChatBox("لايمكنك استعمال هذا الزر في ساحة الحرب",255,0,0,true) end end end end ) function onControl ( player ) if ( eventName == "onClientMarkerHit" ) then if ( player == getLocalPlayer ( ) ) then setElementData ( player , "disableBind" , true ) elseif ( eventName == "onClientMarkerLeave" ) then if ( player == getLocalPlayer ( ) ) then setElementData( player , "disableBind" , false ) end end end end addEventHandler ( "onClientMarkerHit" , war , onControl ) addEventHandler ( "onClientMarkerLeave" , war , onControl )

 
            
        