Jump to content

مساعدة


Recommended Posts

Posted

السلام عليكم

ابي فنكش عشان الابجكت المعدل عليه يكون بمنطقة محددة فقط

  
--- حدا يصحح الكود 
ss = createRadarArea(2400, -1700,200,200,0,250,0,200) 
A = createObject(2914,2476.2,-1665.3,12.6,0,0,0) 
addEventHandler("onClientResourceStart", ss, 
function ( ) 
txd = engineLoadTXD("2914.txd") 
engineImportTXD(txd, 2914) 
end) 
  

:?

NaRoTu~~~~~~~~~~DZ

Gta 4u Soon

Posted
وضح طلبك اكثر ؟

يا اوسكار ابي احط صورة فوق ابجكت لكن في منطقة محددة بس

NaRoTu~~~~~~~~~~DZ

Gta 4u Soon

Posted

اعتقد بمنطقه محدده ما بينفع

بس ممكن تقدر تسوي ماركر او كول شيب قريب من الاوبجكت

لما يخش الماركر او الكول شيب يتحمل له الصورة حقت التي اكس دي

ولما يخرج من الماركر او الكول شيب يرجع الاوبجكت لصورته الاساسية

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted
اعتقد بمنطقه محدده ما بينفع

بس ممكن تقدر تسوي ماركر او كول شيب قريب من الاوبجكت

لما يخش الماركر او الكول شيب يتحمل له الصورة حقت التي اكس دي

ولما يخرج من الماركر او الكول شيب يرجع الاوبجكت لصورته الاساسية

ممكن الكود جاهز

NaRoTu~~~~~~~~~~DZ

Gta 4u Soon

Posted

صراحة انا حاولت اسويها لك لكن في مشكله واجهتني ومالقيت لها حل

يوم اخش الكول يتبدل ال

TXD & DFF

لكن يوم اخرج منهم مايرجع الاوبجكت لشكله الاساسي

وهذا الكود

-- MTA Forum / Ar --  
-- Mr.CoR -- 
-- 19 / 5 / 2016 -- 
  
  
myCollision = createColCuboid(2437.9321, -1739.3146, 12.967543, 10, 10, 36.25) 
MyFlag =  createObject ( 2993, 2443.08130, -1733.75928, 13.57995 ) 
  
  
addEventHandler("onClientColShapeHit",root, 
  function () 
        if ( source == myCollision ) then 
            if isElementWithinColShape ( localPlayer, myCollision ) then 
             txd = engineLoadTXD("2993.txd") 
              dff = engineLoadDFF("2993.dff", 2993) 
               engineImportTXD(txd, 2993) 
                engineReplaceModel(dff, 2993) 
            end 
        end 
    end 
) 
  
addEventHandler("onClientColShapeLeave",root, 
  function () 
        if ( source == myCollision ) then 
            if not isElementWithinColShape ( localPlayer, myCollision ) then 
              engineRestoreModel ( 2993 ) 
            end 
        end 
   end 
) 

اتمنى اذا في مبرمج عنده خبره يحل هالمشكلة

رابط ملفات ال

dff & txd

سبحان الله وبحمدة سبحان الله العظيم

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted

-- MTA Forum / Ar -- 
-- Mr.CoR -- 
-- 19 / 5 / 2016 -- 
  
local isRestore = false 
  
myCollision = createColCuboid(2437.9321, -1739.3146, 12.967543, 10, 10, 36.25) 
MyFlag =  createObject ( 2993, 2443.08130, -1733.75928, 13.57995 ) 
  
  
  function Load_() 
   
    if ( eventName == "onClientColShapeHit" ) then 
     
    if isRestore == false then 
     
    txd = engineLoadTXD ( "2993.txd" ) 
     
    engineImportTXD ( txd, 2993 ) 
     
    dff = engineLoadDFF ( "2993.dff" ) 
     
    engineReplaceModel ( dff, 2993 ) 
     
    isRestore = true 
     
            end 
        end ; 
         
    if ( eventName == "onClientColShapeLeave" ) then 
  
    if isRestore == true then 
             
    if engineRestoreModel ( 2993 ) then 
                
    if isElement ( txd ) then destroyElement ( txd ) end 
               
    isRestore = false 
     
                end 
            end 
        end 
    end ; 
addEventHandler ( "onClientColShapeHit", myCollision , Load_ ) ; 
  
addEventHandler ( "onClientColShapeLeave", myCollision , Load_ ) ; 

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

Posted

تمام اشتغل , لاهانت يمينك

بس تقدر تشرح ايش الي سويته ؟

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted
تمام اشتغل , لاهانت يمينك

بس تقدر تشرح ايش الي سويته ؟

كودك شغال بس كان المفروض تحط

destroyElement (txd)  

بدل

engineRestoreModel ( 2993 ) 

يعني تسحب شكل الاوبجكت زي السياره او اى المنت ثاني

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

Posted
تمام اشتغل , لاهانت يمينك

بس تقدر تشرح ايش الي سويته ؟

كودك شغال بس كان المفروض تحط

destroyElement (txd)  

بدل

engineRestoreModel ( 2993 ) 

يعني تسحب شكل الاوبجكت زي السياره او اى المنت ثاني

لازم يستخدم الاثنين

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

Posted

تماااام

بدل الحوسة الي فوق , ما استوعبت منها شي :arrowup:

كذا الكود ابسط :

-- MTA Forum / Ar -- 
-- Mr.CoR -- 
-- 19 / 5 / 2016 -- 
  
  
myCollision = createColCuboid(2437.9321, -1739.3146, 12.967543, 10, 10, 36.25) 
MyFlag =  createObject ( 2993, 2443.08130, -1733.75928, 13.57995 ) 
  
  
addEventHandler("onClientColShapeHit",root, 
  function () 
        if ( source == myCollision ) then 
            if isElementWithinColShape ( localPlayer, myCollision ) then 
             txd = engineLoadTXD("2993.txd") 
              dff = engineLoadDFF("2993.dff", 2993) 
               engineImportTXD(txd, 2993) 
                engineReplaceModel(dff, 2993) 
            end 
        end 
    end 
) 
  
addEventHandler("onClientColShapeLeave",root, 
  function () 
        if ( source == myCollision ) then 
            if not isElementWithinColShape ( localPlayer, myCollision ) then 
              engineRestoreModel ( 2993 ) 
                  if isElement ( txd ) then destroyElement ( txd ) end 
            end 
        end 
   end 
) 
  

:lol:

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted
تماااام

بدل الحوسة الي فوق , ما استوعبت منها شي :arrowup:

كذا الكود ابسط :

-- MTA Forum / Ar -- 
-- Mr.CoR -- 
-- 19 / 5 / 2016 -- 
  
  
myCollision = createColCuboid(2437.9321, -1739.3146, 12.967543, 10, 10, 36.25) 
MyFlag =  createObject ( 2993, 2443.08130, -1733.75928, 13.57995 ) 
  
  
addEventHandler("onClientColShapeHit",root, 
  function () 
        if ( source == myCollision ) then 
            if isElementWithinColShape ( localPlayer, myCollision ) then 
             txd = engineLoadTXD("2993.txd") 
              dff = engineLoadDFF("2993.dff", 2993) 
               engineImportTXD(txd, 2993) 
                engineReplaceModel(dff, 2993) 
            end 
        end 
    end 
) 
  
addEventHandler("onClientColShapeLeave",root, 
  function () 
        if ( source == myCollision ) then 
            if not isElementWithinColShape ( localPlayer, myCollision ) then 
              engineRestoreModel ( 2993 ) 
                  if isElement ( txd ) then destroyElement ( txd ) end 
            end 
        end 
   end 
) 
  

:lol:

حوسة ؟ الله يهديك بس <>

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

Posted
تماااام

بدل الحوسة الي فوق , ما استوعبت منها شي :arrowup:

كذا الكود ابسط :

-- MTA Forum / Ar -- 
-- Mr.CoR -- 
-- 19 / 5 / 2016 -- 
  
  
myCollision = createColCuboid(2437.9321, -1739.3146, 12.967543, 10, 10, 36.25) 
MyFlag =  createObject ( 2993, 2443.08130, -1733.75928, 13.57995 ) 
  
  
addEventHandler("onClientColShapeHit",root, 
  function () 
        if ( source == myCollision ) then 
            if isElementWithinColShape ( localPlayer, myCollision ) then 
             txd = engineLoadTXD("2993.txd") 
              dff = engineLoadDFF("2993.dff", 2993) 
               engineImportTXD(txd, 2993) 
                engineReplaceModel(dff, 2993) 
            end 
        end 
    end 
) 
  
addEventHandler("onClientColShapeLeave",root, 
  function () 
        if ( source == myCollision ) then 
            if not isElementWithinColShape ( localPlayer, myCollision ) then 
              engineRestoreModel ( 2993 ) 
                  if isElement ( txd ) then destroyElement ( txd ) end 
            end 
        end 
   end 
) 
  

:lol:

حوسة ؟ الله يهديك بس <>

افاااا , زعلت ؟

امزح معاك ترا

:lol:

بس تونا مبتدئين يعني , ماوصلنا لمستواك

8)

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted
:mrgreen: لا والله مازعلت ض1 , بس قلت بشوف وش راح تسوي

وان شاء الله توصل مستواي واعلى

ايه اشوا , كله ولا زعلك

:wink:

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted
:mrgreen: لا والله مازعلت ض1 , بس قلت بشوف وش راح تسوي

وان شاء الله توصل مستواي واعلى

ايه اشوا , كله ولا زعلك

:wink:

:mrgreen:

يسلمو شباب

شكرا لكم

NaRoTu~~~~~~~~~~DZ

Gta 4u Soon

Posted
:mrgreen: لا والله مازعلت ض1 , بس قلت بشوف وش راح تسوي

وان شاء الله توصل مستواي واعلى

ايه اشوا , كله ولا زعلك

:wink:

:mrgreen:

يسلمو شباب

شكرا لكم

حياك الله , حاضرين

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted

مشكلة بالمود

لما تدخل المنطقة صحيح الصورة تجي فوق الابجكت لكن لو كان نفس الابجكت بمكان اخر على الماب تنحط الصورة فوقه كمان

لكن انا ابي الصورة تجي فوق الابجكت في المكان المحدد بس يعني لما نفس الابجكت2993يكون بمكان اخر لا تجي الصورة فوقه

NaRoTu~~~~~~~~~~DZ

Gta 4u Soon

Posted
مشكلة بالمود

لما تدخل المنطقة صحيح الصورة تجي فوق الابجكت لكن لو كان نفس الابجكت بمكان اخر على الماب تنحط الصورة فوقه كمان

لكن انا ابي الصورة تجي فوق الابجكت في المكان المحدد بس يعني لما نفس الابجكت2993يكون بمكان اخر لا تجي الصورة فوقه

اكوادك ؟

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...