Stranger Posted May 29, 2013 Share Posted May 29, 2013 السلام عليكم يا شباب وش المشكلة في هذا الكود ا Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami" "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) setTeamFriendlyFire(Team,false) end end ) Link to comment
#Al-Ha[J]aRii Posted May 29, 2013 Share Posted May 29, 2013 السلام عليكم يا شباب وش المشكلة في هذا الكود ا Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami" "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) setTeamFriendlyFire(Team,false) end end ) Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami", "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) setTeamFriendlyFire(Team,false) end end end ) Link to comment
AboShanab Posted May 29, 2013 Share Posted May 29, 2013 (edited) اووف عدله حجري قبلي ذذ Edited May 29, 2013 by Guest Link to comment
3NAD Posted May 29, 2013 Share Posted May 29, 2013 1- مآفصلت قيم الجدول بإستخدام الفاصلة 2- لـ الفنكشن end ناقص Link to comment
Stranger Posted May 29, 2013 Author Share Posted May 29, 2013 السلام عليكم يا شباب وش المشكلة في هذا الكود ا Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami" "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) setTeamFriendlyFire(Team,false) end end ) Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami", "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) setTeamFriendlyFire(Team,false) end end end ) مشكور لبى قلبك Link to comment
#Al-Ha[J]aRii Posted May 29, 2013 Share Posted May 29, 2013 السلام عليكم يا شباب وش المشكلة في هذا الكود ا Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami" "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) setTeamFriendlyFire(Team,false) end end ) Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami", "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) setTeamFriendlyFire(Team,false) end end end ) مشكور لبى قلبك العفو ... Link to comment
PaiN^ Posted May 29, 2013 Share Posted May 29, 2013 setTeamFriendlyFire إستخدمه مع حدث بدأ التشغيل, لأنه مو لازم تكرره كل ما آدمن سجل دخول ذذ Link to comment
Stranger Posted May 30, 2013 Author Share Posted May 30, 2013 1- مآفصلت قيم الجدول بإستخدام الفاصلة2- لـ الفنكشن end ناقص مشكور Link to comment
AboShanab Posted May 30, 2013 Share Posted May 30, 2013 Team = createTeam ( "Admin", 255, 0, 0 ) Accountss = { "Manster", "fhooody", "danger", "sami", "HasTra" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accountss ) do if getAccountName ( Account ) == v then setPlayerTeam( source, Team ) end end end ) addEventHandler("onResourceStart",resourceRoot, function () setTeamFriendlyFire(Team,false) end ) هيك افضل عشان لا يصير لاق وهيك Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now