The King Posted August 24, 2013 Share Posted August 24, 2013 (edited) السلام عليكم سويت كود اذا فتح البوابة لـ قروب معين ومايظهر الاوبجكت gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) function Gate() moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) bindKey("tab", "down",Gate) if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "admin" ) then end end وش الغلط وللعلم دي بوق سكربت مدري شسمه WARNING: Loading script failed: xgatemove\server.lua:5: ')' expected near 'then' Edited August 24, 2013 by Guest Link to comment
AHMAD1234 Posted August 24, 2013 Share Posted August 24, 2013 (edited) gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ function Gate() if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end bindKey("tab", "down",Gate) Edited August 24, 2013 by Guest Link to comment
The King Posted August 24, 2013 Author Share Posted August 24, 2013 gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ function Gate() if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end bindKey("tab", "down",Gate) SCRIPT ERROR: xgatemove\server.lua:3: ')' expected near 'then' + z هو 14 الكود ماضبط Link to comment
فاّرس Posted August 24, 2013 Share Posted August 24, 2013 gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ function Gate() if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end bindKey("tab", "down",Gate) Link to comment
AHMAD1234 Posted August 24, 2013 Share Posted August 24, 2013 gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ function Gate() if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end bindKey("tab", "down",Gate) SCRIPT ERROR: xgatemove\server.lua:3: ')' expected near 'then' + z هو 14 الكود ماضبط سيرفر في كلنت..؟ function وبعدين انت حاط Link to comment
The King Posted August 24, 2013 Author Share Posted August 24, 2013 gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) -- ؟.. Z خطأ فين الـ function Gate() if isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end bindKey("tab", "down",Gate) SCRIPT ERROR: xgatemove\server.lua:3: ')' expected near 'then' + z هو 14 الكود ماضبط سيرفر في كلنت..؟ function وبعدين انت حاط No .. Link to comment
AHMAD1234 Posted August 24, 2013 Share Posted August 24, 2013 No .. isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) -- only for server side Link to comment
The King Posted August 24, 2013 Author Share Posted August 24, 2013 No .. isObjectInACLGroup ( "user." .. getAccountName, aclGetGroup ( "Admin" ) -- only for server side انا حاط الكود كله سيرفر يعني مافي شي كلنت Link to comment
jafar Posted August 24, 2013 Share Posted August 24, 2013 gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) function Gate(player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end for _, player in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( player, 'tab', 'down', Gate ) end addEventHandler( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', Gate ) end ) Link to comment
The King Posted August 24, 2013 Author Share Posted August 24, 2013 gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) function Gate(player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end for _, player in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( player, 'tab', 'down', Gate ) end addEventHandler( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', Gate ) end ) مشكور ضبط الله يعطيك العافيةة Link to comment
jafar Posted August 24, 2013 Share Posted August 24, 2013 gate = createObject ( 957, 2494.5, -1671.1999511719, 14, 90, 0, 0 ) function Gate(player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject ( gate, 10000, 2494.5, -1671.1999511719, 17.299999237061 ) end end for _, player in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( player, 'tab', 'down', Gate ) end addEventHandler( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', Gate ) 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