Jump to content

The_Rich#

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by The_Rich#

  1. 2 hours ago, Tut said:

    GTA and MTA treats collision files differently. In GTA your .col file can store multiple collision models. In MTA it can only load 1 of the stored collision models. So when you add a .dff to MTA, you also add a .col file.

    Not what i mean.. 

    I mean that i want to import an object with it's collision to GTA and i want it to appear in Mta. 

    For example: you've installed a new car in GTA so that it will appear just for you in MTA. 

    That's what i want with collision files. 

    I've replaced the stored col file and it appeared just in GTA. 

    And thank you for helping me. You are great! 

  2. 11 hours ago, Tut said:

    I've never created a collision for single player, but for what I know, a .col archive in single player contains collision models for several objects. You'll want to name the stored collisions that of the .dff or the internal object name (all guesswork). So if you have 5 .dff files named box1 through box5, you'll want to have a .col file with 5 collision models stored, named box1 through box5.

    Eventually see the collision guide 

     

    Omg!! Thank you so much! 

    There is another problem now.. 

    After i replaced the new collision with the old one, it worked in GTA. 

    But its broken in MTA or doesn't exist.

  3. Hello guys.. 

    Recently, I edited an object with 3ds max. And I extracted all the files needed. 

    DFF

    COL

    TXD

    I've imported the Dff and Txd. And i tried to import the collision file but sadly i couldn't. Everything worked fine but the added things have a broken collison. 

    Notice : i want to replace it with gta sa, not MTA. 

    Please help.. 

  4. السلام عليكم ورحمة الله وبركاته.. 

    شباب عندي مشكلة رهيبةمع البرنامج.. 

    مثلا أنا سحبت سيارة الانفرنس من اللعبة الاصليه 

    ودخلتها على برنامج ثري ماكس. 

    سويت تعديل بسييييط.. واستخرجت ملف ال 

    Dff

    وكله تمام.. ركبت الملف باللعبه الاصليه وجيت انزل السيارة ، اللعبة انطفت.. 

    طيب وش سويت عشان أحاول أصلح الوضع ؟؟

    حطيت ملف الانفرنس الأصلي بالبرنامج واستخرجت ه بدون أي تعديلات.. 

    وكمان نفس الموضوع اللعبة انطفت 

    ياريت تردوا بسرعه! 

  5. السلام عليكم ورحمة الله وبركاته ..

    شباب صديقي من فترة جاب جهاز جديد ونزل عليه MTA

    المشكلة الحين هي انه مايقدر يتحكم باللاعب مثل اول من ناحية الكاميرا

    بحيث انه كان يلعب على اعدادات ال Classic Controls ( Joypad )

    بس الحين يجرب يحطها وماتشتغل ..

    وهذي صورة..

    p_1477ntq4q1.jpg

    يحطها على ذي وماتشتغل ..

    وش الحل؟

  6. السلام عليكم ورحمة الله وبركاته ..

    شباب كان عندي استفسار او مشكلة مع الدي اكس ..

    مثلا انا صممت لوحة دي اكس على مقاس الشاشة الكبيرة ..

    بس اجي اصغر الشاشة .. اللوحة تخرب .

    ادري اني اقدر اسوي صورة شفافة وكأنها دي اكس .

    بس ابغى اسوي زر لما احط عليه الماوس يسوي تأثيرات .

    ذي اقدر اسويها بس بالدي اكس ..

    كيف اسويها مع الصورة ؟

  7. السلام عليكم ورحمة الله وبركاته ,

    شباب ابغى اسوي تكسد للقمر ..

    انا توصلت ان اسم التكسد هو Particle.txd..

    واقدر احطه باللعبة الأصلية وبيتغير ب ام تي اي

    بس ابغى احطه ب مود ..

    وش اسم الفنكشن الي يخليني  اسوي كذا؟؟

    جربت اسوي ذا

    engineImportTXD

    بس ماضبط ..

     

  8. تسسسلممــ عالمساعدة #

    بس كنت اتمنى لو كان في شرح بسيط بس للكود عشان اعرف وظيفة كل شيء#

    local color = split ( guiGetText ( edit ) , "," ) 
    if ( #color > 0 and #color < 4 ) then 
    setWaterColor ( color[1] , color[2] , color[3] )

    وشكرراً مرة ثانيهه , جزاك الله كل خير .

    @Hakan

  9. 4 hours ago, +Source|> said:
    
    addEventHandler("onClientGUIClick",root,
    function ()
    if ( source == btn1 ) then
    local R, G, B = guiGetText( edit1 ), guiGetText( edit2 ), guiGetText( edit3 )
    setWaterColor( R, G, B )
    end
    end
    )
    

     

    في عندك خطأ بالكود ي سورس .. + انا ابغاه بإيديت واحد . 

    بس شكراً انك حاولت تساعدني ..

    @+Source|>

     

     

     

    1 hour ago, Hakan said:

    اذا تقصد بتسويه في edit واحد

    استخدم

    split

    تقريباً هو ذا الي ابغاه , بس ماقدرت افهم الكود او كيف استخدمه 

    عندك شرح له؟

    @Hakan

    • Like 1
  10. السلام عليكم ورحمة الله وبركاته,

    ياجماعة انا حاولت اسوي لوحة فيها ايديت بوكس وزر ..

    لازم تكتب بالإيديت بوكس اللون الي هو بصيغة RGB

    حاولت اسويها وماتضبط .. 

    وش الغلط بالظبط؟

    وكيف اتعامل مع الفنكشنات الي فيها اكتر من ارقمنت؟

    المحاولة البائسة :-

    addEventHandler("onClientGUIClick",root,
    function ()
    if ( source == btn1 ) then
    local Num = guiGetText( edit1 )
    if ( Num ~= "" ) and (tonumber(edit1)) then
    setWaterColor(Num)
    end
    end
    end
    )

     

  11. 23 minutes ago, N3xT said:
    
    executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS `Rich` ( playerSerial, Money )' )
    
    addCommandHandler ( 'Save', 
    	function ( player )
    		local playerSerial = getPlayerSerial ( player )
    		local checkData = executeSQLQuery ( 'SELECT * FROM `Rich` WHERE playerSerial = ?', playerSerial )
    		if ( #checkData == 0 ) then
    			executeSQLQuery ( 'INSERT INTO `Rich` ( playerSerial, Money ) VALUES ( ?, ? )', playerSerial, getPlayerMoney ( player ) )
    		else
    			executeSQLQuery ( 'UPDATE `Rich` SET Money = ?', getPlayerMoney ( player ) )
    		end
    	end
    )
    
    
    addEventHandler ( 'onPlayerJoin', root,
    	function ( )
    		local playerSerial = getPlayerSerial ( source )
    		local checkMoney = executeSQLQuery ( 'SELECT * FROM `Rich` WHERE playerSerial = ?', playerSerial )
    		if ( #checkMoney == 1 ) then
    			setPlayerMoney ( source, checkMoney[1].Money )
    		end
    	end
    )
    

     

    مشكور جداً اخوي ...

    انا المشكلة عندي مثل ماقلت طلعت تافهة ..

    ماكنت معرّف السيرفر سايد بالميتا خخخخ ...

    بس الي اكتشفته وكان خطأ بالكود حقي هو اخر شيء ..

    والي هو مافهمته بالكود حقك .

    setPlayerMoney ( source, checkMoney[1].Money )

    الي هي حقت checkMoney[1]

    وش المقصود ب 

    [1]

    وشكراً على المساعدة .. 

  12. السسلام عليكم ورحمة الله وبركاته ..

    شباب انا لسة جالس احاول اتعلم عن قاعدة البيانات ..

    شفت فيديو لمستر جراند وشرح كذا حق وايفاي ..

    قدرت استوعب كم شيء ..

    وحاولت اطبق الي فهمته ..

    وحاولت اسوي كود انه يوم مايكتب بأف 8 كلمة معينة ..

    يحفظ الفلوس بقاعدة البيانات ..

    وبس يخرج ويدخل الفلوس ترجعله ..

    بس لما اكتب الكلمة المعينة بإف 8 , مايصير شيء .. ومافي خطأ يطلع بالديبق

    محاولاتي :- 

    -- SERVER SIDE
    
    executeSQLQuery('CREATE TABLE IF NOT EXISTS `Rich`(playerSerial,Money)')
    
    addCommandHandler('Save', function (source)
    local playerSerial = getPlayerSerial(source)
    local checkData = executeSQLQuery( 'SELECT * FROM `Rich` WHERE playerSerial = ? ', getPlayerSerial(source) )
    if ( type ( checkData ) == 'table' and #checkData == 0 or not checkData ) then
    executeSQLQuery ('INSERT INTO `Rich`(playerSerial,Money) VALUES(?,?) ',getPlayerSerial(source),getPlayerMoney(source))
    outputChatBox("Saved")
    else
    executeSQLQuery('UPDATE `Rich` SET playerSerial = ?,Money = ?', getPlayerSerial(source),getPlayerMoney(source))
    end
    end
    )
    
    
    addEventHandler('onPlayerJoin',root,
    function ()
    local checkMoney = executeSQLQuery( 'SELECT * FROM `Rich` WHERE playerSerial = ?', getPlayerSerial(source) )
    if ( type ( checkMoney ) == 'table' and #checkMoney == 0 or not checkMoney ) then
    local Money = getPlayerMoney(source)
    setPlayerMoney(source,Money)
    end
    end)

    ما ادري وش المشكلة بالظبط , بس ادري انها تافهة ..

  13. لسة مادخلت بمجال الجداول ي بروس , ماعندي خبرة فيها .. لوعندك شرح لها اتمنى ترسلي الموضوع .

    انا ابغى الكلام يظهر لما يدوس على الزر مع الشخصية , 

    ادري انه لازم تحط onClientRender..

    بس كيف استخدمها بهذي الحالة ؟

    @#BrosS

×
×
  • Create New...