KillerX Posted August 21, 2018 Share Posted August 21, 2018 (edited) 8 minutes ago, MR.Nour said: ماعرفت وين احط رقم الدنميشن + ماعرفت ادمجها مع الكتابة الي تظهر على الشاشة تقدر تستخدم السكريبت دا -- Server addCommandHandler('Dim', function(player,command,...) for i,v in ipairs(getElementsByType('player')) do if (getElementDimension(v) == رقم الدمينشن اللي تبيه) then Msg = {...} outputChatBox(tostring(table.concat(Msg," ")),v,255,0,0,true) end end end ) -- Client bindKey('f2','down','chatbox','Dim') @MR.Nour Edited August 21, 2018 by KillerX Link to comment
Mr.Mostafa Posted August 21, 2018 Share Posted August 21, 2018 (edited) #Deleted Edited August 21, 2018 by Mr.Mostafa Link to comment
KillerX Posted August 21, 2018 Share Posted August 21, 2018 Just now, Mr.Mostafa said: هآدآ سكربت ؟ مود | كود | فنكشن | بطيخ اي شئ المهم يستفيد 1 Link to comment
Mr.Mostafa Posted August 21, 2018 Share Posted August 21, 2018 Just now, KillerX said: مود | كود | فنكشن | بطيخ اي شئ المهم يستفيد ض1 Link to comment
TOUNSI |, السعأدة Posted August 21, 2018 Share Posted August 21, 2018 Just now, Mr.Mostafa said: هآدآ سكربت ؟ ي غالي قول اشياء مفيده او خليك ساكت مثلي 1 Link to comment
Mr.Mostafa Posted August 21, 2018 Share Posted August 21, 2018 5 minutes ago, MR.TOUNSI said: ي غالي قول اشياء مفيده حذفت آلآقتبآسة عشآن مآلهآ فآيدة , مدري كيف ظآهرة لكم ^,^ Link to comment
N3xT Posted August 21, 2018 Share Posted August 21, 2018 20 minutes ago, Mr.Mostafa said: مآ بتظهر غير للي بعآلم 2 فقط function getElementsInDimension(theType,dimension) local elementsInDimension = { } for key, value in ipairs(getElementsByType(theType)) do if getElementDimension(value)==dimension then table.insert(elementsInDimension,value) end end return elementsInDimension end function draw( ) if getElementDimension(localPlayer, 2) then dxDrawText( "players in Dim : " .. tostring ( #getElementsInDimension ( "player" , 0 ) ) , 421, 454, 888, 539, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end end addEventHandler ( "onClientRender" , root , draw ) كودك خطأ, مافيه غير ارقمنت 1 للفنكشن getElementDimension استعمل الرمزين == Link to comment
Mr.Mostafa Posted August 21, 2018 Share Posted August 21, 2018 Just now, N3xT said: كودك خطأ, مافيه غير ارقمنت 1 للفنكشن getElementDimension استعمل الرمزين == يب صح مآ آنتبهت , شكرآ علي آلتنبيه تلخبطت مع set function getElementsInDimension(theType,dimension) local elementsInDimension = { } for key, value in ipairs(getElementsByType(theType)) do if getElementDimension(value)==dimension then table.insert(elementsInDimension,value) end end return elementsInDimension end function draw( ) if ( getElementDimension ( localPlayer ) == 2 ) then dxDrawText( "players in Dim : " .. tostring ( #getElementsInDimension ( "player" , 0 ) ) , 421, 454, 888, 539, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end end addEventHandler ( "onClientRender" , root , draw ) Link to comment
KillerX Posted August 22, 2018 Share Posted August 22, 2018 انا سويتهالك شات بس لو تقصد دي اكس سوي مثل ما قالك الاخ مصطفي 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