Jump to content

تـَصحيح كود بسيط


Recommended Posts

السلام عليكم ورحمة الله وبركآتهه ..

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

الكود :

function (thePlayer) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if getElementType(thePlayer) == "player" then 
                for theKey,theGroup in ipairs(groups) do 
        if isObjectInACLGroup("user." .. accName, aclGetGroup(theGroup)) then 
                                outputChatBox(" مـَرحـبآ بِك ",thePlayer,0,0,255,true) 
                         
تمت الافآدة ***** 
) 

السكربت عبارة عن وظيفة لرتب معينة

السكرب شغالة تمام

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

وإذا ماله تصريح تطلع لا تملك تصريح

ولكن الي لديهم تصريح يطلع لهم السطرين (مرحبآ بكـ وَ لا تملك تصريح(

والي مالهم تصريح ما يطلع شيء ..

Edited by Guest
Link to comment
function (thePlayer) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    local output = false 
    if getElementType(thePlayer) == "player" then 
        for theKey,theGroup in ipairs(groups) do 
            if isObjectInACLGroup("user." .. accName, aclGetGroup(theGroup)) then 
            outputChatBox(" مـَرحـبآ بِك ",thePlayer,0,0,255,true) 
            setElementPosition(thePlayer,238.85658,141.07948,1003.02344) 
            setElementInterior(thePlayer, 3) 
            setElementDimension(thePlayer, 0 ) 
            giveWeapon ( thePlayer, 3, 0 ) 
            setPedSkin ( thePlayer , 282) 
            output = true 
            break 
            end 
        end 
        if output == false then 
        outputChatBox("للا تملك تصريح .",thePlayer,0,0,255,true) 
        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...