3NAD Posted December 5, 2012 Share Posted December 5, 2012 (edited) x, y, z = 0, 0, 0 -- الإحداثيات size = 0 -- الحجم createMarker ( x, y, z, "cylinder", size, 0, 0, 0, 0 ) addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if thePlayer and getElementType ( thePlayer ) == "player" then bindKey ( "F2", "down", ShowWindow ) outputChatBox ( "* يمكنكـ إستخدام لوحة الشوب الآن", 0, 255, 0, true ) end end ) addEventHandler ( "onClientMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if thePlayer and getElementType ( thePlayer ) == "player" then unbindKey ( "F2", "down", ShowWindow ) outputChatBox ( "* تم إغلاق لوحة الشوب", 255, 0, 0, true ) end end ) function ShowWindow ( ) if guiGetVisible ( shopWindow ) then guiSetVisible ( shopWindow, false ) showCursor ( false ) guiSetInputEnabled ( false ) else guiSetVisible ( shopWindow, true ) showCursor ( false ) guiSetInputEnabled ( true ) playSound ( "xOSAMA.mp3" ) end end Edited December 5, 2012 by Guest Link to comment
d43dr4 Posted December 5, 2012 Author Share Posted December 5, 2012 MJNOFIK ي عناد ما زبط ولا حق Link to comment
./BlackBird# Posted December 5, 2012 Share Posted December 5, 2012 function bind() guiSetVisible ( shopWindow ,not guiSetVisible(shopWindow)) showCursor (guiGetVisible(shopWindow)) guiSetInputEnabled(guiGetVisible(shopWindow)) end bindKey('f2','down',bind) col = createColCuboid( ... ) addEventHandler('onClientColShapeHit',col, function(hit) if(getElementType(hit)=='player')then bindKey('f2','down',bind) end end) addEventHandler('onClientColShapeLeave',col, function(leave) if(getElementType(leave)=='player')then unbindKey('f2','down',bind) end end) Link to comment
d43dr4 Posted December 5, 2012 Author Share Posted December 5, 2012 يا اخي بقولك ما زبط Link to comment
d43dr4 Posted December 5, 2012 Author Share Posted December 5, 2012 1 - لما تدخل الماركر يقولك : * يمكنكـ إستخدام لوحة الشوب الآن بس لما تطلع من الماركر ما يقول : * تم إغلاق لوحة الشوب --------------------------------------- 2 - الشوب يبقى شغال ما بيتقفل Link to comment
3NAD Posted December 5, 2012 Share Posted December 5, 2012 x, y, z = 0, 0, 0 -- الإحداثيات size = 0 -- الحجم createMarker ( x, y, z, "cylinder", size, 0, 0, 0, 0 ) addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if thePlayer and getElementType ( thePlayer ) == "player" then bindKey ( "F2", "down", ShowWindow ) outputChatBox ( "* يمكنكـ إستخدام لوحة الشوب الآن", 0, 255, 0, true ) end end ) addEventHandler ( "onClientMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if thePlayer and getElementType ( thePlayer ) == "player" then unbindKey ( "F2", "down", ShowWindow ) outputChatBox ( "* تم إغلاق لوحة الشوب", 255, 0, 0, true ) end end ) function ShowWindow ( ) if guiGetVisible ( shopWindow ) then guiSetVisible ( shopWindow, false ) showCursor ( false ) guiSetInputEnabled ( false ) else guiSetVisible ( shopWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) playSound ( "xOSAMA.mp3" ) end end Link to comment
d43dr4 Posted December 5, 2012 Author Share Posted December 5, 2012 الحين الوظائف انعكست لما تدخل الساحة يطفى الشوب ولما تطلع من الساحة يظهر الشوب بس الرسائل في الشات الحين صحيحة Link to comment
d43dr4 Posted December 5, 2012 Author Share Posted December 5, 2012 خلص عدلته الحين باقي الاسلحة تختفي لما اطلع من الماركر Link to comment
3NAD Posted December 5, 2012 Share Posted December 5, 2012 -- Client Side addEventHandler ( "onClientMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if thePlayer and getElementType ( thePlayer ) == "player" then unbindKey ( "F2", "down", ShowWindow ) outputChatBox ( "* تم إغلاق لوحة الشوب", 255, 0, 0, true ) triggerServerEvent ( "takeTheWeapons", localPlayer, thePlayer ) end end ) -- Server Side addEvent ( "takeTheWeapons", true ) addEventHandler ( "takeTheWeapons", root, function ( thePlayer ) takeAllWeapons ( thePlayer ) end ) Link to comment
d43dr4 Posted December 5, 2012 Author Share Posted December 5, 2012 عنـــآد جزاك الله خيرا و جعلها في ميزان حسنـآتك لكن اذا مفيه امر عليك هل فيه طريقة ترجع الاسلحة لان ذي الطريقة تخفي الاسلحة و لما ترجع الساحة لازم تشتري من جديد وشكرا مرة اخرى Link to comment
./BlackBird# Posted December 5, 2012 Share Posted December 5, 2012 هذا لما ما تبيه يطلق toggleControl(thePlayer ,'fire',false) هذا لما تبيه يطلق toggleControl(thePlayer ,'fire',true) Link to comment
abu5lf Posted December 5, 2012 Share Posted December 5, 2012 الداتا يمديك تمنع اي شوب من اي مود ثاني وسهلة 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