Jump to content

مشكلة بمود


Recommended Posts

آلسلام عليكم

- عندي مشكلة بمود - آنه يشتغل بآلسيرفر آلمحلي عآدي - لكن لمآ آشغله بسيرفر آلعآلمي مآ يشتغل نهآئي ليه ؟

 

سيرفر

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 )

كلنت

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, 4)
   dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.3, tag, 0.3, tocolor(255,255,255,255))
  end
 end
 end
 )

 

Link to comment
3 hours ago, Mr.Mostafa said:

آلسلام عليكم

- عندي مشكلة بمود - آنه يشتغل بآلسيرفر آلمحلي عآدي - لكن لمآ آشغله بسيرفر آلعآلمي مآ يشتغل نهآئي ليه ؟

 

سيرفر


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 )

كلنت


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, 4)
   dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.3, tag, 0.3, tocolor(255,255,255,255))
  end
 end
 end
 )

 

ارسل الصورة 

3.png

و الميتا في الخاص

Link to comment
11 hours ago, Mr.Mostafa said:

آلسلام عليكم

- عندي مشكلة بمود - آنه يشتغل بآلسيرفر آلمحلي عآدي - لكن لمآ آشغله بسيرفر آلعآلمي مآ يشتغل نهآئي ليه ؟

 

سيرفر


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 )

كلنت


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, 4)
   dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.3, tag, 0.3, tocolor(255,255,255,255))
  end
 end
 end
 )

 

الرتبة VIP

تاكد انك بجروب VIP

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