w7sH Posted April 20, 2017 Posted April 20, 2017 السلام عليكم ورحمة الله وبركاتة .. ابي كود صورة بحجم صغير تكون فوق راس اللاعب بحجم صغير وتكون عن طريق حسابه أو سيرياله هو مايشوفها اذا كانت فوق راسه لكن بقية اللاعبين بالسيرفر يشوفونها
Adham Posted April 20, 2017 Posted April 20, 2017 2 hours ago, N3xT said: اطرح أكوادك عشان نصححها أقراء كلامه زين يقول ابي كود م ابي تصحيح
N3xT Posted April 20, 2017 Posted April 20, 2017 (edited) 5 hours ago, Deativated said: أقراء كلامه زين يقول ابي كود م ابي تصحيح تكتب اقرا مب أقراء, ذا أولاً ثانياً أدري انه يبي كود لكن أنا ابيه يسوي كوده ويطرحه عشان نصححه اذا كلامي مب عاجبك تقدر تتفنن وتطرح أكوادك له Edited April 20, 2017 by N3xT 1
Adham Posted April 20, 2017 Posted April 20, 2017 بالنسبه لصاحب الموضوع , كيف تبيها علي سرياله او حسابه ؟
Faraon, Posted April 20, 2017 Posted April 20, 2017 تبيها بالشكل ذا لكن بالسريال !! - Client - local tag = dxCreateTexture("3.png") addEventHandler("onClientPreRender", root, function() for i, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "VIPData" ) == true ) then local x, y, z = getPedBonePosition(player, 5) dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.4, tag, 0.9, tocolor(255,255,255,255)) end end end ) - server - addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,players in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerAccount( players ) and not isGuestAccount( getPlayerAccount( players ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( players ) ), aclGetGroup ( "VIP" ) ) ) then setElementData ( players, "VIPData", true ) end end end end ) addEventHandler ( "onPlayerLogin", root, function ( _,acc ) if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "VIP" ) ) ) then setElementData ( source, "VIPData", true ) end end )
N3xT Posted April 20, 2017 Posted April 20, 2017 6 minutes ago, #_MR.DEAD said: تبيها بالشكل ذا لكن بالسريال !! - Client - local tag = dxCreateTexture("3.png") addEventHandler("onClientPreRender", root, function() for i, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "VIPData" ) == true ) then local x, y, z = getPedBonePosition(player, 5) dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.4, tag, 0.9, tocolor(255,255,255,255)) end end end ) - server - addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,players in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerAccount( players ) and not isGuestAccount( getPlayerAccount( players ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( players ) ), aclGetGroup ( "VIP" ) ) ) then setElementData ( players, "VIPData", true ) end end end end ) addEventHandler ( "onPlayerLogin", root, function ( _,acc ) if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "VIP" ) ) ) then setElementData ( source, "VIPData", true ) end end ) تدري أن كودك يسوي لوب للاعبين من 30 مرة إلى 60 مرة بالثانية مما يسبب لاق يعتبر قوي 2
w7sH Posted April 21, 2017 Author Posted April 21, 2017 ابيها على حسابه أو قروب معين .. يكون أفضل, وأتمنى مساعدتنا في هذا الشي
#BrosS Posted April 21, 2017 Posted April 21, 2017 1 hour ago, w7sH said: ابيها على حسابه أو قروب معين .. يكون أفضل, وأتمنى مساعدتنا في هذا الشي ورينا محاولتك وصدقني لا تنتظر المساعدة دامك ماسويت شي
w7sH Posted April 21, 2017 Author Posted April 21, 2017 1 hour ago, #BrosS said: ورينا محاولتك وصدقني لا تنتظر المساعدة دامك ماسويت شي انا مامعي اكواد عشان احوال؟؟ انا طلبت مساعدة ليه لو عندي أكواد كان حليتها من زمان ولا جيت هنا..!
Mhmd.z Posted April 21, 2017 Posted April 21, 2017 (edited) 'onPlayerLogin' (getPlayerAccount and getAccountName) or getPlayerSerial dxCreateTexture dxDrawImageOnElement Edited April 21, 2017 by Mhmd.z
#BrosS Posted April 21, 2017 Posted April 21, 2017 On 3/26/2017 at 18:27, The Killer said: 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 local aSerials = { ["Serial"] = true, } local tag = dxCreateTexture ("crown.png") addEventHandler ("onClientRender", root, function () if aSerials [getPlayerSerial ()] then dxDrawImageOnElement (localPlayer, tag) end end )
^iiEcoo'x_) Posted April 21, 2017 Posted April 21, 2017 4 hours ago, #BrosS said: getPlayerSerial @ سيرفر
#BrosS Posted April 21, 2017 Posted April 21, 2017 25 minutes ago, #_iMr.[E]coo said: getPlayerSerial @ سيرفر كم مرة اقولك جرب قبل ان تحكم شايفك كثير تدور عني اغلط بشي حتى تجي تهاجمني
^iiEcoo'x_) Posted April 21, 2017 Posted April 21, 2017 1 hour ago, #BrosS said: كم مرة اقولك جرب قبل ان تحكم شايفك كثير تدور عني اغلط بشي حتى تجي تهاجمني الله يسامحك
AHMED MOSTAFA Posted April 21, 2017 Posted April 21, 2017 Just now, #BrosS said: كم مرة اقولك جرب قبل ان تحكم شايفك كثير تدور عني اغلط بشي حتى تجي تهاجمني صحيح حقت السريال للسيرفر فقط ورح تصير بقات اذا بكلينت يعني ممكن تجيب سريال عشوائي إلخ ..
w7sH Posted April 22, 2017 Author Posted April 22, 2017 13 hours ago, #BrosS said: ممكن تخليها على الحساب أو على رتبة معينه؟
w7sH Posted May 5, 2017 Author Posted May 5, 2017 On ٢١/٤/٢٠١٧ at 16:55, #BrosS said: كود تمام لكن مشكلته يطلع لي انا اذا كان فوق راسي بس لو كان فوق راس لاعب ثاني هو يشوفه بس اللي جنبه مايشوفه أنا ابيه اللي جنبه وحوله يشوفونه بس هو مايشوفه عشان مايزعجه
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