1REDBULL Posted August 21, 2013 Posted August 21, 2013 السلام عليكم انشالله الي ابيه بسيط عليكم marker = createMarker ( 318.38, 2052.86, -87.4, "cylinder", 2, 255, 0, 0, 255 ) function PlayerGo(player) setElementPosition(player, 280.3 , 2016.7, 17.6 +0) giveWeapon(player, 371, 1, true) end addEventHandler("onMarkerHit", marker, PlayerGo) هذا كود فتح الباب الي انا ابي اني اخلي الباب يفتح ب زر تاب لأني حاولت ولله وما نجح انشالله فهمتو قصدي و انشالله بسيط عليكم
1REDBULL Posted August 21, 2013 Author Posted August 21, 2013 addEventHandler("onMarkerHit", marker, PlayerGo) marker = createMarker ( 318.38, 2052.86, -87.4, "cylinder", 2, 255, 0, 0, 255 ) function PlayerGo(player) setElementPosition(player, 280.3 , 2016.7, 17.6 +0) giveWeapon(player, 371, 1, true) end bindKey("tab","down",PlayerGo) ذذ هذا مو باب هذا مركر وكيف يفتح تاب ؟ علي العموم الكود امامك ذذ القسم خطأ معلي اخوي حطيت كود خطء مشكور لأنك ذكرتني الكود الصحيح local gate = createObject ( 969, 128.30000305176, 1935.3000488281, 18.299999237061 ) function moveGate() moveObject ( gate, 3000, 136.39999389648, 1935.3000488281, 18.299999237061 + 5 ) end addCommandHandler ( "top", moveGate ) وجربت ال bindKey("tab","down",PlayerGo) فيه بس ما نجح
فاّرس Posted August 21, 2013 Posted August 21, 2013 شيل الكوماند ذذ, وحط بداله, bindKey('tab','down',moveGate) + القسم خطأ ,
1REDBULL Posted August 21, 2013 Author Posted August 21, 2013 شيل الكوماند ذذ,وحط بداله, bindKey('tab','down',moveGate) + القسم خطأ , اخوي معليش اذا القسم خطء انا جديد في الموقع و مالقيت الى في القسم ذا و جاري التجربه والله يوفقك
TAPL Posted August 21, 2013 Posted August 21, 2013 شيل الكوماند ذذ,وحط بداله, bindKey('tab','down',moveGate) + القسم خطأ , كود سيرفر مع فنكشن كلينت
iMr.Dawix~# Posted August 21, 2013 Posted August 21, 2013 وانا وش يعرفني عنه وش هو حاط ليه يحط كود فتح باب كلنت مرح يفتح للكل وش يستفيد
فاّرس Posted August 21, 2013 Posted August 21, 2013 وانا وش يعرفني عنه وش هو حاط ليه يحط كود فتح باب كلنت مرح يفتح للكل وش يستفيد يمكن ما يبيه للكل , وانا وش يعرفني عنه ._.
1REDBULL Posted August 21, 2013 Author Posted August 21, 2013 جربت الكود هذا bindKey('tab','down',moveGate) بس ما نجح اخخوي
iMr.Dawix~# Posted August 21, 2013 Posted August 21, 2013 جربت الكود هذاbindKey('tab','down',moveGate) بس ما نجح اخخوي local gate = createObject ( 969, 128.30000305176, 1935.3000488281, 18.299999237061 ) function moveGate() moveObject ( gate, 3000, 136.39999389648, 1935.3000488281, 18.299999237061 + 5 ) end addCommandHandler ( "top", moveGate ) addEventHandler("onResourceStart",root,function () for k,vv in ipairs(getElementsByType("player")) do bindKey(vv,"tab","down","top") end end ) او local gate = createObject ( 969, 128.30000305176, 1935.3000488281, 18.299999237061 ) function moveGate() moveObject ( gate, 3000, 136.39999389648, 1935.3000488281, 18.299999237061 + 5 ) end addEventHandler("onResourceStart",root,function () for k,v in ipairs(getElementsByType("player")) do bindKey(v,"tab","down",moveGate) end end )
1REDBULL Posted August 22, 2013 Author Posted August 22, 2013 جربت الكود هذاbindKey('tab','down',moveGate) بس ما نجح اخخوي local gate = createObject ( 969, 128.30000305176, 1935.3000488281, 18.299999237061 ) function moveGate() moveObject ( gate, 3000, 136.39999389648, 1935.3000488281, 18.299999237061 + 5 ) end addCommandHandler ( "top", moveGate ) addEventHandler("onResourceStart",root,function () for k,vv in ipairs(getElementsByType("player")) do bindKey(vv,"tab","down","top") end end ) او local gate = createObject ( 969, 128.30000305176, 1935.3000488281, 18.299999237061 ) function moveGate() moveObject ( gate, 3000, 136.39999389648, 1935.3000488281, 18.299999237061 + 5 ) end addEventHandler("onResourceStart",root,function () for k,v in ipairs(getElementsByType("player")) do bindKey(v,"tab","down",moveGate) end end ) مشكور اخوي نجح معي بس المشكله انه لو ظغط تاب من بعيد يفتح
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