AchrefF Posted March 15, 2017 Share Posted March 15, 2017 (edited) شباب ممكن تصحيح الكود هذه عباره عن لوحه تفتح وتشوف فاضلك كام وتترقى فى التيم الى انت فيه وشكرا ----------- بمساعده #_iMr.[E]coo ------الكلنت label = guiCreateLabel(774, 494, 90, 28, "", false) guiSetVisible(label,false) function dxx() dxDrawRectangle(338, 349, 563, 258, tocolor(0, 0, 0, 178), true) dxDrawRectangle(501, 359, 238, 35, tocolor(0, 0, 0, 235), true) dxDrawText("Ranks", 575, 359, 664, 392, tocolor(93, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawRectangle(338, 397, 561, 7, tocolor(69, 69, 69, 255), true) dxDrawRectangle(362, 423, 512, 164, tocolor(255, 239, 239, 255), false) dxDrawText(" AssisSIN BOSS----------->>3000", 372, 551, 589, 572, tocolor(255, 239, 239, 255), 1.20, "default-bold", "center", "top", false, false, true, false, false) dxDrawText("professional AssisSIN-->>1500", 372, 495, 589, 516, tocolor(255, 239, 239, 255), 1.20, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("junior AssisSIN------------>>500", 373, 441, 589, 462, tocolor(255, 239, 239, 255), 1.20, "default-bold", "left", "top", false, false, true, false, false) dxDrawLine(617, 423, 617, 587, tocolor(255, 255, 255, 255), 1, true) dxDrawText("your Kill", 627, 490, 762, 526, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("CUA/AssisSIN", 446, 660, 783, 698, tocolor(255, 255, 255, 255), 1.50, "bankgothic", "left", "top", false, false, true, false, false) end bindKey("F5","down",function() --عند الضغط على زر اف7 if (showWindow == false) then --ان كان showWindow = false guiSetVisible(label,true) showCursor(true)--يظهر الماوس نسيته :) addEventHandler("onClientRender",root,dxx)--نظهر لوحة الدي اكس showWindow = true --لما يفتح اللوحة ويظهر كل شيئ يضع القيمة true else --ان ما كانت القيمة هي flase guiSetVisible(label,false) showCursor(false)--نخفي الماوس removeEventHandler("onClientRender",root,dxx)--نخفي لوحة الدي اكس showWindow = false --نعطي القيمة false end end--نهاية الفنكشن ) function getData ( ) triggerServerEvent ( "getData" , localPlayer ) end local aLable = label addEvent ("YouData",true) addEventHandler ("YouData",root, function ( aData ) guiSetText ( aLable , tonumber ( aData ) ) or 0 end ) ----------السرفر addEvent ("getData",true) addEventHandler ("getData",root, function ( ) if not isGuestAccount ( getPlayerAccount ( source ) ) triggerClientEvent ( source , "YouData" , source , tonumber ( getAccountData ( getPlayerAccount ( source ) , "L.v.L" ) ) ) end end ) Edited March 15, 2017 by AchrefF Link to comment
Abdul KariM Posted March 15, 2017 Share Posted March 15, 2017 وش يعطيك الدي بوق debugscript 3 وحط showWindow = false بأول السطر 1 Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 2 minutes ago, Abdul KariM said: وش يعطيك الدي بوق debugscript 3 وحط showWindow = false بأول السطر بيطلعلى فى السطر دا ناقص then triggerClientEvent ( source , "YouData" , source , tonumber ( getAccountData ( getPlayerAccount ( source ) , "L.v.L" ) ) ) Link to comment
Abdul KariM Posted March 15, 2017 Share Posted March 15, 2017 سطر 55 استبدله بهذا if not isGuestAccount ( getPlayerAccount ( source ) ) then 1 Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 1 minute ago, Abdul KariM said: سطر 55 استبدله بهذا if not isGuestAccount ( getPlayerAccount ( source ) ) then شكرا اخى بجرب 8 minutes ago, Abdul KariM said: سطر 55 استبدله بهذا if not isGuestAccount ( getPlayerAccount ( source ) ) then ظبطت اخى يعطيك العافيه ازاى اخى انسب اللوحه دى لتيم معين و اخلى تيم محدد بس الى يفتح هذه اللوحه Link to comment
#BrosS Posted March 15, 2017 Share Posted March 15, 2017 11 minutes ago, AchrefF said: ظبطت اخى يعطيك العافيه ازاى اخى انسب اللوحه دى لتيم معين و اخلى تيم محدد بس الى يفتح هذه اللوحه if getPlayerTeam(source) == getTeamFromName("Your team") then Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 10 minutes ago, #BrosS said: if getPlayerTeam(source) == getTeamFromName("Your team") then شكرا اخى Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 4 minutes ago, #BrosS said: حياك سؤال اخير اخى عارف انى تعبتكو فى هذه الكود بيقول guiSetText ( aLable , tonumber ( aData )) or 0 unexpected symbol near or 0 Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 (edited) 2 minutes ago, #BrosS said: حطها بين "" الصفر كده ما ظبطت برضو guiSetText ( aLable , tonumber ( aData )) or "0" Edited March 15, 2017 by AchrefF Link to comment
Abdul KariM Posted March 15, 2017 Share Posted March 15, 2017 guiSetText ( aLable , tostring ( aData ) or "0" ) 1 Link to comment
AchrefF Posted March 15, 2017 Author Share Posted March 15, 2017 6 minutes ago, Abdul KariM said: guiSetText ( aLable , tostring ( aData ) or "0" ) تسلم Link to comment
#Soking Posted March 15, 2017 Share Posted March 15, 2017 2 hours ago, AchrefF said: كده ما ظبطت برضو guiSetText ( aLable , tonumber ( aData )) or "0" الاور ياخد القيمه البعدها و يتركب ال قبلها لو ال قبلها فولس انت هنا سويت مقارنه بين الفنكشن بالكامل مو قيمه aData الاقواس مهمه بالاخير عبد الكريم صححها لك 1 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