+Source|> Posted May 22, 2017 Share Posted May 22, 2017 (edited) سلام عليكم ابي اعرف انا سويت باب متححرك كيف اخليه يفتح بزر لرتبة معينه؟؟؟ شكرا Edited May 22, 2017 by A7MEDENO Link to comment
Adham Posted May 22, 2017 Share Posted May 22, 2017 getPlayerAccount isGuestAccount getAccountName isObjectInACLGroup Link to comment
+Source|> Posted May 22, 2017 Author Share Posted May 22, 2017 bindKey فقط للكلاينت عطوني مثال للوحه لاهنتم!!!! Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 9 hours ago, A7MEDENO said: bindKey فقط للكلاينت عطوني مثال للوحه لاهنتم!!!! من قالك انها للكلينت فقط ؟ هي سيرفر وكلينت لكن لازم يكون فيه ارجمنت قبل الزر - ارجمنت للاعب Link to comment
a7zan Posted May 22, 2017 Share Posted May 22, 2017 1 minute ago, A7MEDENO said: bindKey فقط للكلاينت عطوني مثال للوحه لاهنتم!!!! bindKey = كلنت وسيرفر ، إي لوحه؟ Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 function onPress() -- somecode end bindKey ( player , "F1", "down", onPress ) Link to comment
iMr.WiFi..! Posted May 22, 2017 Share Posted May 22, 2017 2 minutes ago, Killer Project said: function onPress() -- somecode end bindKey ( player , "F1", "down", onPress ) كويس انك ماعتزلت + player -- غير معرف 1 Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 9 hours ago, iMr.WiFi..! said: كويس انك ماعتزلت + player -- غير معرف player بمعنى اي شي يبيه هو انا فقط اوضح له .... تحبني لهذي الدرجة و ما تبيني اعتزل واو شكراً شكراً ههههههههه 1 Link to comment
+Source|> Posted May 22, 2017 Author Share Posted May 22, 2017 function cl2(player,cmd) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then الحين بعد then ابي الرتبه اللي سويتها هي اللي تفتح الباب المتحرك بزر وش اكتب بعد then??? Link to comment
+Source|> Posted May 22, 2017 Author Share Posted May 22, 2017 function cl2(player,cmd) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853 ) end end bindKey ( source, "f1","down",cl2) صح؟؟ Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 9 hours ago, A7MEDENO said: function cl2(player,cmd) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853 ) end end bindKey ( source, "f1","down",cl2) صح؟؟ السورس ماهو معرف Link to comment
+Source|> Posted May 22, 2017 Author Share Posted May 22, 2017 Just now, Killer Project said: السورس ماهو معرف وش احط؟؟ Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 تقدر تسويها زي ما انت مسويها لكن سوي لوب يجيب اللاعبين وحط كود الزر في داخل اللوب Link to comment
+Source|> Posted May 22, 2017 Author Share Posted May 22, 2017 1 minute ago, Killer Project said: تقدر تسويها زي ما انت مسويها لكن سوي لوب يجيب اللاعبين وحط كود الزر في داخل اللوب لاهنت انا مبتدأ برمجه وش هو اللوب ضض؟؟ Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 for id, player in ipairs(getElementsByType("player")) do bindKey ( player, .... ) end كمان cmd هنا function cl2(player,cmd) مالها داعي Link to comment
+Source|> Posted May 22, 2017 Author Share Posted May 22, 2017 الى الان لم تتم افادتي انا مسوي باب متحرك ابي زر يفتح الباب واللي يقدر يفتحه رتبه معينه انا احددها؟؟؟ Link to comment
#BrosS Posted May 22, 2017 Share Posted May 22, 2017 (edited) function move(player,key) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853 ) end end bindKey(player,"J","down",move) Edited May 22, 2017 by #BrosS Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 9 hours ago, A7MEDENO said: الى الان لم تتم افادتي انا مسوي باب متحرك ابي زر يفتح الباب واللي يقدر يفتحه رتبه معينه انا احددها؟؟؟ yourObject = createObject ( ... ) function MoveObject1 ( ) moveObject ( yourObject, ... ) end function MoveObject2 ( player ) -- if كود التحقق اللي تبيه then MoveObject1 ( ) -- end end for id, player in ipairs(getElementsByType("player")) do bindKey ( player, "F1", "down", MoveObject2 ) end 9 hours ago, #BrosS said: function move(player,key) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853 ) end end bindKey(player,"J","down",move) player ماهي معرفة Link to comment
#BrosS Posted May 22, 2017 Share Posted May 22, 2017 2 minutes ago, Killer Project said: yourObject = createObject ( ... ) function MoveObject1 ( ) moveObject ( yourObject, ... ) end function MoveObject2 ( player ) -- if كود التحقق اللي تبيه then MoveObject1 ( ) -- end end for id, player in ipairs(getElementsByType("player")) do bindKey ( player, "F1", "down", MoveObject2 ) end player ماهي معرفة البس نظارات يا اخي ض function move(player,key) Link to comment
AHMED MOSTAFA Posted May 22, 2017 Share Posted May 22, 2017 9 hours ago, #BrosS said: البس نظارات يا اخي ض function move(player,key) bindKey(player,"J","down",move) من يلبس نظارات !!! Link to comment
#BrosS Posted May 22, 2017 Share Posted May 22, 2017 1 minute ago, Killer Project said: bindKey(player,"J","down",move) من يلبس نظارات !!! حسبي الله ونعم الوكيل اللهم اني صائم 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