Jump to content

تصحيح كود


Recommended Posts

Posted (edited)

سلام عليكم وحرمة الله وبركاتة الزبده اول موضوع لي

:lol:

انا معي كود لاكان اشغله ومسوي تحقق انه ما يشتغل الا *علي ,وعلى الي رتبته ادمن وكونسل وذلحركات الزبده الكود

addEvent("crazy",true) 
addEventHandler("crazy",root,  
function check(thePlayer, commandName,...) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Level6" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head.Admin" ) ) or 
isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) )  or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) )   
  
  

++ عطوني الفنكشات االناقصه

Edited by Guest
Posted

هذا كلينت

local Url = "wrksp.png"  
local zUP = 16  
  
addEventHandler( "onClientRender", root, function (  ) 
       local x, y, z = getElementPosition( localPlayer ) 
       local Mx, My, Mz = getCameraMatrix(   ) 
        if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then 
           local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) 
            if ( WorldPositionX and WorldPositionY ) then 
               dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) 
          end 
      end 
end  
  
triggerServerEvent("crazy", localPlayer, Url) 

Posted

يا اخي هذولا الكودين كاملين :lol:ويعني ليش بخبي كود

الكلينت

local Url = "wrksp.png"  
local zUP = 16  
  
addEventHandler( "onClientRender", root, function (  ) 
       local x, y, z = getElementPosition( localPlayer ) 
       local Mx, My, Mz = getCameraMatrix(   ) 
        if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then 
           local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) 
            if ( WorldPositionX and WorldPositionY ) then 
               dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) 
          end 
      end 
end  
  
triggerServerEvent("crazy", localPlayer, Url) 

--سيرفر

local Url = "wrksp.png"  
local zUP = 16  
  
addEventHandler( "onClientRender", root, function (  ) 
       local x, y, z = getElementPosition( localPlayer ) 
       local Mx, My, Mz = getCameraMatrix(   ) 
        if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then 
           local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) 
            if ( WorldPositionX and WorldPositionY ) then 
               dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) 
          end 
      end 
end  
  
triggerServerEvent("crazy", localPlayer, Url) 

بإختصار ابيها تطلع فوق رتب محدده<

Posted
تستهبل طارح لي كود كلنت مرتين

يبوي انت تقول اطرح الكود كامل انا جبتهم ثنيناتهم (كلهم كاملات)

Posted
تستهبل طارح لي كود كلنت مرتين

يبوي انت تقول اطرح الكود كامل انا جبتهم ثنيناتهم (كلهم كاملات)

وين الكاملات ؟

لو الكود لك ودي اساعدك ،

بس ماساعد بكود مو لك ،

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
تستهبل طارح لي كود كلنت مرتين

يبوي انت تقول اطرح الكود كامل انا جبتهم ثنيناتهم (كلهم كاملات)

وين الكاملات ؟

لو الكود لك ودي اساعدك ،

بس ماساعد بكود مو لك ،

:lol: انا جمعت الاكواد وركبت الحين ابي اعرف وين المشكله بس :?

Posted

جرب ,

--- سيرفر

local Groups = {"Level6","Head.Admin","Admin","Console"} 
  
addEventHandler( "onPlayerLogin", root,function ( _,acc ) 
   for _,v in ipairs (Groups) do 
     if ( isObjectInACLGroup("user."..getAccountName( acc ), aclGetGroup( v ) ) ) then 
     triggerClientEvent ( source, 'Pic', source )  
      end 
   end 
end 
) 

--- كلينت

local Url = "wrksp.png" 
local zUP = 16 
  
function xxx (  ) 
       local x, y, z = getElementPosition( localPlayer ) 
       local Mx, My, Mz = getCameraMatrix(   ) 
        if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then 
           local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) 
            if ( WorldPositionX and WorldPositionY ) then 
               dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) 
          end 
      end 
end 
    
addEvent ( 'Pic', true) 
addEventHandler ('Pic', root, 
function ( ) 
addEventHandler( "onClientRender", root, xxx ) 
end 
) 

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
جرب ,

--- سيرفر

local Groups = {"Level6","Head.Admin","Admin","Console"} 
  
addEventHandler( "onPlayerLogin", root,function ( _,acc ) 
   for _,v in ipairs (Groups) do 
     if ( isObjectInACLGroup("user."..getAccountName( acc ), aclGetGroup( v ) ) ) then 
     triggerClientEvent ( source, 'Pic', source )  
      end 
   end 
end 
) 

--- كلينت

local Url = "wrksp.png" 
local zUP = 16 
  
function xxx (  ) 
       local x, y, z = getElementPosition( localPlayer ) 
       local Mx, My, Mz = getCameraMatrix(   ) 
        if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then 
           local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) 
            if ( WorldPositionX and WorldPositionY ) then 
               dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) 
          end 
      end 
end 
    
addEvent ( 'Pic', true) 
addEventHandler ('Pic', root, 
function ( ) 
addEventHandler( "onClientRender", root, xxx ) 
end 
) 

:shock::shock::shock::shock:

اللوب مكانه غلط اصلاً

:lol::lol::lol:

راح يجيب قمة الاق للاعب ض1

انت مسوي يتحقق من كل القروبات ههههههههههههه

يعني يسوي ترايقر على عدد القروبات :lol::lol:

Skype : aboshanab_

Posted

هذي طريقة عشان الصورة تكون لقروب محدد ..

Client Side !

local Url = "crown.png" --- اسسم الصورة هنا 
local zUP = 10 ---- ارتفأع الصورة 
      
addEventHandler( "onClientRender", root, function (  ) 
  if ( getElementData ( localPlayer, "VIPData" ) == true ) then 
    local x, y, z = getElementPosition( localPlayer ) 
    local Mx, My, Mz = getCameraMatrix(   ) 
    if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then 
       local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) 
        if ( WorldPositionX and WorldPositionY ) then 
             dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) 
         end 
      end 
   end 
end ) 

Server Side !

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 ( "V.I.P" ) ) ) then 
             setElementData ( players, "VIPData", true ) 
          end 
       end 
    end 
end )    
  
  
addEventHandler ( "onPlayerLogin", root, function ( _,acc ) 
  if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "V.I.P" ) ) ) then 
       setElementData ( source, "VIPData", true ) 
    end 
end ) 

To Contact Me at Skype : [email protected]

Posted

هذي طريقة عشان الصورة تكون لقروب محدد ..

Client Side !

local Url = "crown.png" --- اسسم الصورة هنا 
local zUP = 10 ---- ارتفأع الصورة 
      
addEventHandler( "onClientRender", root, function (  ) 
  if ( getElementData ( localPlayer, "VIPData" ) == true ) then 
    local x, y, z = getElementPosition( localPlayer ) 
    local Mx, My, Mz = getCameraMatrix(   ) 
    if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then 
       local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) 
        if ( WorldPositionX and WorldPositionY ) then 
             dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) 
         end 
      end 
   end 
end ) 

Server Side !

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 ( "V.I.P" ) ) ) then 
             setElementData ( players, "VIPData", true ) 
          end 
       end 
    end 
end )    
  
  
addEventHandler ( "onPlayerLogin", root, function ( _,acc ) 
  if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "V.I.P" ) ) ) then 
       setElementData ( source, "VIPData", true ) 
    end 
end ) 

تشكر يا ماكس ويا زاحف ومعليش اذا تعبتكم

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