Doffy Posted February 10, 2017 Share Posted February 10, 2017 (edited) ابي اول ما اللاعب يدخل كول شيب ما يقدر يشغل مثلا من اف 1 ل اف 12 ولما اللاعب يحاول يضغط من اف 1 ل 12 يقوله لا يمكنك تشغيل هذه اللوحات هنا Edited February 10, 2017 by KinG_Himoo12 Link to comment
Abu-Solo Posted February 10, 2017 Share Posted February 10, 2017 افهم منه وضيف اكواد لما يخش الماركر حق الكول شيت Link to comment
Doffy Posted February 10, 2017 Author Share Posted February 10, 2017 1 minute ago, Abu-Solo said: افهم منه وضيف اكواد لما يخش الماركر حق الكول شيت انا مابي من ماركر بس ابيه للكول شيب Link to comment
#BrosS Posted February 10, 2017 Share Posted February 10, 2017 غير الحدث الى ^ onColShapeHit Link to comment
Doffy Posted February 10, 2017 Author Share Posted February 10, 2017 Just now, #BrosS said: غير الحدث الى ^ onColShapeHit اوك بس انا مابيه في عالم وهمي يخوي Link to comment
Abu-Solo Posted February 10, 2017 Share Posted February 10, 2017 1 minute ago, KinG_Himoo12 said: اوك بس انا مابيه في عالم وهمي يخوي شيل كود العالم الوهمي ذذ Link to comment
#BrosS Posted February 10, 2017 Share Posted February 10, 2017 2 minutes ago, KinG_Himoo12 said: اوك بس انا مابيه في عالم وهمي يخوي احذف تحقق العالم الوهمي :@ Link to comment
Doffy Posted February 10, 2017 Author Share Posted February 10, 2017 1 minute ago, Abu-Solo said: شيل كود العالم الوهمي ذذ onClientKey طيب وحقت onColShapeHit اخليها ؟ Link to comment
Abu-Solo Posted February 10, 2017 Share Posted February 10, 2017 Just now, KinG_Himoo12 said: onClientKey طيب وحقت onColShapeHit اخليها ؟ أتوقع تقدر تضيف الحدثين Link to comment
#BrosS Posted February 10, 2017 Share Posted February 10, 2017 Just now, KinG_Himoo12 said: onClientKey طيب وحقت onColShapeHit اخليها ؟ لا غير onMarkerHit الى onColShapeHit وطبعا حط كول شيب لا تخلي createMarker Link to comment
Abu-Solo Posted February 10, 2017 Share Posted February 10, 2017 3 minutes ago, #BrosS said: لا غير onMarkerHit الى onColShapeHit وطبعا حط كول شيب لا تخلي createMarker وش ذا التخبيص وكيف الحدث حق الزرار بيشتغل؟ Link to comment
Doffy Posted February 10, 2017 Author Share Posted February 10, 2017 1 minute ago, Abu-Solo said: وش ذا التخبيص وكيف الحدث حق الزرار بيشتغل؟ طيب ياخوان شوفولي حل اي حدث ؟ اي حدث اختار فيهم Link to comment
Abu-Solo Posted February 10, 2017 Share Posted February 10, 2017 Just now, KinG_Himoo12 said: طيب ياخوان شوفولي حل اي حدث ؟ اي حدث اختار فيهم جرب الاثنين حق ال onClientKey و onColShapeHit Link to comment
Doffy Posted February 10, 2017 Author Share Posted February 10, 2017 1 minute ago, Abu-Solo said: جرب الاثنين حق ال onClientKey و onColShapeHit اوك Link to comment
^iiEcoo'x_) Posted February 10, 2017 Share Posted February 10, 2017 (edited) local ColS = createColRectangle ( ..... ) addEventHandler ( "onColShapeHit", root, function ( thePlayer ) if source == ColS then if getElementType ( thePlayer ) == "player" then setElementData(source,"noCanUseKey",true) outputChatBox ( "Your entered the zone!", thePlayer, 255, 255, 109 ) end end end ) addEventHandler ( "onColShapeLeave", root, function ( thePlayer ) if source == ColS then if getElementType ( thePlayer ) == "player" then setElementData(source,"noCanUseKey",false) outputChatBox ( "Your leaved the zone!", thePlayer, 255, 255, 109 ) end end end ) local buttons = { ['F1'] = true, ['F3'] = true, } addEventHandler( 'onClientKey', root, function (button , press) if getElementData ( localPlayer , "noCanUseKey" ) == true then if press and getElementDimension(localPlayer) == 30 then if buttons[button] then outputChatBox("غير مصرح لك بفتح اللوحة الان ", 255, 0, 0) cancelEvent() end end end end) #Edit: سطر 9 خليه كذا if press then Edited February 10, 2017 by #_iMr.[E]coo 1 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