+1HidroNex Posted June 26, 2018 Share Posted June 26, 2018 if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then السلام عليكم طبعآ في خطاء في هاذا الكود , يقلي في الديبق unexpcted symbol near ' if ' رغم اني ما اشوف اي خطاء ؟ Link to comment
+Source|> Posted June 26, 2018 Share Posted June 26, 2018 30 minutes ago, +1HidroNex said: if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then السلام عليكم طبعآ في خطاء في هاذا الكود , يقلي في الديبق unexpcted symbol near ' if ' رغم اني ما اشوف اي خطاء ؟ حط الكود كامل Link to comment
Trefeor Posted June 27, 2018 Share Posted June 27, 2018 الكود مافيه اي مشكلة , اطرح الاكواد Link to comment
#Sn[i]pêŘ Posted June 27, 2018 Share Posted June 27, 2018 4 hours ago, +1HidroNex said: if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then السلام عليكم طبعآ في خطاء في هاذا الكود , يقلي في الديبق unexpcted symbol near ' if ' رغم اني ما اشوف اي خطاء ؟ الكود ما فيه مشكلة سوي فراغ بين كل سطر و رح يشتغل Link to comment
+1HidroNex Posted June 27, 2018 Author Share Posted June 27, 2018 (edited) addCommandHandler("AR-Team" , function aTeam ( player ) if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then local team = getTeamFromName ( "Admins" ) and getTeamFromName ( "Admins" ) or createTeam ( "Admins" , 255 , 11 , 11 ) setPlayerTeam( player, team ) outputChatBox( " Team Admins l تم تحويلك الى هاذا التيم " , player , 255 , 11 , 11 ) end end) addEventHandler("onPlayerWasted",getElementRoot ( ) , aTeam ) Edited June 27, 2018 by +1HidroNex 1 Link to comment
Trefeor Posted June 27, 2018 Share Posted June 27, 2018 function aTeam ( player ) if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "AD-Team" ) ) then local team = getTeamFromName ( "Admins" ) and getTeamFromName ( "Admins" ) or createTeam ( "Admins" , 255 , 11 , 11 ) if ( getPlayerTeam ( player ) ~= team ) then setPlayerTeam( player, team ) outputChatBox( " Team Admins l تم تحويلك الى هاذا التيم " , player , 255 , 11 , 11 ) end end end addCommandHandler("AR-Team",aTeam) addEventHandler("onPlayerWasted",getElementRoot ( ) , aTeam ) 1 Link to comment
Rakan# Posted June 27, 2018 Share Posted June 27, 2018 وشيل onPlayerWasted لان الارقمنت الاول مو لاعب . 2 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