Jump to content

تصحيح كود


Recommended Posts

Posted

السلام عليكم شباب , الكود هذا لشخصية وحده بس انا ابيه لشخصيتين او اكثر

يليت فهمتوني :$ا

if ( skin == 287 )  

Posted
if ( skin == 287 or skin == id or skin == id or skin == id )  

تيبل افضل ( جدول ) اقصد ذذ

تسلم يلبى قلبك بس ابيه كذا انا مابي جدول

Posted

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

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 
) 

Posted

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 
) 

  

Posted
طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي
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 
) 

560x95_FFFFFF_FF9900_000000_000000.png

Posted
طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي
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

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

مشكور لبى قلبك :$ا

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