Jump to content

كيف آخليهآ تطلع لكل آلآعبين آلآ آنآ


Recommended Posts

سلام عليكم

آبي آخلي آلصورة هآدي كل آلآعبين يشوفوهآ آلي آلآعب آلي عليه آلصورة

آتحقق مثلا كدآ

if localPlayer == player then return end

ولآ

addEventHandler("onClientPreRender", root,
function()
 for i, player in ipairs ( getElementsByType ( "player" ) ) do
   if ( getElementData ( player, "theT" ) == true ) then
   local x, y, z = getPedBonePosition(player, 5)
   dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.3, tag, 0.7, tocolor(255,255,255,255))
  end
 end
 end
 )

 

Link to comment
addEventHandler("onClientPreRender", root,
function()
 for i, player in ipairs ( getElementsByType ( "player" ) ) do
   if ( getElementData ( player, "theT" ) == true and player ~= localPlayer ) then
   local x, y, z = getPedBonePosition(player, 5)
   dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.3, tag, 0.7, tocolor(255,255,255,255))
  end
 end
 end
 )

 

Link to comment
7 minutes ago, Trefeor said:

addEventHandler("onClientPreRender", root,
function()
 for i, player in ipairs ( getElementsByType ( "player" ) ) do
   if ( getElementData ( player, "theT" ) == true and player ~= localPlayer ) then
   local x, y, z = getPedBonePosition(player, 5)
   dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.3, tag, 0.7, tocolor(255,255,255,255))
  end
 end
 end
 )

 

تمآم شكرآ لك

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