Professional Posted June 30, 2015 Share Posted June 30, 2015 السلام عليكم ابي اسئلكم ذا الكود صحيح كيف عملته انه بس يجي على المساحه لي راح احطها ما يقدر يحط اسلحه وهل شغلات وابي منكم تعطوني فنكشن انه للمساحه لي حاططها انا اي يعني الحمايه انا رحا اعمل بدايه يكون لونها اخضر ولي مو حمايه ما يكون لونها اخضر اتمنى تكونو فهمتو عليي الكود local sh = createColSphere ( x , y , z ) function hassan ( source ) local sh = toggleControl ( "aim_weapon", false ) local sh = toggleControl ( "sprint", false ) local sh = toggleControl ( "fire", false ) local sh = toggleControl ( "next_weapon", false ) local sh = toggleControl ( "previous_weapon", false ) local sh = toggleControl ( "jump", false ) end addEventHandler ( "onColShapeHit", getRootElement(), hassan ) Link to comment
Professional Posted June 30, 2015 Author Share Posted June 30, 2015 وممكن كمان تعلموني كيف اجيب احداثيات الكول شيبر لان ما فيه ولا شرح Link to comment
MoDeR2014 Posted June 30, 2015 Share Posted June 30, 2015 https://community.multitheftauto.com/ind ... ls&id=3804 -- createRadarArea Link to comment
i S6O Posted June 30, 2015 Share Posted June 30, 2015 x, y, Wi, He = -- x = احداثيات x -- y = احداثيات y -- Wi= احداثيات العرض -- He= احداثيات الطول local Col = createColRectangle ( x, y, Wi, He ) local Color = createRadarArea ( x, y, Wi, He, 255, 255, 255 ) function OnHitCol ( ) if not isPedInVehicle ( localPlayer ) then toggleControl ( "aim_weapon", false ) toggleControl ( "sprint", false ) toggleControl ( "fire", false ) toggleControl ( "next_weapon", false ) toggleControl ( "previous_weapon", false ) toggleControl ( "jump", false ) else toggleControl ( "aim_weapon", true ) toggleControl ( "sprint", true ) toggleControl ( "fire", true ) toggleControl ( "next_weapon", true ) toggleControl ( "previous_weapon", true ) toggleControl ( "jump", true ) end end addEventHandler ( 'onColShapeHit', Col, OnHitCol ) addEventHandler ( 'onColShapeLeave', Col, OnHitCol ) افهم شرح اخوي تابل fX: The X position of the collision rectangle's west sidefY: The Y position of the collision rectangle's south side fWidth: The collision rectangle's width fHeight: The collision rectangle's height ببساطة تاخذ احداثيتين و تنقصهم من بعض اول احداثية تكون من تحت يسار fX, fY الأحداثية الأولى تحطها في الأحداثية الثانية تاخذها من فوق يمين fWidth, fHeight نقص الأحداثية الثانية من الأولى و تحط الناتج في إذا تبي تشوف الكول showcol استخدم الأمر في اف8 و قبل ما تستخدم الأمر لازم تكون مفعل هذا https://wiki.multitheftauto.com/wiki/SetDevelopmentMode 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