Jump to content

كود


w7sH

Recommended Posts

السلام عليكم ورحمة الله وبركاتة ..

ابي كود 

صورة بحجم صغير تكون فوق راس اللاعب بحجم صغير وتكون عن طريق حسابه أو سيرياله

هو مايشوفها اذا كانت فوق راسه لكن بقية اللاعبين بالسيرفر يشوفونها

Link to comment
5 hours ago, Deativated said:

أقراء كلامه زين

يقول ابي كود

م ابي تصحيح

 
 

تكتب اقرا مب أقراء, ذا أولاً

ثانياً أدري انه يبي كود لكن أنا ابيه يسوي كوده ويطرحه عشان نصححه

اذا كلامي مب عاجبك تقدر تتفنن وتطرح أكوادك له

Edited by N3xT
  • Like 1
Link to comment

تبيها بالشكل ذا لكن بالسريال !!

- 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 )

 

Link to comment
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 مرة بالثانية

مما يسبب لاق يعتبر قوي

  • Like 2
Link to comment
1 hour ago, w7sH said:

ابيها على حسابه أو قروب معين .. يكون أفضل, وأتمنى مساعدتنا في هذا الشي

ورينا محاولتك

وصدقني لا تنتظر المساعدة دامك ماسويت شي

Link to comment

 

1 hour ago, #BrosS said:

ورينا محاولتك

وصدقني لا تنتظر المساعدة دامك ماسويت شي

انا مامعي اكواد عشان احوال؟؟ 

انا طلبت مساعدة ليه لو عندي أكواد كان حليتها من زمان ولا جيت هنا..!

Link to comment
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
)

 

 

Link to comment
Just now, #BrosS said:

كم مرة اقولك جرب قبل ان تحكم

شايفك كثير تدور عني اغلط بشي حتى تجي تهاجمني


صحيح حقت السريال للسيرفر فقط


ورح تصير بقات اذا بكلينت


يعني ممكن تجيب سريال عشوائي إلخ ..

Link to comment
  • 2 weeks later...
On ٢١‏/٤‏/٢٠١٧ at 16:55, #BrosS said:

 

كود تمام لكن مشكلته يطلع لي انا اذا كان فوق راسي

بس لو كان فوق راس لاعب ثاني هو يشوفه بس اللي جنبه مايشوفه

 

أنا ابيه اللي جنبه وحوله يشوفونه بس هو مايشوفه عشان مايزعجه

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...