Jump to content

كود


w7sH

Recommended Posts

Posted

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

ابي كود 

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

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

Posted
2 hours ago, N3xT said:

اطرح أكوادك عشان نصححها

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

يقول ابي كود

م ابي تصحيح

Posted (edited)
5 hours ago, Deativated said:

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

يقول ابي كود

م ابي تصحيح

 
 

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

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

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

Edited by N3xT
  • Like 1
Posted

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

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

 

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

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

Posted
1 hour ago, w7sH said:

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

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

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

Posted

 

1 hour ago, #BrosS said:

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

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

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

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

Posted (edited)
'onPlayerLogin'
(getPlayerAccount and getAccountName) or getPlayerSerial
dxCreateTexture
dxDrawImageOnElement

 

Edited by Mhmd.z
Posted
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
)

 

 

Posted
25 minutes ago, #_iMr.[E]coo said:

getPlayerSerial @ سيرفر

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

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

Posted
1 hour ago, #BrosS said:

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

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

:lol: الله يسامحك

Posted
Just now, #BrosS said:

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

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


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


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


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

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

 

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

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

 

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

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