Jump to content

تصحيح كود


Recommended Posts

طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي

addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then 
  setTimer ( setPedSkin,1100,1, source, 217 ) 
        end 
    end 
) 

Link to comment

Accounts = {  
    "Manster", 
    "fhooody", 
    "danger", 
    "sami" 
} 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        for k,v in ipairs ( Accounts ) do 
            if getAccountName ( Account ) == v then 
        setTimer ( setElementModel,1100,1, source, 217 ) 
            end 
        end 
    end 
) 
  
addEventHandler('onPlayerWasted',root, 
function (  ) 
    local Account = getPlayerAccount ( source ) 
      if Account and not isGuestAccount ( Account ) then 
        for k,v in ipairs ( Accounts ) do 
          if getAccountName ( Account ) == v then 
            local ID = getElementModel ( source ) 
                if ID then 
                    setElementModel ( source,ID ) 
                end 
            end 
        end 
    end 
end 
) 
Link to comment
طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then 
  setTimer ( setPedSkin,1100,1, source, 217 ) 
        end 
    end 
) 

setPedSkin : This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did.

addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then 
  setTimer ( setElementModel,1100,1, source, 217 ) 
        end 
    end 
) 

Link to comment
طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then 
  setTimer ( setPedSkin,1100,1, source, 217 ) 
        end 
    end 
) 

setPedSkin : This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did.

addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then 
  setTimer ( setElementModel,1100,1, source, 217 ) 
        end 
    end 
) 

Thanks for the information

Link to comment
Accounts = {  
    "Manster", 
    "fhooody", 
    "danger", 
    "sami" 
} 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        for k,v in ipairs ( Accounts ) do 
            if getAccountName ( Account ) == v then 
        setTimer ( setElementModel,1100,1, source, 217 ) 
            end 
        end 
    end 
) 
  
addEventHandler('onPlayerWasted',root, 
function (  ) 
    local Account = getPlayerAccount ( source ) 
      if Account and not isGuestAccount ( Account ) then 
        for k,v in ipairs ( Accounts ) do 
          if getAccountName ( Account ) == v then 
            local ID = getElementModel ( source ) 
                if ID then 
                    setElementModel ( source,ID ) 
                end 
            end 
        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...