Jump to content

تصحيح كود


Recommended Posts

السلام عليكم يا شباب الحين هذا الكود يتأكد من الحسابات اذا هي صح يغير الشخصيه اذا مات

وش الخطأ فيه ؟

Accounts = { 
    "Manster", 
  
} 
  
  
  
addEventHandler ( "onPlayerWasted", root, 
    function ( _, Account ) 
                for k,v in ipairs ( Account ) do 
            if getAccountName ( Accounts ) == v then 
            setTimer ( setPedSkin, 560,1, source, 217 ) 
        end 
    end 
    
    end 
  
) 
  

Edited by Guest
Link to comment
Accounts = { 
    "Manster", 
  
} 
  
function isPlayerInTable(player) 
    local acc = getPlayerAccount(player) 
    for i,ac in ipairs(Accounts) do 
        if acc == ac then 
            return true 
        end 
    end 
    return false 
end 
  
addEventHandler("onPlayerSpawn",root, 
    function () 
        if isPlayerInTable(source) then 
            setTimer(setElementModel,500,1,source,217) 
        end 
    end 
) 

Link to comment
Accounts = { 
    {"Manster"} 
} 
  
addEventHandler ( "onPlayerWasted", root, 
function () 
    for k,v in ipairs (Accounts) do 
        if getAccountName (source) == v then 
            setTimer (setElementModel,1000,0,ID) 
            end 
        end 
    end 
) 

ID = اي دي الشخصيه,

خطأ

Link to comment
Accounts = { 
    "Manster", 
  
} 
  
function isPlayerInTable(player) 
    local acc = getPlayerAccount(player) 
    for i,ac in ipairs(Accounts) do 
        if acc == ac then 
            return true 
        end 
    end 
    return false 
end 
  
addEventHandler("onPlayerSpawn",root, 
    function () 
        if isPlayerInTable(source) then 
            setTimer(setElementModel,500,1,source,217) 
        end 
    end 
) 

و ذاا ؟

Link to comment
Accounts = { 
    "Manster", 
  
} 
  
function isPlayerInTable(player) 
    local acc = getPlayerAccount(player) 
    for i,ac in ipairs(Accounts) do 
        if acc == ac then 
            return true 
        end 
    end 
    return false 
end 
  
addEventHandler("onPlayerSpawn",root, 
    function () 
        if isPlayerInTable(source) then 
            setTimer(setElementModel,500,1,source,217) 
        end 
    end 
) 

خطأ بعد

Link to comment

Accounts = { 
    ['Manster'] = true 
} 
  
addEventHandler ( "onPlayerSpawn", root, 
function () 
    local acc = getPlayerAccount(source) 
        if acc and not isGuestAccount(acc) then 
            if Accounts[getAccountName(acc)] then 
                setTimer (setElementModel,500,1,source,217) 
            end 
        end 
    end 
) 
Edited by Guest
Link to comment
Accounts = { 
    ['Manster'] = true 
} 
  
addEventHandler ( "onPlayerSpawn", root, 
function () 
    local acc = getPlayerAccount(source) 
        if acc then 
            if Accounts[getAccountName(acc)] then 
                setTimer (setElementModel,500,1,source,217) 
            end 
        end 
    end 
) 

نفس المشكله

Link to comment
Accounts = { 
    "Manster", 
  
} 
  
function isPlayerInTable(player) 
    local acc = getPlayerAccount(player) 
    for i,ac in ipairs(Accounts) do 
        if acc == ac then 
            return true 
        end 
    end 
    return false 
end 
  
addEventHandler("onPlayerSpawn",root, 
    function () 
        if isPlayerInTable(source) then 
            setTimer(setElementModel,500,1,source,217) 
        end 
    end 
) 

عندك كم خطآ

التصحيح + جرب ذا الكود يا صاحب الموضوع :

Accounts = { 
    "Manster", 
} 
  
function isPlayerInTable(player) 
    local acc = getPlayerAccount(player) 
    if ( acc ) and not isGuestAccount(acc) then 
        local accName = getAccountName(acc) 
        for i,ac in ipairs(Accounts) do 
            if ac == accName then 
                return true 
            end 
        end 
    end 
    return false 
end 
  
addEventHandler("onPlayerSpawn",root, 
    function () 
        if isPlayerInTable(source) then 
            setTimer(setElementModel,500,1,source,217) 
        end 
    end 
) 

Link to comment
احنا جايين نصحح له ولا هو يصحح لنا

والله اني حاس انه ما جربه

كيف اقولك خطأ إذا ماجربته ؟

وش استفيد اكذب عليك

لا مو انا الي اصحح لكم انا اذا اعرفه ماحطيت الموضوع

Link to comment

التصحيح + جرب ذا الكود يا صاحب الموضوع :

Accounts = { 
    "Manster", 
} 
  
function isPlayerInTable(player) 
    local acc = getPlayerAccount(player) 
    if ( acc ) and not isGuestAccount(acc) then 
        local accName = getAccountName(acc) 
        for i,ac in ipairs(Accounts) do 
            if ac == accName then 
                return true 
            end 
        end 
    end 
    return false 
end 
  
addEventHandler("onPlayerSpawn",root, 
    function () 
        if isPlayerInTable(source) then 
            setTimer(setElementModel,500,1,source,217) 
        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...