Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. @ #♡ ZĂ7Ḟ : لأن ملف الكلنت مآ رآح يشتغل إلا بعد ما يتحمل وبعد ما يتحمل الملف لو شغل اي isTransferBoxActive ما راح ينفع الفنكشن مود جديد راح يطلع الصندوق حق التحميل و تسير الوظيفة @ tourra : شوف أول رد لي بالموضوع
  2. قصدك لو غير كيف تحفظها ولا كيف يغيرها اصلا ؟
  3. كيف نفس الشي ؟ if يبغالها تحقق else
  4. الشرح الليي عطاك اياه ممتاز و ما راح تلقى احسنن منه و اذا ما نفعك صدقني ما راح نقدر نفيدك اكثر منه
  5. ! ملف الميتا غلط > type="map" version="1.0.0" /> src="tftish.map" dimension="0" /> ="peds.lua" type="server" /> > name="#minplayers" value="[ 0 ]" /> name="#maxplayers" value="[ 128 ]" /> name="#gravity" value="[ 0.008000 ]" /> name="#weather" value="[ 0 ]" /> name="#time" value="1:0" /> name="#locked_time" value="[ false ]" /> name="#waveheight" value="[ 0 ]" /> name="#gamespeed" value="[ 1 ]" /> >>
  6. عشان توديه للماب حق ما قبل التحميل onPlayerJoin إستخدم الحدث عشان تنقله للماب حق ما بعد التحميل triggerServerEvent مع الوظيفة onClientResourceStart بعدين إستخدم الحدث
  7. الأول : onPlayerWasted - spawnPlayer الثاني : getElementsByType - guiSetProperty ( NormalTextColour ) . admin الثالث : عدل على مود + القسم خطأ
  8. Delete in the description : https://community.multitheftauto.com/index.php?p=resources&s=details&id=5734 ----------------- No description : https://community.multitheftauto.com/index.php?p=resources&s=details&id=7561 DONE
  9. لا مو مؤقتا تجلس في الجهاز, عشان لو خشيت مرة ثانية مولازم تحمل من جديد لكن لو تبي تمسح المودات خش على المسار : Multi Theft Auto San Andres\mods\deathmatch\resources و تلقى المودات هناك, بس لو مسحتها راح تحمل المودات من جديد لمن تخش السيرفر
  10. انت تبغاها تغطي الشاشة كلها ؟
  11. جرب كذآ : local markerCH = createMarker( 1535.5216064453, -1685.9595947266, 12.55108, "cylinder", 1.4, 255, 255, 255, 255 ); local _closeTime = 2 local _timers = { }; addEventHandler( "onPlayerMarkerHit", root, function( marker ) if marker == markerCH and not isPedInVehicle( source ) then local _team = getPlayerTeam( source ); if _team and getTeamName( _team ) == "اسم الفريق" then if _timers[ source ] and isTimer( _timers[ source ] ) then return outputChatBox( "! يجب أن تنتظر دقيقتين", source ); else setElementInterior( source, 15, 2215.1999511719, -1150.5999755859, 1025.8000488281 ); setElementDimension( source, 15 ); _timers[ source ] = setTimer( function( source ) _timers[ source ] = nil end, ( _closeTime * 1000 ) * 60, 1, source ) end end end end );
  12. local markerCH = createMarker( 1535.5216064453, -1685.9595947266, 12.55108, "cylinder", 1.4, 255, 255, 255, 255 ); addEventHandler( "onPlayerMarkerHit", root, function( marker ) if marker == markerCH and not isPedInVehicle( source ) then local _team = getPlayerTeam( source ); if _team and getTeamName( _team ) == "اسم الفريق" then setElementInterior( source, 15, 2215.1999511719, -1150.5999755859, 1025.8000488281 ); setElementDimension( source, 15 ); end end end );
  13. PaiN^

    Shop

    @ #♡ ZĂ7Ḟ : التايمر في كودك مرة واحدة ذذ @ 3ssol : أستخدم كودي او كود ذا بيست edit : وش اللي منت فاهمه ؟ Label = guiCreateLabel( ... ); -- سوي ليبل setTimer( function( ) -- سوي تايمر if not guiGetVisible( Label ) then -- تحقق اذا الليبل مو مفتوح guiSetVisible( Label, true ); -- افتحه else -- غير كذا guiSetVisible( Label, false ); -- اغلقه end -- اغلاق للجملة الشرطية end, 2000, 0 ); -- اغلاق للوظيفة والتايمر
  14. PaiN^

    Shop

    Label = guiCreateLabel( ... ); setTimer( function( ) if not guiGetVisible( Label ) then guiSetVisible( Label, true ); else guiSetVisible( Label, false ); end end, 2000, 0 );
  15. PaiN^

    Shop

    @ #♡ ZĂ7Ḟ : أولا ما يصير تحط إسم للوظيفة لو كانت داخل الحدث ثانيا ليه تسوي الليبل مع كل رندر ؟؟؟ edit : @ The Best : افضل guiGetVisible ليه تسوي متغير ؟
  16. Try this : --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { window = {}, staticimage = {}, label = {} }; addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow( 295, 115, 457, 548, "Weapon Skills Panel", false ); guiWindowSetSizable( GUIEditor.window[1], false ); guiSetVisible( GUIEditor.window[1], false ); GUIEditor.staticimage[1] = guiCreateStaticImage( 25, 46, 63, 58, ":shop1/images/22.png", false, GUIEditor.window[1] ); GUIEditor.label[1] = guiCreateLabel( 90, 84, 22, 15, "0%", false, GUIEditor.window[1] ); end ); function Nothing() guiSetText( GUIEditor.label[1], getPedStat( localPlayer, 69 ) ); end addEventHandler( "onClientRender", root, Nothing ); bindKey( "F7", "Down", function( ) guiSetVisible( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ); showCursor( guiGetVisible( GUIEditor.window[1] ) ); end ); addEvent( "onZombieWasted", true ); addEventHandler( "onZombieWasted", root, function ZombieKill( killer, weapon, bodypart ) if killer and killer ~= source then if bodypart == 9 and weapon == 69 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 5 ); end end end );
  17. Try this : exports.scoreboard:scoreboardAddColumn( "Level" ); local levels = { [ 100 ] = 1, [ 200 ] = 2, [ 300 ] = 3, [ 400 ] = 4, [ 500 ] = 5, [ 1000 ] = 6, [ 2500 ] = 7, [ 5000 ] = 8, [ 7000 ] = 9, [ 10000 ] = 10, [ 15000 ] = 11, [ 20000 ] = 12, [ 30000 ] = 13, [ 55000 ] = 14, [ 65000 ] = 15 }; function win( ammo, killer, weapon, bodypart ) if killer and killer ~= source then local H = getElementData( killer, "ExP" ); local S = getElementData( killer, "Level" ); local killer1 = getPlayerName( killer ); local noob = getPlayerName( source ); local setData = setElementData( killer, "ExP", tonumber( H ) + math.random( 10, 80 ) ); if setData then if levels[ getElementData( killer, "Exp" ) ] then setElementData( killer, "Level", "Lvl ".. getElementData( killer, "Exp" ) .." ! " ); triggerClientEvent( killer, "playSound", killer ); end end end local _H = getElementData( source, "ExP" ) or 0 setElementData( source, "ExP", tonumber( _H ) - math.random( 5, 50 ) ); end addEventHandler( "onPlayerWasted", root, win ); function onLogin( _, account ) setElementData( source, "Level", getAccountData( account, "lvl" ) or "0" ); setElementData( source, "ExP", getAccountData( account, "exp" ) or "0" ); end addEventHandler( "onPlayerLogin", root, onLogin ); function saveData( thePlayer, theAccount ) if theAccount and not isGuestAccount( theAccount ) then setAccountData( theAccount, "lvl", getElementData( thePlayer, "Level" ) ); setAccountData( theAccount, "exp", getElementData( thePlayer, "ExP" ) ); end end addEventHandler( "onPlayerQuit", root, function ( ) saveData( source, getPlayerAccount( source ) ) end ); addEventHandler( "onPlayerLogout", root, function( prev ) saveData( source, prev ) end );
  18. PaiN^

    Car color

    setTimer( functionName, 1000, 0 )
  19. You can ust triggers but i doubt it a good idea !
  20. This will make the first part of the script useless, Just use my code above ^
  21. In order to make the explosion harmless and visible only to you you need to make it client side, If you made it server side it will be harmful .
×
×
  • Create New...