Jump to content

طلب كود


Stranger

Recommended Posts

Posted

-- Server Side !

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
        elseif getAccountName ( Account ) == "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
end 
) 

Posted
-- Server Side !
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
        elseif getAccountName ( Account ) == "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
end 
) 

ماضبط يالغلا

Posted

جرب

-- server 
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "إسم الحساب" or "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
    end 
end 
) 

Posted
جرب
-- server 
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "إسم الحساب" or "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
    end 
end 
) 

تسلم يالغلا ضبط وفيه طريقة ثانيه بعد انا جربتها وضبطت معي

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account1 ) 
        if getAccountName ( Account1 ) == "اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
) 

Posted

طيب حلو اهم شيء انك فهمت طريقة الباراميترس وراح تفيدك كثير

وانا نسيت جلب اسم الحساب من المعرف نفسه ..

واعتقد تقدر تختصر كودك بدال كثرة الوظايف

بـ الشروط

if 
    --- 
elseif 
    --- 
end 
  

او بالجداول

Accounts = { 
    "1", 
    "2", 
} 
  
if Accounts [ getAccountName ( RealAccount ) ] then 
    ---- 
end 

Posted
طيب حلو اهم شيء انك فهمت طريقة الباراميترس وراح تفيدك كثير

وانا نسيت جلب اسم الحساب من المعرف نفسه ..

واعتقد تقدر تختصر كودك بدال كثرة الوظايف

بـ الشروط

if 
    --- 
elseif 
    --- 
end 
  

elseif < تطول السالفة عالفاضي خخ -_-"

أفضل منهآ بكثير or + if لو يستخدم

^ For Example ,

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
) 

------

وأكثر طريقة مختصرة بكل الطرق ، إنه يسوي جدول #

Posted
طيب حلو اهم شيء انك فهمت طريقة الباراميترس وراح تفيدك كثير

وانا نسيت جلب اسم الحساب من المعرف نفسه ..

واعتقد تقدر تختصر كودك بدال كثرة الوظايف

بـ الشروط

if 
    --- 
elseif 
    --- 
end 
  

elseif < تطول السالفة عالفاضي خخ -_-"

أفضل منهآ بكثير or + if لو يستخدم

^ For Example ,

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
) 

------

وأكثر طريقة مختصرة بكل الطرق ، إنه يسوي جدول #

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

Posted
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        else 
            setPlayerTeam( source, nil ) 
        end 
    end 
) 

Posted
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        else 
            setPlayerTeam( source, nil ) 
        end 
    end 
) 

اي واحد يسجل دخولة راح يحصل التيم يعني بـ يدخل بالتيم

Posted
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        else 
            setPlayerTeam( source, nil ) 
        end 
    end 
) 

عندكـ خطأ في سطر رقم 5 ^

الخطأ

if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 

التصحيح

if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 

+ مآلها داعي هنآ , لأنه لما يسجل دخوله اللاعب لو كان بتيم آخر رح يحذفه منه elseالـ #

يعني يصير كذآ ,

-- Server Side !

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
) 

Posted
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        else 
            setPlayerTeam( source, nil ) 
        end 
    end 
) 

عندكـ خطأ في سطر رقم 5 ^

الخطأ

if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 

التصحيح

if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 

+ مآلها داعي هنآ , لأنه لما يسجل دخوله اللاعب لو كان بتيم آخر رح يحذفه منه elseالـ #

يعني يصير كذآ ,

-- Server Side !

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
) 

جرب
-- server 
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "إسم الحساب" or "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
    end 
end 
) 

تسلم يالغلا ضبط

:roll:

Posted
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        else 
            setPlayerTeam( source, nil ) 
        end 
    end 
) 

عندكـ خطأ في سطر رقم 5 ^

الخطأ

if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 

التصحيح

if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 

+ مآلها داعي هنآ , لأنه لما يسجل دخوله اللاعب لو كان بتيم آخر رح يحذفه منه elseالـ #

يعني يصير كذآ ,

-- Server Side !

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        end 
    end 
) 

جرب
-- server 
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "إسم الحساب" or "إسم الحساب" then 
            setPlayerTeam( source, Team ) 
    end 
end 
) 

تسلم يالغلا ضبط

:roll:

أظن إنه كتب فوق إنه واجه مشكلة عدم التحقق من الحساب -_-"

جرب كودكـ وإدخل بحساب ثاني وشف كيف يحطكـ بالتيم

وجرب كودي ورد خبر = )

Posted
Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        else 
            setPlayerTeam( source, nil ) 
        end 
    end 
) 

عندكـ خطأ في سطر رقم 5 ^

الخطأ

if getAccountName ( Account ) == "1اسم الحساب" or "2اسم الحساب" then 

التصحيح

if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 

+ مآلها داعي هنآ , لأنه لما يسجل دخوله اللاعب لو كان بتيم آخر رح يحذفه منه elseالـ #

يعني يصير كذآ ,

-- Server Side !

Team = createTeam ( "Team", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
        if getAccountName ( Account ) == "1اسم الحساب" or getAccountName ( Account ) == "2اسم الحساب" then 
            setPlayerTeam( source, Team ) 
        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...